mbox series

[net-next,0/5] net: constify 'struct bin_attribute'

Message ID 20241216-sysfs-const-bin_attr-net-v1-0-ec460b91f274@weissschuh.net (mailing list archive)
Headers show
Series net: constify 'struct bin_attribute' | expand

Message

Thomas Weißschuh Dec. 16, 2024, 11:30 a.m. UTC
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,

Comments

patchwork-bot+netdevbpf@kernel.org Dec. 18, 2024, 3:10 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Mon, 16 Dec 2024 12:30:07 +0100 you wrote:
> 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'
> 
> [...]

Here is the summary with links:
  - [net-next,1/5] net: bridge: constify 'struct bin_attribute'
    https://git.kernel.org/netdev/net-next/c/a2558b410de3
  - [net-next,2/5] net: phy: ks8995: constify 'struct bin_attribute'
    https://git.kernel.org/netdev/net-next/c/2d7b422fa795
  - [net-next,3/5] wlcore: sysfs: constify 'struct bin_attribute'
    (no matching commit)
  - [net-next,4/5] netxen_nic: constify 'struct bin_attribute'
    https://git.kernel.org/netdev/net-next/c/ae026eae08e7
  - [net-next,5/5] qlcnic: constify 'struct bin_attribute'
    (no matching commit)

You are awesome, thank you!