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)
Apr 17 2026, 7:32 PM
Unknown Object (File)
Apr 17 2026, 6:58 PM
Unknown Object (File)
Apr 17 2026, 5:01 PM
Unknown Object (File)
Apr 17 2026, 10:18 AM
Unknown Object (File)
Apr 9 2026, 12:04 AM
Unknown Object (File)
Apr 6 2026, 3:35 AM
Unknown Object (File)
Apr 4 2026, 7:09 AM
Unknown Object (File)
Apr 4 2026, 5:11 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