summaryrefslogtreecommitdiff
path: root/kernel/sysctl_binary.c
diff options
context:
space:
mode:
authorZi Shen Lim <zlim.lnx@gmail.com>2016-01-13 23:33:22 -0800
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:51:29 +0300
commit67a0053b6d359f557f4b43eef79a1a315d4faaa8 (patch)
tree894fe4d2f0dc0c913e2cda4441ff775c31e2fe90 /kernel/sysctl_binary.c
parenta3ad689ea403aa1bf6787b285f0638ff30fac215 (diff)
arm64: bpf: add extra pass to handle faulty codegen
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 <zlim.lnx@gmail.com> Suggested-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions