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
broadcom
intel
qcom
samsung
st
tegra
ti-soc-thermal
Kconfig -rw-r--r-- 15.5 KB
Makefile -rw-r--r-- 2.4 KB
amlogic_thermal.c -rw-r--r-- 8.4 KB
armada_thermal.c -rw-r--r-- 25.7 KB
cpufreq_cooling.c -rw-r--r-- 19.6 KB
cpuidle_cooling.c -rw-r--r-- 7.4 KB
da9062-thermal.c -rw-r--r-- 7.7 KB
db8500_thermal.c -rw-r--r-- 6.4 KB
devfreq_cooling.c -rw-r--r-- 13.6 KB
dove_thermal.c -rw-r--r-- 4.7 KB
gov_bang_bang.c -rw-r--r-- 3.3 KB
gov_fair_share.c -rw-r--r-- 3.3 KB
gov_power_allocator.c -rw-r--r-- 21.2 KB
gov_step_wise.c -rw-r--r-- 5.7 KB
gov_user_space.c -rw-r--r-- 1.3 KB
hisi_thermal.c -rw-r--r-- 17.1 KB
imx8mm_thermal.c -rw-r--r-- 5.3 KB
imx_sc_thermal.c -rw-r--r-- 3.5 KB
imx_thermal.c -rw-r--r-- 24.3 KB
k3_bandgap.c -rw-r--r-- 8.1 KB
khadas_mcu_fan.c -rw-r--r-- 3.6 KB
kirkwood_thermal.c -rw-r--r-- 3.0 KB
max77620_thermal.c -rw-r--r-- 4.6 KB
mtk_thermal.c -rw-r--r-- 29.9 KB
qoriq_thermal.c -rw-r--r-- 9.5 KB
rcar_gen3_thermal.c -rw-r--r-- 12.9 KB
rcar_thermal.c -rw-r--r-- 14.5 KB
rockchip_thermal.c -rw-r--r-- 41.4 KB
spear_thermal.c -rw-r--r-- 4.8 KB
sprd_thermal.c -rw-r--r-- 13.9 KB
sun8i_thermal.c -rw-r--r-- 16.1 KB
thermal-generic-adc.c -rw-r--r-- 4.1 KB
thermal_core.c -rw-r--r-- 37.7 KB
thermal_core.h -rw-r--r-- 5.7 KB
thermal_helpers.c -rw-r--r-- 6.6 KB
thermal_hwmon.c -rw-r--r-- 7.0 KB
thermal_hwmon.h -rw-r--r-- 1.0 KB
thermal_mmio.c -rw-r--r-- 2.7 KB
thermal_netlink.c -rw-r--r-- 15.9 KB
thermal_netlink.h -rw-r--r-- 2.3 KB
thermal_of.c -rw-r--r-- 27.6 KB
thermal_sysfs.c -rw-r--r-- 22.0 KB
uniphier_thermal.c -rw-r--r-- 9.3 KB

back to top