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 |
---|---|---|
hvc | ||
ipwireless | ||
serdev | ||
serial | ||
vt | ||
Kconfig | -rw-r--r-- | 13.1 KB |
Makefile | -rw-r--r-- | 990 bytes |
amiserial.c | -rw-r--r-- | 40.3 KB |
ehv_bytechan.c | -rw-r--r-- | 21.8 KB |
goldfish.c | -rw-r--r-- | 12.0 KB |
mips_ejtag_fdc.c | -rw-r--r-- | 35.3 KB |
moxa.c | -rw-r--r-- | 52.2 KB |
moxa.h | -rw-r--r-- | 8.5 KB |
mxser.c | -rw-r--r-- | 51.6 KB |
n_gsm.c | -rw-r--r-- | 79.2 KB |
n_hdlc.c | -rw-r--r-- | 22.2 KB |
n_null.c | -rw-r--r-- | 1.3 KB |
n_tty.c | -rw-r--r-- | 60.9 KB |
nozomi.c | -rw-r--r-- | 45.9 KB |
pty.c | -rw-r--r-- | 24.2 KB |
synclink_gt.c | -rw-r--r-- | 128.0 KB |
sysrq.c | -rw-r--r-- | 27.5 KB |
tty.h | -rw-r--r-- | 4.0 KB |
tty_audit.c | -rw-r--r-- | 5.6 KB |
tty_baudrate.c | -rw-r--r-- | 6.6 KB |
tty_buffer.c | -rw-r--r-- | 16.3 KB |
tty_io.c | -rw-r--r-- | 87.9 KB |
tty_ioctl.c | -rw-r--r-- | 22.8 KB |
tty_jobctrl.c | -rw-r--r-- | 14.5 KB |
tty_ldisc.c | -rw-r--r-- | 20.7 KB |
tty_ldsem.c | -rw-r--r-- | 10.5 KB |
tty_mutex.c | -rw-r--r-- | 1.2 KB |
tty_port.c | -rw-r--r-- | 18.2 KB |
ttynull.c | -rw-r--r-- | 2.3 KB |
vcc.c | -rw-r--r-- | 22.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...