diff options
| author | 2023-09-17 23:38:46 +0800 | |
|---|---|---|
| committer | 2023-09-19 16:41:26 -0700 | |
| commit | b724a6418f1f853bcb39c8923bf14a50c7bdbd07 (patch) | |
| tree | 23611ba5221b2d207fac01408b1caec5291ae2c6 /rust/kernel/ssh:/git@git.zx2c4.com | |
| parent | Merge branch 's390-bpf-fix-arch_prepare_bpf_trampoline' (diff) | |
bpf: Fix tr dereferencing
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.
Closes: https://lore.kernel.org/r/202309131936.5Nc8eUD0-lkp@intel.com/
Fixes: f7b12b6fea00 ("bpf: verifier: refactor check_attach_btf_id()")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Leon Hwang <hffilwlqm@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230917153846.88732-1-hffilwlqm@gmail.com
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
