diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2025-01-15 00:50:20 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-21 11:20:32 +0300 |
commit | 80f756cabfbf81d0d629b45eb8e3f9f0196728d2 (patch) | |
tree | dcdb3e32b8bf90eb932969ef9bda2997aa2df268 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 4aad348d0fa62f816ae3e9dfbfc6663443357c0c (diff) | |
download | linux-80f756cabfbf81d0d629b45eb8e3f9f0196728d2.tar.xz |
firmware: qemu_fw_cfg: 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>
Acked-by: Gabriel Somlo <somlo@cmu.edu>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://lore.kernel.org/r/20250114-sysfs-const-bin_attr-qemu_fw_cfg-v1-1-76f525a3ee72@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions