[PATCH v2 0/2] scsi: pm8001: Fix struct layout and FORTIFY_SOURCE crash
From: Ronja Meyer
Date: Tue May 26 2026 - 10:38:28 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.
Changes in v2:
- Define sas_identify_frame_local via struct_group.
- Move pm8001 phy_start_req _local change to patch 2.
- Don't mess with whitespace unnecessarily.
- Link to v1: https://lore.kernel.org/r/20260515-fortify_pm80-v1-0-2863187f6d4b@xxxxxxxxxx
Signed-off-by: Ronja Meyer <rnj@xxxxxxxxxx>
---
Ronja Meyer (2):
scsi: libsas: Define sas_identify_frame_local via struct_group
scsi: pm8001: Match hw_event_resp to HBA data layout
drivers/scsi/pm8001/pm8001_hwi.c | 6 +-
drivers/scsi/pm8001/pm8001_hwi.h | 6 +-
drivers/scsi/pm8001/pm80xx_hwi.c | 6 +-
drivers/scsi/pm8001/pm80xx_hwi.h | 100 +--------------------------
include/scsi/sas.h | 144 ++++++++++++++++++++-------------------
5 files changed, 85 insertions(+), 177 deletions(-)
---
base-commit: b71cb088b2e3427924a470fc43e7aedb8a40d2e3
change-id: 20260515-fortify_pm80-b527a10c89d0
Best regards,
--
Ronja Meyer <rnj@xxxxxxxxxx>