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)
Mon, Jan 6, 12:56 PM
Unknown Object (File)
Dec 13 2024, 7:45 AM
Unknown Object (File)
Nov 29 2024, 4:06 PM
Unknown Object (File)
Nov 4 2024, 8:11 AM
Unknown Object (File)
Oct 2 2024, 11:26 AM
Unknown Object (File)
Sep 28 2024, 11:14 AM
Unknown Object (File)
Sep 27 2024, 3:52 AM
Unknown Object (File)
Sep 27 2024, 3:51 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