]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'support-alu32_arsh'
authorAlexei Starovoitov <ast@kernel.org>
Fri, 7 Dec 2018 21:30:49 +0000 (13:30 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 7 Dec 2018 21:30:49 +0000 (13:30 -0800)
commitb362b763b543f69ccbdcf2d291aaa33e7fd41fc7
tree376ae3306dbeee7a83d76f705159e7de1d61b464
parent7c99e87c0ce2ae9463d6cb458574d12d86ec642d
parent1fbb55618c02e967f18eb6cb2d0fb76b3149605f
Merge branch 'support-alu32_arsh'

Jiong Wang says:

====================
BPF_ALU | BPF_ARSH | BPF_* were rejected by commit: 0e644a5a06a3
("bpf: arsh is not supported in 32 bit alu thus reject it"). As explained
in the commit message, this is due to there is no complete support for them
on interpreter and various JIT compilation back-ends.

This patch set is a follow-up which completes the missing bits. This also
pave the way for running bpf program compiled with ALU32 instruction
enabled by specifing -mattr=+alu32 to LLVM for which case there is likely
to have more BPF_ALU | BPF_ARSH insns that will trigger the rejection code.

test_verifier.c is updated accordingly.

I have tested this patch set on x86-64 and NFP, I need help of review and
test on the arch changes (mips/ppc/s390).

Note, there might be merge confict on mips change which is better to be
applied on top of:

  commit: 20b880a05f06 ("mips: bpf: fix encoding bug for mm_srlv32_op"),

which is on mips-fixes branch at the moment.

Thanks.

v1->v2:
 - Fix ppc implementation bug. Should zero high bits explicitly.
====================

Signed-off-by: Alexei Starovoitov <ast@kernel.org>