[PATCH 0/9] misc: constify 'struct bin_attribute'
From: Thomas Weißschuh
Date: Mon Dec 16 2024 - 06:35:57 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 (9):
ocxl: Constify 'struct bin_attribute'
cxl: Constify 'struct bin_attribute'
misc: sram: constify 'struct bin_attribute'
misc: c2port: Calculate bin_attribute size through group callback
misc: c2port: Constify 'struct bin_attribute'
misc: pch_phub: Constify 'struct bin_attribute'
misc: eeprom/idt_89hpesx: Constify 'struct bin_attribute'
misc: eeprom/max6875: Constify 'struct bin_attribute'
misc: ds1682: Constify 'struct bin_attribute'
drivers/misc/c2port/core.c | 27 +++++++++++++++++++--------
drivers/misc/cxl/sysfs.c | 8 ++++----
drivers/misc/ds1682.c | 8 ++++----
drivers/misc/eeprom/idt_89hpesx.c | 6 +++---
drivers/misc/eeprom/max6875.c | 4 ++--
drivers/misc/ocxl/sysfs.c | 4 ++--
drivers/misc/pch_phub.c | 8 ++++----
drivers/misc/sram.c | 8 ++++----
8 files changed, 42 insertions(+), 31 deletions(-)
---
base-commit: 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8
change-id: 20241215-sysfs-const-bin_attr-misc-drivers-721114a2b3d3
Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>