]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/bpf/jit: Fix 32-bit JIT for seccomp_data access
authorMark Lord <mlord@pobox.com>
Tue, 20 Feb 2018 19:49:20 +0000 (14:49 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Feb 2018 03:36:08 +0000 (14:36 +1100)
commit99065af02f85974768baa35bd033856ca624367b
tree674dc2b058c54350b08a1bc3d7f972ac8ebe6c09
parent5778e061b042a070f6b390b0f9d4bcd7c043bff9
powerpc/bpf/jit: Fix 32-bit JIT for seccomp_data access

I am using SECCOMP to filter syscalls on a ppc32 platform, and noticed
that the JIT compiler was failing on the BPF even though the
interpreter was working fine.

The issue was that the compiler was missing one of the instructions
used by SECCOMP, so here is a patch to enable JIT for that
instruction.

Fixes: 3b5649daeb97 ("ppc: Kconfig: Enable BPF JIT on ppc32")
Signed-off-by: Mark Lord <mlord@pobox.com>
Acked-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/net/bpf_jit_comp.c