aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorHongbo Li <[email protected]>2024-09-04 09:18:37 +0800
committerAlex Williamson <[email protected]>2024-09-06 08:20:52 -0600
commit27a8204b26ac009e47e0bcde4cd24ff69d96fccf (patch)
treebc0eded1b234ab189de9ed5b64f6c76a3c48d500 /tools/testing/selftests/bpf/progs/test_autoload.c
parent7555c7d2cfc471144bc356e4a7c4a1d8733567a7 (diff)
vfio/mdev: Constify struct kobj_type
This 'struct kobj_type' is not modified. It is only used in kobject_init_and_add() which takes a 'const struct kobj_type *ktype' parameter. Constifying this structure and moving it to a read-only section, and this can increase over all security. ``` [Before] text data bss dec hex filename 2372 600 0 2972 b9c drivers/vfio/mdev/mdev_sysfs.o [After] text data bss dec hex filename 2436 568 0 3004 bbc drivers/vfio/mdev/mdev_sysfs.o ``` Signed-off-by: Hongbo Li <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions