Page MenuHomeFreeBSD

Fix several dev_clone callbacks to avoid out-of-bounds reads
ClosedPublic

Authored by markj on Mar 28 2021, 12:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 17, 11:55 AM
Unknown Object (File)
Dec 4 2025, 11:23 PM
Unknown Object (File)
Nov 26 2025, 12:32 PM
Unknown Object (File)
Nov 16 2025, 12:08 PM
Unknown Object (File)
Nov 9 2025, 6:38 AM
Unknown Object (File)
Nov 8 2025, 3:50 AM
Unknown Object (File)
Nov 7 2025, 12:35 PM
Unknown Object (File)
Nov 6 2025, 11:13 PM
Subscribers

Details

Summary

Use strncmp() instead of bcmp(), so that we don't have to find the
minimum of the string lengths before comparing.

Reported by: KASAN

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38134
Build 35023: arc lint + arc unit