[PATCH net-next 0/5] net: constify 'struct bin_attribute'
From: Thomas Weißschuh
Date: Mon Dec 16 2024 - 06:32:51 EST
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@xxxxxxxxxxxxxx>
---
Thomas Weißschuh (5):
net: bridge: constify 'struct bin_attribute'
net: phy: ks8995: constify 'struct bin_attribute'
wlcore: sysfs: constify 'struct bin_attribute'
netxen_nic: constify 'struct bin_attribute'
qlcnic: constify 'struct bin_attribute'
.../net/ethernet/qlogic/netxen/netxen_nic_main.c | 20 +++----
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c | 70 +++++++++++-----------
drivers/net/phy/spi_ks8995.c | 8 +--
drivers/net/wireless/ti/wlcore/sysfs.c | 4 +-
net/bridge/br_sysfs_br.c | 6 +-
5 files changed, 54 insertions(+), 54 deletions(-)
---
base-commit: 2d8308bf5b67dff50262d8a9260a50113b3628c6
change-id: 20241215-sysfs-const-bin_attr-net-4d8c00e56604
Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>