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)
Tue, Feb 11, 3:05 PM
Unknown Object (File)
Sun, Feb 9, 3:01 AM
Unknown Object (File)
Fri, Feb 7, 3:07 PM
Unknown Object (File)
Tue, Feb 4, 9:04 PM
Unknown Object (File)
Tue, Feb 4, 9:04 PM
Unknown Object (File)
Tue, Feb 4, 6:47 PM
Unknown Object (File)
Jan 6 2025, 12:56 PM
Unknown Object (File)
Dec 13 2024, 7:45 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