HomeFreeBSD

ufs_vnops.c: use unsigned type for newparent inode number in ufs_rename()

Description

ufs_vnops.c: use unsigned type for newparent inode number in ufs_rename()

Otherwise it is sign-extended into 64bit ino_t on the call to
ufs_dirrewrite(). This causes invalid inode number recorded in the SU
tracking structures (newdirem) and triggers corresponding panics.

Reviewed by: mckusick, olce
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D51573

Details

Provenance
kibAuthored on Jul 27 2025, 1:47 PM
Reviewer
mckusick
Differential Revision
D51573: Another fix for UFS with inode number sign propagation
Parents
rG9a6ba186e0ca: sdt: Initialize probes in two passes
Branches
Unknown
Tags
Unknown