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, Jul 24, 3:46 PM
Unknown Object (File)
Mon, Jul 20, 1:59 AM
Unknown Object (File)
Wed, Jul 15, 2:37 AM
Unknown Object (File)
Sun, Jul 12, 3:16 PM
Unknown Object (File)
Tue, Jul 7, 7:54 AM
Unknown Object (File)
Fri, Jul 3, 11:54 PM
Unknown Object (File)
Thu, Jul 2, 9:17 PM
Unknown Object (File)
Tue, Jun 30, 8:57 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