Revision 27de809a3d83a6199664479ebb19712533d6fd9b authored by Björn Töpel on 28 October 2021, 12:51:15 UTC, committed by Jakub Kicinski on 28 October 2021, 15:14:30 UTC
The bpf_jit_binary_free() function requires a non-NULL argument. When
the RISC-V BPF JIT fails to converge in NR_JIT_ITERATIONS steps,
jit_data->header will be NULL, which triggers a NULL
dereference. Avoid this by checking the argument, prior calling the
function.

Fixes: ca6cb5447cec ("riscv, bpf: Factor common RISC-V JIT code")
Signed-off-by: Björn Töpel <bjorn@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/r/20211028125115.514587-1-bjorn@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 20af886
History
File Mode Size
associativity.rst -rw-r--r-- 4.6 KB
booting.rst -rw-r--r-- 5.5 KB
bootwrapper.rst -rw-r--r-- 6.6 KB
cpu_families.rst -rw-r--r-- 6.2 KB
cpu_features.rst -rw-r--r-- 2.7 KB
cxl.rst -rw-r--r-- 15.8 KB
cxlflash.rst -rw-r--r-- 21.6 KB
dawr-power9.rst -rw-r--r-- 3.4 KB
dscr.rst -rw-r--r-- 3.4 KB
eeh-pci-error-recovery.rst -rw-r--r-- 14.9 KB
elfnote.rst -rw-r--r-- 1.3 KB
features.rst -rw-r--r-- 94 bytes
firmware-assisted-dump.rst -rw-r--r-- 16.8 KB
hvcs.rst -rw-r--r-- 22.5 KB
imc.rst -rw-r--r-- 6.3 KB
index.rst -rw-r--r-- 620 bytes
isa-versions.rst -rw-r--r-- 2.1 KB
kaslr-booke32.rst -rw-r--r-- 1.7 KB
mpc52xx.rst -rw-r--r-- 1.2 KB
papr_hcalls.rst -rw-r--r-- 14.4 KB
pci_iov_resource_on_powernv.rst -rw-r--r-- 14.6 KB
pmu-ebb.rst -rw-r--r-- 5.3 KB
ptrace.rst -rw-r--r-- 6.1 KB
qe_firmware.rst -rw-r--r-- 12.9 KB
syscall64-abi.rst -rw-r--r-- 6.4 KB
transactional_memory.rst -rw-r--r-- 11.1 KB
ultravisor.rst -rw-r--r-- 33.8 KB
vas-api.rst -rw-r--r-- 10.7 KB
vcpudispatch_stats.rst -rw-r--r-- 3.0 KB

back to top