Skip to content

Conversation

@Asphaltt
Copy link
Contributor

Fix 'tr' dereferencing bug when CONFIG_BPF_JIT is turned off.

When CONFIG_BPF_JIT is turned off, 'bpf_trampoline_get()' returns NULL, which is same as the cases when CONFIG_BPF_JIT is turned on.

v1->v2:

  • Comments from Alexei:
    • Return NULL in that case.

Fixes: f7b12b6 ("bpf: verifier: refactor check_attach_btf_id()")
Reported-by: kernel test robot [email protected]
Reported-by: Dan Carpenter [email protected]
Closes: https://lore.kernel.org/r/[email protected]/

Fix 'tr' dereferencing bug when CONFIG_BPF_JIT is turned off.

When CONFIG_BPF_JIT is turned off, 'bpf_trampoline_get()' returns NULL,
which is same as the cases when CONFIG_BPF_JIT is turned on.

v1->v2:
 * Comments from Alexei:
   * Return NULL in that case.

Fixes: f7b12b6 ("bpf: verifier: refactor check_attach_btf_id()")
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Leon Hwang <[email protected]>
@Asphaltt Asphaltt closed this Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant