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)
Sun, Feb 8, 2:45 AM
Unknown Object (File)
Sat, Feb 7, 9:09 PM
Unknown Object (File)
Mon, Feb 2, 1:03 AM
Unknown Object (File)
Sat, Jan 31, 2:46 PM
Unknown Object (File)
Sun, Jan 18, 1:30 PM
Unknown Object (File)
Jan 5 2026, 6:30 AM
Unknown Object (File)
Dec 30 2025, 10:56 PM
Unknown Object (File)
Dec 19 2025, 6:38 PM
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