Page MenuHomeFreeBSD

vfs: Fix error handling in vn_fullpath_hardlink()
ClosedPublic

Authored by markj on May 10 2021, 8:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Feb 27, 4:27 AM
Unknown Object (File)
Thu, Feb 19, 4:34 AM
Unknown Object (File)
Sun, Feb 8, 2:45 AM
Unknown Object (File)
Sat, Feb 7, 9:09 PM
Unknown Object (File)
Feb 2 2026, 1:03 AM
Unknown Object (File)
Jan 31 2026, 2:46 PM
Unknown Object (File)
Jan 18 2026, 1:30 PM
Unknown Object (File)
Jan 5 2026, 6:30 AM
Subscribers

Details

Summary

vn_fullpath_any_smr() will return a positive error number if the
caller-supplied buffer isn't big enough. In this case the error must be
propagated up, otherwise we may copy out uninitialized bytes.

Reported by: syzkaller+KMSAN

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable