public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] s390: Constify 'struct bin_attribute'
@ 2024-12-11 17:54 Thomas Weißschuh
  2024-12-11 17:54 ` [PATCH 1/5] s390/crypto/cpacf: " Thomas Weißschuh
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Thomas Weißschuh @ 2024-12-11 17:54 UTC (permalink / raw)
  To: Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger, Sven Schnelle, Niklas Schnelle,
	Gerald Schaefer, Vineeth Vijayan, Peter Oberparleiter,
	Harald Freudenberger, Holger Dengler
  Cc: linux-s390, linux-kernel, Thomas Weißschuh

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.

drivers/s390/cio/chp.c is handled in [0].

[0] https://lore.kernel.org/lkml/20241205-sysfs-const-bin_attr-groups_macro-v1-1-ac5e855031e8@weissschuh.net/

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (5):
      s390/crypto/cpacf: Constify 'struct bin_attribute'
      s390/ipl: Constify 'struct bin_attribute'
      s390/pci: Constify 'struct bin_attribute'
      s390/sclp: Constify 'struct bin_attribute'
      s390/pkey: Constify 'struct bin_attribute'

 arch/s390/kernel/cpacf.c         |  36 +++++-----
 arch/s390/kernel/ipl.c           | 142 +++++++++++++++++++--------------------
 arch/s390/pci/pci_sysfs.c        |  12 ++--
 drivers/s390/char/sclp_config.c  |   4 +-
 drivers/s390/char/sclp_sd.c      |   4 +-
 drivers/s390/crypto/pkey_sysfs.c | 128 +++++++++++++++++------------------
 6 files changed, 163 insertions(+), 163 deletions(-)
---
base-commit: f92f4749861b06fed908d336b4dee1326003291b
change-id: 20241211-sysfs-const-bin_attr-s390-f8949a9e39cb

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>


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

end of thread, other threads:[~2025-01-07  9:18 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-11 17:54 [PATCH 0/5] s390: Constify 'struct bin_attribute' Thomas Weißschuh
2024-12-11 17:54 ` [PATCH 1/5] s390/crypto/cpacf: " Thomas Weißschuh
2024-12-12 12:01   ` Finn Callies
2024-12-12 15:06   ` Holger Dengler
2024-12-11 17:54 ` [PATCH 2/5] s390/ipl: " Thomas Weißschuh
2025-01-03 14:12   ` Alexander Gordeev
2024-12-11 17:54 ` [PATCH 3/5] s390/pci: " Thomas Weißschuh
2025-01-03 14:14   ` Alexander Gordeev
2024-12-11 17:54 ` [PATCH 4/5] s390/sclp: " Thomas Weißschuh
2025-01-03 14:13   ` Alexander Gordeev
2024-12-11 17:54 ` [PATCH 5/5] s390/pkey: " Thomas Weißschuh
2024-12-12 15:03   ` Holger Dengler
2025-01-03 14:21     ` Alexander Gordeev
2025-01-07  8:50       ` Harald Freudenberger
2025-01-07  9:18 ` [PATCH 0/5] s390: " Alexander Gordeev

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