diff options
author | Alexei Starovoitov <ast@kernel.org> | 2019-08-23 07:52:12 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-08-28 00:30:11 +0200 |
commit | 10d274e880eb208ec6a76261a9f8f8155020f771 (patch) | |
tree | 5188b50b171df8b2d1528ec60d2ec69cb2e775d5 /kernel/bpf/syscall.c | |
parent | tools: bpftool: add "bpftool map freeze" subcommand (diff) | |
download | linux-10d274e880eb208ec6a76261a9f8f8155020f771.tar.xz linux-10d274e880eb208ec6a76261a9f8f8155020f771.zip |
bpf: introduce verifier internal test flag
Introduce BPF_F_TEST_STATE_FREQ flag to stress test parentage chain
and state pruning.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'kernel/bpf/syscall.c')
-rw-r--r-- | kernel/bpf/syscall.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index c0f62fd67c6b..ca60eafa6922 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c @@ -1629,6 +1629,7 @@ static int bpf_prog_load(union bpf_attr *attr, union bpf_attr __user *uattr) if (attr->prog_flags & ~(BPF_F_STRICT_ALIGNMENT | BPF_F_ANY_ALIGNMENT | + BPF_F_TEST_STATE_FREQ | BPF_F_TEST_RND_HI32)) return -EINVAL; |