Commit 9c49aed
committed
bpf: Check the helper function is valid in get_helper_proto
JIRA: https://issues.redhat.com/browse/RHEL-78204
commit e4414b0
Author: Jiri Olsa <[email protected]>
Date: Thu Aug 14 22:06:55 2025 +0200
bpf: Check the helper function is valid in get_helper_proto
kernel test robot reported verifier bug [1] where the helper func
pointer could be NULL due to disabled config option.
As Alexei suggested we could check on that in get_helper_proto
directly. Marking tail_call helper func with BPF_PTR_POISON,
because it is unused by design.
[1] https://lore.kernel.org/oe-lkp/[email protected]
Reported-by: kernel test robot <[email protected]>
Reported-by: [email protected]
Suggested-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Paul Chaignon <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Closes: https://lore.kernel.org/oe-lkp/[email protected]
Signed-off-by: Jerome Marchand <[email protected]>1 parent 372235d commit 9c49aed
2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3029 | 3029 | | |
3030 | 3030 | | |
3031 | 3031 | | |
3032 | | - | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
| 3035 | + | |
3033 | 3036 | | |
3034 | 3037 | | |
3035 | 3038 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11358 | 11358 | | |
11359 | 11359 | | |
11360 | 11360 | | |
11361 | | - | |
| 11361 | + | |
11362 | 11362 | | |
11363 | 11363 | | |
11364 | 11364 | | |
| |||
0 commit comments