summaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorSong Liu <song@kernel.org>2022-05-20 16:57:51 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2022-05-23 23:07:29 +0200
commitd88bb5eed04ce50cc20e7f9282977841728be798 (patch)
tree699971170d11656aa2f2a15d9fce780edb856500 /scripts/bpf_doc.py
parentf9a3eca4bc0452a7079282d1ad87d65cb3463f0a (diff)
downloadlinux-d88bb5eed04ce50cc20e7f9282977841728be798.tar.gz
linux-d88bb5eed04ce50cc20e7f9282977841728be798.tar.bz2
linux-d88bb5eed04ce50cc20e7f9282977841728be798.zip
bpf: Fill new bpf_prog_pack with illegal instructions
bpf_prog_pack enables sharing huge pages among multiple BPF programs. These pages are marked as executable before the JIT engine fill it with BPF programs. To make these pages safe, fill the hole bpf_prog_pack with illegal instructions before making it executable. Fixes: 57631054fae6 ("bpf: Introduce bpf_prog_pack allocator") Fixes: 33c9805860e5 ("bpf: Introduce bpf_jit_binary_pack_[alloc|finalize|free]") Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Song Liu <song@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20220520235758.1858153-2-song@kernel.org
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions