[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241211-sysfs-const-bin_attr-s390-v1-0-be01f66bfcf7@weissschuh.net>
Date: Wed, 11 Dec 2024 18:54:38 +0100
From: Thomas Weißschuh <linux@...ssschuh.net>
To: Heiko Carstens <hca@...ux.ibm.com>, Vasily Gorbik <gor@...ux.ibm.com>,
Alexander Gordeev <agordeev@...ux.ibm.com>,
Christian Borntraeger <borntraeger@...ux.ibm.com>,
Sven Schnelle <svens@...ux.ibm.com>,
Niklas Schnelle <schnelle@...ux.ibm.com>,
Gerald Schaefer <gerald.schaefer@...ux.ibm.com>,
Vineeth Vijayan <vneethv@...ux.ibm.com>,
Peter Oberparleiter <oberpar@...ux.ibm.com>,
Harald Freudenberger <freude@...ux.ibm.com>,
Holger Dengler <dengler@...ux.ibm.com>
Cc: linux-s390@...r.kernel.org, linux-kernel@...r.kernel.org,
Thomas Weißschuh <linux@...ssschuh.net>
Subject: [PATCH 0/5] s390: Constify 'struct bin_attribute'
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@...ssschuh.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@...ssschuh.net>
Powered by blists - more mailing lists