netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] net: constify 'struct bin_attribute'
@ 2024-12-16 11:30 Thomas Weißschuh
  2024-12-16 11:30 ` [PATCH net-next 1/5] net: bridge: " Thomas Weißschuh
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Thomas Weißschuh @ 2024-12-16 11:30 UTC (permalink / raw)
  To: Roopa Prabhu, Nikolay Aleksandrov, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Simon Horman, Andrew Lunn,
	Heiner Kallweit, Russell King, Kalle Valo, Manish Chopra,
	Rahul Verma, GR-Linux-NIC-Dev, Andrew Lunn, Shahed Shaikh
  Cc: bridge, netdev, linux-kernel, linux-wireless,
	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 (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@weissschuh.net>


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

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

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-16 11:30 [PATCH net-next 0/5] net: constify 'struct bin_attribute' Thomas Weißschuh
2024-12-16 11:30 ` [PATCH net-next 1/5] net: bridge: " Thomas Weißschuh
2024-12-17 10:27   ` Simon Horman
2024-12-17 10:43   ` Nikolay Aleksandrov
2024-12-16 11:30 ` [PATCH net-next 2/5] net: phy: ks8995: " Thomas Weißschuh
2024-12-16 15:40   ` Andrew Lunn
2024-12-16 11:30 ` [PATCH net-next 3/5] wlcore: sysfs: " Thomas Weißschuh
2024-12-16 12:46   ` Kalle Valo
2024-12-18 18:05   ` [net-next,3/5] wifi: " Kalle Valo
2024-12-16 11:30 ` [PATCH net-next 4/5] netxen_nic: " Thomas Weißschuh
2024-12-17 10:28   ` Simon Horman
2024-12-16 11:30 ` [PATCH net-next 5/5] qlcnic: " Thomas Weißschuh
2024-12-17 10:28   ` Simon Horman
2024-12-18  3:03   ` Jakub Kicinski
2024-12-18  3:10 ` [PATCH net-next 0/5] net: " patchwork-bot+netdevbpf

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).