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, Aug 28, 1:43 PM
Unknown Object (File)
Mon, Aug 17, 6:44 PM
Unknown Object (File)
Sat, Aug 15, 8:32 PM
Unknown Object (File)
Fri, Aug 14, 6:46 PM
Unknown Object (File)
Thu, Aug 13, 7:33 PM
Unknown Object (File)
Tue, Aug 11, 10:58 PM
Unknown Object (File)
Mon, Aug 10, 6:27 PM
Unknown Object (File)
Mon, Aug 10, 10:47 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