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)
Feb 4 2024, 3:43 AM
Unknown Object (File)
Dec 23 2023, 1:45 PM
Unknown Object (File)
Dec 20 2023, 6:16 PM
Unknown Object (File)
Dec 3 2023, 7:36 AM
Unknown Object (File)
Oct 20 2023, 7:45 PM
Unknown Object (File)
Oct 10 2023, 10:22 PM
Unknown Object (File)
Aug 27 2023, 2:42 PM
Unknown Object (File)
Aug 13 2023, 6:38 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