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)
Wed, Oct 15, 7:07 PM
Unknown Object (File)
Wed, Oct 15, 7:07 PM
Unknown Object (File)
Wed, Oct 15, 7:07 PM
Unknown Object (File)
Wed, Oct 15, 8:41 AM
Unknown Object (File)
Fri, Oct 10, 8:31 AM
Unknown Object (File)
Sat, Oct 4, 8:47 AM
Unknown Object (File)
Sep 13 2025, 3:30 AM
Unknown Object (File)
Aug 25 2025, 10:14 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