Commit 80eb737
bpf: abort verification if env->cur_state->loop_entry != NULL
commit f3c2d24 upstream.
In addition to warning abort verification with -EFAULT.
If env->cur_state->loop_entry != NULL something is irrecoverably
buggy.
Fixes: bbbc02b ("bpf: copy_verifier_state() should copy 'loop_entry' field")
Suggested-by: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20250225003838.135319-1-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent fdee1dc commit 80eb737
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18721 | 18721 | | |
18722 | 18722 | | |
18723 | 18723 | | |
18724 | | - | |
18725 | | - | |
| 18724 | + | |
| 18725 | + | |
| 18726 | + | |
| 18727 | + | |
18726 | 18728 | | |
18727 | 18729 | | |
18728 | 18730 | | |
| |||
0 commit comments