Thread (3 messages) 3 messages, 3 authors, 2021-10-28

Re: [PATCH bpf] riscv, bpf: Fix potential NULL dereference

From: Jakub Kicinski <kuba@kernel.org>
Date: 2021-10-28 15:16:29
Also in: bpf, linux-riscv

On Thu, 28 Oct 2021 14:51:15 +0200 Björn Töpel wrote:
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>
Looks pretty trivial so applied to net with Daniel's off-list blessing.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help