diff options
author | Song Liu <song@kernel.org> | 2022-05-20 16:57:53 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-05-23 23:08:11 +0200 |
commit | fe736565efb775620dbcf3c459c1cd80d3e868da (patch) | |
tree | 36163c41f35163deb7c0604f8561b3074967bf47 /scripts | |
parent | aadd1b678ebef81cc3ed23663253ae3749cdc673 (diff) | |
download | linux-fe736565efb775620dbcf3c459c1cd80d3e868da.tar.gz |
bpf: Introduce bpf_arch_text_invalidate for bpf_prog_pack
Introduce bpf_arch_text_invalidate and use it to fill unused part of the
bpf_prog_pack with illegal instructions when a BPF program is freed.
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-4-song@kernel.org
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions