diff options
author | Jiri Olsa <olsajiri@gmail.com> | 2025-08-14 22:06:55 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2025-08-15 11:16:56 +0200 |
commit | e4414b01c1cd9887bbde92f946c1ba94e40d6d64 (patch) | |
tree | f4104f957b7f624f7cb4f2f18b364a3a57283890 /scripts/patch-kernel | |
parent | 2b986b9e917bc88f81aa1ed386af63b26c983f1d (diff) |
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/202507160818.68358831-lkp@intel.com
Reported-by: kernel test robot <oliver.sang@intel.com>
Reported-by: syzbot+a9ed3d9132939852d0df@syzkaller.appspotmail.com
Suggested-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Paul Chaignon <paul.chaignon@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20250814200655.945632-1-jolsa@kernel.org
Closes: https://lore.kernel.org/oe-lkp/202507160818.68358831-lkp@intel.com
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions