]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge branch 'net-constify-struct-bin_attribute'
authorJakub Kicinski <kuba@kernel.org>
Wed, 18 Dec 2024 03:00:51 +0000 (19:00 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Dec 2024 03:02:40 +0000 (19:02 -0800)
Thomas Weißschuh says:

====================
net: 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.
====================

Link: https://patch.msgid.link/20241216-sysfs-const-bin_attr-net-v1-0-ec460b91f274@weissschuh.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge