diff options
author | 2024-12-02 20:02:59 +0100 | |
---|---|---|
committer | 2024-12-03 15:29:59 -0600 | |
commit | 35fdb302caab92f7ee998ff428b0f41c2c3a45f7 (patch) | |
tree | 1a37016348f1e3be943a7c3e563ba02f630a24c9 /scripts/gdb/linux/utils.py | |
parent | PCI/VPD: Constify 'struct bin_attribute' (diff) | |
download | wireguard-linux-35fdb302caab92f7ee998ff428b0f41c2c3a45f7.tar.xz wireguard-linux-35fdb302caab92f7ee998ff428b0f41c2c3a45f7.zip |
PCI/P2PDMA: 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://lore.kernel.org/r/20241202-sysfs-const-bin_attr-pci-v1-3-c32360f495a7@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions