Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf: Fix holes in special_kfunc_list if !CONFIG_NET
If the function is not available its entry has to be replaced with BTF_ID_UNUSED instead of skipped. Otherwise the list doesn't work correctly. Reported-by: Alexei Starovoitov <[email protected]> Closes: https://lore.kernel.org/lkml/CAADnVQJQpVziHzrPCCpGE5=8uzw2OkxP8gqe1FkJ6_XVVyVbNw@mail.gmail.com/ Fixes: 00a5acd ("bpf: Fix configuration-dependent BTF function references") Signed-off-by: Thomas Weißschuh <[email protected]> Acked-by: Jiri Olsa <[email protected]>
- Loading branch information