mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] scsi: pm8001: Fix struct layout and FORTIFY_SOURCE crash
@ 2026-05-26 14:29 Ronja Meyer
  2026-05-26 14:29 ` [PATCH v2 1/2] scsi: libsas: Define sas_identify_frame_local via struct_group Ronja Meyer
  2026-05-26 14:29 ` [PATCH v2 2/2] scsi: pm8001: Match hw_event_resp to HBA data layout Ronja Meyer
  0 siblings, 2 replies; 3+ messages in thread
From: Ronja Meyer @ 2026-05-26 14:29 UTC (permalink / raw)
  To: Jack Wang, James E.J. Bottomley, Martin K. Petersen, Tom Peng,
	Kevin Ao, Lindar Liu, James Bottomley
  Cc: jack wang, linux-scsi, linux-kernel, Ronja Meyer, stable, Igor Pylypiv

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@google.com

Signed-off-by: Ronja Meyer <rnj@google.com>
---
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@google.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-26 14:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-26 14:29 [PATCH v2 0/2] scsi: pm8001: Fix struct layout and FORTIFY_SOURCE crash Ronja Meyer
2026-05-26 14:29 ` [PATCH v2 1/2] scsi: libsas: Define sas_identify_frame_local via struct_group Ronja Meyer
2026-05-26 14:29 ` [PATCH v2 2/2] scsi: pm8001: Match hw_event_resp to HBA data layout Ronja Meyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®