diff options
author | Alexei Starovoitov <ast@kernel.org> | 2019-11-14 19:57:13 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-11-15 23:44:06 +0100 |
commit | 9fd4a39dc7fe734d26eb89ea97e8c91331c6378c (patch) | |
tree | 5783728bdca357b04e48d656d84eb07b1624a4a8 /kernel/bpf/verifier.c | |
parent | selftests/bpf: Add stress test for maximum number of progs (diff) | |
download | linux-9fd4a39dc7fe734d26eb89ea97e8c91331c6378c.tar.xz linux-9fd4a39dc7fe734d26eb89ea97e8c91331c6378c.zip |
bpf: Reserve space for BPF trampoline in BPF programs
BPF trampoline can be made to work with existing 5 bytes of BPF program
prologue, but let's add 5 bytes of NOPs to the beginning of every JITed BPF
program to make BPF trampoline job easier. They can be removed in the future.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20191114185720.1641606-14-ast@kernel.org
Diffstat (limited to 'kernel/bpf/verifier.c')
0 files changed, 0 insertions, 0 deletions