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)
Mon, Apr 6, 3:35 AM
Unknown Object (File)
Sat, Apr 4, 7:09 AM
Unknown Object (File)
Sat, Apr 4, 5:11 AM
Unknown Object (File)
Fri, Apr 3, 1:08 AM
Unknown Object (File)
Thu, Apr 2, 3:34 PM
Unknown Object (File)
Thu, Mar 26, 10:50 PM
Unknown Object (File)
Thu, Mar 26, 3:37 PM
Unknown Object (File)
Thu, Mar 26, 9:44 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