[PATCH 00/11] scsi: Constify 'struct bin_attribute'

From: Thomas Weißschuh
Date: Mon Dec 16 2024 - 06:29:27 EST


The sysfs core now allows instances of 'struct bin_attribute' to be
moved into read-only memory. Make use of that to protect them against
accidental or malicious modifications.

Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
Thomas Weißschuh (11):
scsi: core: Constify 'struct bin_attribute'
scsi: 3w-sas: Constify 'struct bin_attribute'
scsi: arcmsr: Constify 'struct bin_attribute'
scsi: esas2r: Constify 'struct bin_attribute'
scsi: ibmvfc: Constify 'struct bin_attribute'
scsi: lpfc: Constify 'struct bin_attribute'
scsi: ipr: Constify 'struct bin_attribute'
scsi: qedf: Constify 'struct bin_attribute'
scsi: qedi: Constify 'struct bin_attribute'
scsi: qla2xxx: Constify 'struct bin_attribute'
scsi: qla4xxx: Constify 'struct bin_attribute'

drivers/scsi/3w-sas.c | 12 +++---
drivers/scsi/arcmsr/arcmsr_attr.c | 12 +++---
drivers/scsi/esas2r/esas2r.h | 12 +++---
drivers/scsi/esas2r/esas2r_main.c | 32 ++++++++--------
drivers/scsi/ibmvscsi/ibmvfc.c | 6 +--
drivers/scsi/ipr.c | 26 ++++++-------
drivers/scsi/lpfc/lpfc_attr.c | 20 +++++-----
drivers/scsi/qedf/qedf_attr.c | 10 ++---
drivers/scsi/qedf/qedf_dbg.h | 2 +-
drivers/scsi/qedi/qedi_dbg.h | 2 +-
drivers/scsi/qla2xxx/qla_attr.c | 80 +++++++++++++++++++--------------------
drivers/scsi/qla4xxx/ql4_attr.c | 12 +++---
drivers/scsi/scsi_sysfs.c | 16 ++++----
13 files changed, 121 insertions(+), 121 deletions(-)
---
base-commit: 2d8308bf5b67dff50262d8a9260a50113b3628c6
change-id: 20241215-sysfs-const-bin_attr-scsi-bf43eb2f7f9e

Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>