diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2017-12-27 20:36:23 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2017-12-27 20:36:24 +0300 |
commit | 624588d9d6cc0a1a270a65fb4d5220f1ceddcf38 (patch) | |
tree | 6b20b371d1cb00f74dc0a298bc882d1c9acbd3f1 /include/linux/bpf_verifier.h | |
parent | 6b80ad299208b44ba33cb6df80bdaa3f63cf03e2 (diff) | |
parent | aada9ce644e53410954daa6beb1f7c4ca158abd7 (diff) | |
download | linux-624588d9d6cc0a1a270a65fb4d5220f1ceddcf38.tar.xz |
Merge branch 'bpf-stack-depth-tracking-fixes'
Alexei Starovoitov says:
====================
Jann reported an issue with stack depth tracking. Fix it and add tests.
Also fix off-by-one error in MAX_CALL_FRAMES check. This set is on top
of Jann's "selftest for late caller stack size increase" test.
====================
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/linux/bpf_verifier.h')
-rw-r--r-- | include/linux/bpf_verifier.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/bpf_verifier.h b/include/linux/bpf_verifier.h index aaac589e490c..94a02ceb1246 100644 --- a/include/linux/bpf_verifier.h +++ b/include/linux/bpf_verifier.h @@ -194,6 +194,7 @@ struct bpf_verifier_env { struct bpf_insn_aux_data *insn_aux_data; /* array of per-insn state */ struct bpf_verifer_log log; u32 subprog_starts[BPF_MAX_SUBPROGS]; + /* computes the stack depth of each bpf function */ u16 subprog_stack_depth[BPF_MAX_SUBPROGS + 1]; u32 subprog_cnt; }; |