diff options
author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2021-11-22 15:47:41 +0100 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-12-02 22:39:46 +0100 |
commit | b12f031043247b80999bf5e03b8cded3b0b40f8d (patch) | |
tree | dab61f9512dee774fa85bedee54ee70439f8a66a /LICENSES | |
parent | bpf: Make CONFIG_DEBUG_INFO_BTF depend upon CONFIG_BPF_SYSCALL (diff) | |
download | linux-b12f031043247b80999bf5e03b8cded3b0b40f8d.tar.xz linux-b12f031043247b80999bf5e03b8cded3b0b40f8d.zip |
bpf: Fix bpf_check_mod_kfunc_call for built-in modules
When module registering its set is built-in, THIS_MODULE will be NULL,
hence we cannot return early in case owner is NULL.
Fixes: 14f267d95fe4 ("bpf: btf: Introduce helpers for dynamic BTF set registration")
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20211122144742.477787-3-memxor@gmail.com
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions