aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/locking
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2024-12-21 15:48:11 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-24 09:36:02 +0100
commitfc58d178b0b4506a6cef59cdb83add920f7dd6a5 (patch)
treec98ff1c2401e98d6c8673f523edebdea2b7a148a /kernel/locking
parentmisc: c2port: Calculate bin_attribute size through group callback (diff)
downloadlinux-fc58d178b0b4506a6cef59cdb83add920f7dd6a5.tar.gz
linux-fc58d178b0b4506a6cef59cdb83add920f7dd6a5.zip
misc: c2port: 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. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20241221-sysfs-const-bin_attr-misc-drivers-v2-5-ba5e79fe8771@weissschuh.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/locking')
0 files changed, 0 insertions, 0 deletions