linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] misc: constify 'struct bin_attribute'
@ 2024-12-16 11:32 Thomas Weißschuh
  2024-12-16 11:32 ` [PATCH 1/9] ocxl: Constify " Thomas Weißschuh
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Thomas Weißschuh @ 2024-12-16 11:32 UTC (permalink / raw)
  To: Frederic Barrat, Andrew Donnellan, Arnd Bergmann,
	Greg Kroah-Hartman
  Cc: linuxppc-dev, 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.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
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@weissschuh.net>


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

end of thread, other threads:[~2024-12-18  7:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-16 11:32 [PATCH 0/9] misc: constify 'struct bin_attribute' Thomas Weißschuh
2024-12-16 11:32 ` [PATCH 1/9] ocxl: Constify " Thomas Weißschuh
2024-12-18  7:21   ` Andrew Donnellan
2024-12-16 11:32 ` [PATCH 2/9] cxl: " Thomas Weißschuh
2024-12-18  7:21   ` Andrew Donnellan
2024-12-16 11:32 ` [PATCH 3/9] misc: sram: constify " Thomas Weißschuh
2024-12-16 11:32 ` [PATCH 4/9] misc: c2port: Calculate bin_attribute size through group callback Thomas Weißschuh
2024-12-16 11:33 ` [PATCH 5/9] misc: c2port: Constify 'struct bin_attribute' Thomas Weißschuh
2024-12-16 11:33 ` [PATCH 6/9] misc: pch_phub: " Thomas Weißschuh
2024-12-16 11:33 ` [PATCH 7/9] misc: eeprom/idt_89hpesx: " Thomas Weißschuh
2024-12-16 11:33 ` [PATCH 8/9] misc: eeprom/max6875: " Thomas Weißschuh
2024-12-16 11:33 ` [PATCH 9/9] misc: ds1682: " Thomas Weißschuh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).