mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
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:57631054fa("bpf: Introduce bpf_prog_pack allocator") Fixes:33c9805860("bpf: Introduce bpf_jit_binary_pack_[alloc|finalize|free]") Reported-by: Linus Torvalds <[email protected]> Signed-off-by: Song Liu <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]