[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241202-sysfs-const-bin_attr-pdx86-v1-0-9ab204c2a814@weissschuh.net>
Date: Mon, 02 Dec 2024 20:38:31 +0100
From: Thomas Weißschuh <linux@...ssschuh.net>
To: Stuart Hayes <stuart.w.hayes@...il.com>,
Hans de Goede <hdegoede@...hat.com>,
Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
"David E. Box" <david.e.box@...ux.intel.com>,
Naveen Krishna Chatradhi <naveenkrishna.chatradhi@....com>,
Carlos Bilbao <carlos.bilbao.osdev@...il.com>
Cc: platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org,
Thomas Weißschuh <linux@...ssschuh.net>
Subject: [PATCH 0/5] platform/x86: 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.
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@...ssschuh.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@...ssschuh.net>
Powered by blists - more mailing lists