Page MenuHomeFreeBSD

[aacraid] Prevent sense data from causing a buffer overflow

Authored by luporl on Feb 13 2020, 5:59 PM.



On a PowerPC64 with an Adaptec RAID Controller with PCI device ID 0x028d, sense data was causing a buffer overflow, because of wrong max sense length logic.

There is a work in progress to make aacraid driver compatible with big-endian/PowerPC, in which this issue was found.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

luporl created this revision.Feb 13 2020, 5:59 PM
luporl added a subscriber: jhibbits.
emaste accepted this revision.Mar 1 2020, 7:56 PM
This revision is now accepted and ready to land.Mar 1 2020, 7:56 PM
This revision was automatically updated to reflect the committed changes.