summaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2024-09-15 19:21:54 +0300
committerAlexei Starovoitov <ast@kernel.org>2024-10-04 03:47:35 +0300
commit7bae563c0dbe0039d80a103601f64dcdb48b1481 (patch)
treeccb9643b435f76c1e75ab5f3154a8d249ed5db2e /scripts/bpf_doc.py
parent58dbb36930183aea41024d9c0b0ed97629473e20 (diff)
downloadlinux-7bae563c0dbe0039d80a103601f64dcdb48b1481.tar.xz
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 <christophe.jaillet@wanadoo.fr> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/r/9192ab72b2e9c66aefd6520f359a20297186327f.1726417289.git.christophe.jaillet@wanadoo.fr Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions