[PATCH 0/2] scsi: pm8001: Fix struct layout and FORTIFY_SOURCE crash
From: Ronja Meyer
Date: Fri May 15 2026 - 08:19:19 EST
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@xxxxxxxxxx>
---
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@xxxxxxxxxx>