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)
Sun, Oct 11, 2:01 PM
Unknown Object (File)
Sat, Oct 3, 5:54 PM
Unknown Object (File)
Fri, Oct 2, 8:57 AM
Unknown Object (File)
Tue, Sep 29, 3:23 PM
Unknown Object (File)
Sun, Sep 27, 12:54 PM
Unknown Object (File)
Sat, Sep 26, 10:05 AM
Unknown Object (File)
Sat, Sep 26, 10:05 AM
Unknown Object (File)
Sat, Sep 26, 10:05 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