aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2019-03-26 13:02:16 -0700
committerAlexei Starovoitov <ast@kernel.org>2019-03-26 13:02:17 -0700
commit61777f37877484ee7c94e5e202abb3bc4ed43324 (patch)
treed5a2efc9d6c204c1014fae26e3adc4c617911173 /Documentation
parentbpf: fix use after free in bpf_evict_inode (diff)
parentselftests/bpf: test case for invalid call stack in dead code (diff)
downloadlinux-dev-61777f37877484ee7c94e5e202abb3bc4ed43324.tar.xz
linux-dev-61777f37877484ee7c94e5e202abb3bc4ed43324.zip
Merge branch 'fix-verifier-warning'
Paul Chaignon says: ==================== The BPF verifier checks the maximum number of call stack frames twice, first in the main CFG traversal (do_check) and then in a subsequent traversal (check_max_stack_depth). If the second check fails, it logs a 'verifier bug' warning and errors out, as the number of call stack frames should have been verified already. However, the second check may fail without indicating a verifier bug: if the excessive function calls reside in dead code, the main CFG traversal may not visit them; the subsequent traversal visits all instructions, including dead code. This case raises the question of how invalid dead code should be treated. The first patch implements the conservative option and rejects such code; the second adds a test case. ==================== Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions