diff options
author | 2017-12-27 18:36:23 +0100 | |
---|---|---|
committer | 2017-12-27 18:36:24 +0100 | |
commit | 624588d9d6cc0a1a270a65fb4d5220f1ceddcf38 (patch) | |
tree | 6b20b371d1cb00f74dc0a298bc882d1c9acbd3f1 /include/linux | |
parent | bpf: selftest for late caller stack size increase (diff) | |
parent | bpf: fix max call depth check (diff) | |
download | wireguard-linux-624588d9d6cc0a1a270a65fb4d5220f1ceddcf38.tar.xz wireguard-linux-624588d9d6cc0a1a270a65fb4d5220f1ceddcf38.zip |
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')
-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; }; |