diff options
| author | Christophe JAILLET <[email protected]> | 2024-09-15 16:21:54 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-10-04 00:47:35 +0000 |
| commit | 7bae563c0dbe0039d80a103601f64dcdb48b1481 (patch) | |
| tree | ccb9643b435f76c1e75ab5f3154a8d249ed5db2e /tools/lib/bpf | |
| parent | selftests/bpf: Bail out quickly from failing consumer test (diff) | |
| download | kernel-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
