diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-02 22:02:59 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-12-04 00:29:59 +0300 |
commit | 35fdb302caab92f7ee998ff428b0f41c2c3a45f7 (patch) | |
tree | 1a37016348f1e3be943a7c3e563ba02f630a24c9 /tools/perf/scripts/python/stackcollapse.py | |
parent | 3c39919a5f3d65abff031a7d9acd3b5f5672eec7 (diff) | |
download | linux-35fdb302caab92f7ee998ff428b0f41c2c3a45f7.tar.xz |
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 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions