Page MenuHomeFreeBSD

cam: fix integer overflow during inquiry
ClosedPublic

Authored by trasz on Apr 26 2021, 12:36 PM.
Tags
None
Referenced Files
F115822391: D29991.diff
Tue, Apr 29, 4:01 AM
Unknown Object (File)
Tue, Apr 15, 10:48 AM
Unknown Object (File)
Sun, Apr 13, 8:06 PM
Unknown Object (File)
Sun, Apr 13, 7:27 PM
Unknown Object (File)
Sun, Apr 13, 7:09 PM
Unknown Object (File)
Sun, Apr 13, 12:10 PM
Unknown Object (File)
Sun, Apr 13, 9:47 AM
Unknown Object (File)
Sun, Apr 13, 5:39 AM
Subscribers

Details

Summary

From my understanding this could happen with iSCSI LUNs with
unusually long names. The bug would make CAM fail to retrieve
the full inquiry data. Instead of bumping the size of the local
variable, just use a macro.

Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.

Diff Detail

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