aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2024-09-15 16:21:54 +0000
committerAlexei Starovoitov <[email protected]>2024-10-04 00:47:35 +0000
commit7bae563c0dbe0039d80a103601f64dcdb48b1481 (patch)
treeccb9643b435f76c1e75ab5f3154a8d249ed5db2e /tools/lib/bpf
parentselftests/bpf: Bail out quickly from failing consumer test (diff)
downloadkernel-7bae563c0dbe0039d80a103601f64dcdb48b1481.tar.gz
kernel-7bae563c0dbe0039d80a103601f64dcdb48b1481.zip
bpf: Constify struct btf_kind_operations
struct btf_kind_operations are not modified in BTF. Constifying this structures moves some data to a read-only section, so increase overall security, especially when the structure holds some function pointers. On a x86_64, with allmodconfig: Before: ====== text data bss dec hex filename 184320 7091 548 191959 2edd7 kernel/bpf/btf.o After: ===== text data bss dec hex filename 184896 6515 548 191959 2edd7 kernel/bpf/btf.o Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/r/9192ab72b2e9c66aefd6520f359a20297186327f.1726417289.git.christophe.jaillet@wanadoo.fr Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf')
0 files changed, 0 insertions, 0 deletions