[PATCH 0/2] scsi: pm8001: Fix struct layout and FORTIFY_SOURCE crash

Ronja Meyer posted 2 patches 3 weeks, 6 days ago
There is a newer version of this series
drivers/scsi/pm8001/pm8001_hwi.c |   6 +--
drivers/scsi/pm8001/pm8001_hwi.h | 103 +++++++++++++++++++++++++++++++++++++--
drivers/scsi/pm8001/pm80xx_hwi.c |   6 +--
drivers/scsi/pm8001/pm80xx_hwi.h |   4 +-
4 files changed, 108 insertions(+), 11 deletions(-)
[PATCH 0/2] scsi: pm8001: Fix struct layout and FORTIFY_SOURCE crash
Posted by Ronja Meyer 3 weeks, 6 days ago
This patch series:
- Fixes a crash when the driver is built with FORTIFY_SOURCE=y.
- Aligns the struct layout of hw_event_resp to what the HBA believes
  it looks like.
- Simplifies code previously required to work around the incorrect
  struct definition.

Testing:
- Verified I can still read from disks using the pm80xx driver.
- I do not have pm8001 hardware available to verify against.

Signed-off-by: Ronja Meyer <rnj@google.com>
---
Ronja Meyer (2):
      scsi: pm8001: Redefine sas_identify_frame structure
      scsi: pm8001: Match hw_event_resp to HBA data layout

 drivers/scsi/pm8001/pm8001_hwi.c |   6 +--
 drivers/scsi/pm8001/pm8001_hwi.h | 103 +++++++++++++++++++++++++++++++++++++--
 drivers/scsi/pm8001/pm80xx_hwi.c |   6 +--
 drivers/scsi/pm8001/pm80xx_hwi.h |   4 +-
 4 files changed, 108 insertions(+), 11 deletions(-)
---
base-commit: 98f69975d4c0434ca2e6e8cfa1d8d51647a20593
change-id: 20260515-fortify_pm80-b527a10c89d0

Best regards,
-- 
Ronja Meyer <rnj@google.com>