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
F135325673: D30198.id88988.diff
Sat, Nov 8, 6:35 PM
Unknown Object (File)
Fri, Nov 7, 1:51 AM
Unknown Object (File)
Sun, Nov 2, 5:24 AM
Unknown Object (File)
Sun, Nov 2, 5:23 AM
Unknown Object (File)
Sat, Oct 25, 9:06 PM
Unknown Object (File)
Mon, Oct 20, 6:37 AM
Unknown Object (File)
Wed, Oct 15, 7:07 PM
Unknown Object (File)
Wed, Oct 15, 7:07 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