public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] firmware: google: Constify 'struct bin_attribute'
@ 2024-12-15 14:49 Thomas Weißschuh
  2024-12-15 14:49 ` [PATCH 1/4] firmware: google: cbmem: " Thomas Weißschuh
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Thomas Weißschuh @ 2024-12-15 14:49 UTC (permalink / raw)
  To: Tzung-Bi Shih, Brian Norris, Julius Werner
  Cc: chrome-platform, 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.

Please also note the remark at the end of the vpd patch.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (4):
      firmware: google: cbmem: Constify 'struct bin_attribute'
      firmware: google: gsmi: Constify 'struct bin_attribute'
      firmware: google: memconsole: Use const 'struct bin_attribute' callback
      firmware: google: vpd: Use const 'struct bin_attribute' callback

 drivers/firmware/google/cbmem.c      | 10 +++++-----
 drivers/firmware/google/gsmi.c       |  6 +++---
 drivers/firmware/google/memconsole.c |  4 ++--
 drivers/firmware/google/vpd.c        |  8 ++++----
 4 files changed, 14 insertions(+), 14 deletions(-)
---
base-commit: 2d8308bf5b67dff50262d8a9260a50113b3628c6
change-id: 20241215-sysfs-const-bin_attr-google-2af43b3f793e

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


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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-15 14:49 [PATCH 0/4] firmware: google: Constify 'struct bin_attribute' Thomas Weißschuh
2024-12-15 14:49 ` [PATCH 1/4] firmware: google: cbmem: " Thomas Weißschuh
2024-12-15 14:49 ` [PATCH 2/4] firmware: google: gsmi: " Thomas Weißschuh
2024-12-15 14:49 ` [PATCH 3/4] firmware: google: memconsole: Use const 'struct bin_attribute' callback Thomas Weißschuh
2024-12-15 14:49 ` [PATCH 4/4] firmware: google: vpd: " Thomas Weißschuh
2024-12-16 22:09 ` [PATCH 0/4] firmware: google: Constify 'struct bin_attribute' Brian Norris
2024-12-17 18:58   ` Thomas Weißschuh
2024-12-17  4:06 ` Tzung-Bi Shih

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