aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorSong Liu <[email protected]>2022-05-20 23:57:51 +0000
committerDaniel Borkmann <[email protected]>2022-05-23 21:07:29 +0000
commitd88bb5eed04ce50cc20e7f9282977841728be798 (patch)
tree699971170d11656aa2f2a15d9fce780edb856500 /net/unix/af_unix.c
parentselftests/bpf: Fix spelling mistake: "unpriviliged" -> "unprivileged" (diff)
downloadkernel-d88bb5eed04ce50cc20e7f9282977841728be798.tar.gz
kernel-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 <[email protected]> Signed-off-by: Song Liu <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions