Thread (8 messages) flat view 8 messages, 5 authors, 2016-03-15
STALE3807d

Re: [PATCH 2/2] arm64: bpf: add extra pass to handle faulty codegen

From: David Miller <davem@davemloft.net>
Date: 2016-01-18 00:15:45
Also in: linux-arm-kernel

From: Zi Shen Lim <redacted>
Date: Wed, 13 Jan 2016 23:33:22 -0800
Code generation functions in arch/arm64/kernel/insn.c previously
BUG_ON invalid parameters. Following change of that behavior, now we
need to handle the error case where AARCH64_BREAK_FAULT is returned.

Instead of error-handling on every emit() in JIT, we add a new
validation pass at the end of JIT compilation. There's no point in
running JITed code at run-time only to trap due to AARCH64_BREAK_FAULT.
Instead, we drop this failed JIT compilation and allow the system to
gracefully fallback on the BPF interpreter.

Signed-off-by: Zi Shen Lim <redacted>
Suggested-by: Alexei Starovoitov <ast@kernel.org>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help