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, Sep 16, 11:47 PM
Unknown Object (File)
Sat, Sep 12, 9:46 AM
Unknown Object (File)
Tue, Sep 8, 12:16 AM
Unknown Object (File)
Sat, Aug 29, 4:24 PM
Unknown Object (File)
Fri, Aug 28, 1:43 PM
Unknown Object (File)
Aug 17 2026, 6:44 PM
Unknown Object (File)
Aug 15 2026, 8:32 PM
Unknown Object (File)
Aug 14 2026, 6:46 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