mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] platform/x86: Constify 'struct bin_attribute'
@ 2024-12-02 19:38 Thomas Weißschuh
  2024-12-02 19:38 ` [PATCH 1/5] platform/x86: dell: dcdbas: " Thomas Weißschuh
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Thomas Weißschuh @ 2024-12-02 19:38 UTC (permalink / raw)
  To: Stuart Hayes, Hans de Goede, Ilpo Järvinen, David E. Box,
	Naveen Krishna Chatradhi, Carlos Bilbao
  Cc: platform-driver-x86, 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.

The usage of read_new/write_new/bin_attrs_new is a transition mechanism
and will be removed after the tree-wide transition to
const struct bin_attribute.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (5):
      platform/x86: dell: dcdbas: Constify 'struct bin_attribute'
      platform/x86: dell_rbu: Constify 'struct bin_attribute'
      platform/x86/intel/sdsi: Constify 'struct bin_attribute'
      platform/x86/intel/pmt: Constify 'struct bin_attribute'
      platform/x86/amd/hsmp: Constify 'struct bin_attribute'

 drivers/platform/x86/amd/hsmp/acpi.c   | 12 ++++++------
 drivers/platform/x86/amd/hsmp/plat.c   | 12 ++++++------
 drivers/platform/x86/dell/dcdbas.c     | 10 +++++-----
 drivers/platform/x86/dell/dcdbas.h     |  8 --------
 drivers/platform/x86/dell/dell_rbu.c   | 20 ++++++++++----------
 drivers/platform/x86/intel/pmt/class.c |  4 ++--
 drivers/platform/x86/intel/sdsi.c      | 34 +++++++++++++++++-----------------
 7 files changed, 46 insertions(+), 54 deletions(-)
---
base-commit: e70140ba0d2b1a30467d4af6bcfe761327b9ec95
change-id: 20241202-sysfs-const-bin_attr-pdx86-c16ca5d376ca

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


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

end of thread, other threads:[~2025-01-02 21:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-02 19:38 [PATCH 0/5] platform/x86: Constify 'struct bin_attribute' Thomas Weißschuh
2024-12-02 19:38 ` [PATCH 1/5] platform/x86: dell: dcdbas: " Thomas Weißschuh
2024-12-02 19:38 ` [PATCH 2/5] platform/x86: dell_rbu: " Thomas Weißschuh
2024-12-02 19:38 ` [PATCH 3/5] platform/x86/intel/sdsi: " Thomas Weißschuh
2024-12-02 19:38 ` [PATCH 4/5] platform/x86/intel/pmt: " Thomas Weißschuh
2024-12-02 19:38 ` [PATCH 5/5] platform/x86/amd/hsmp: " Thomas Weißschuh
2024-12-19 14:59   ` Chatradhi, Naveen Krishna
2025-01-02 21:36   ` Carlos Bilbao
2024-12-12 14:47 ` [PATCH 0/5] platform/x86: " Ilpo Järvinen

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

Powered by JetHome