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
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 6.4 KB |
Makefile | -rw-r--r-- | 2.1 KB |
brownstone.c | -rw-r--r-- | 3.6 KB |
corgi.c | -rw-r--r-- | 8.4 KB |
e740_wm9705.c | -rw-r--r-- | 4.1 KB |
e750_wm9705.c | -rw-r--r-- | 3.7 KB |
e800_wm9712.c | -rw-r--r-- | 3.8 KB |
em-x270.c | -rw-r--r-- | 2.1 KB |
hx4700.c | -rw-r--r-- | 5.3 KB |
imote2.c | -rw-r--r-- | 2.2 KB |
magician.c | -rw-r--r-- | 11.2 KB |
mioa701_wm9713.c | -rw-r--r-- | 6.1 KB |
mmp-pcm.c | -rw-r--r-- | 6.5 KB |
mmp-sspa.c | -rw-r--r-- | 13.4 KB |
mmp-sspa.h | -rw-r--r-- | 2.4 KB |
palm27x.c | -rw-r--r-- | 3.9 KB |
poodle.c | -rw-r--r-- | 7.5 KB |
pxa-ssp.c | -rw-r--r-- | 21.0 KB |
pxa-ssp.h | -rw-r--r-- | 803 bytes |
pxa2xx-ac97.c | -rw-r--r-- | 7.5 KB |
pxa2xx-i2s.c | -rw-r--r-- | 9.8 KB |
pxa2xx-i2s.h | -rw-r--r-- | 186 bytes |
pxa2xx-pcm.c | -rw-r--r-- | 1.2 KB |
spitz.c | -rw-r--r-- | 9.0 KB |
tosa.c | -rw-r--r-- | 6.5 KB |
ttc-dkb.c | -rw-r--r-- | 3.9 KB |
z2.c | -rw-r--r-- | 4.8 KB |
zylonite.c | -rw-r--r-- | 6.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...