diff options
author | Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> | 2021-07-01 17:08:59 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-07-05 14:23:25 +0200 |
commit | 307e5042c7bdae15308ef2e9b848833b84122eb0 (patch) | |
tree | 3bc97c637b338cfa90238430c601c755fb1cf9db /arch/powerpc/sysdev/xive/common.c | |
parent | powerpc/bpf: Fix detecting BPF atomic instructions (diff) | |
download | linux-307e5042c7bdae15308ef2e9b848833b84122eb0.tar.xz linux-307e5042c7bdae15308ef2e9b848833b84122eb0.zip |
powerpc/bpf: Reject atomic ops in ppc32 JIT
Commit 91c960b0056672 ("bpf: Rename BPF_XADD and prepare to encode other
atomics in .imm") converted BPF_XADD to BPF_ATOMIC and updated all JIT
implementations to reject JIT'ing instructions with an immediate value
different from BPF_ADD. However, ppc32 BPF JIT was implemented around
the same time and didn't include the same change. Update the ppc32 JIT
accordingly.
Fixes: 51c66ad849a7 ("powerpc/bpf: Implement extended BPF on PPC32")
Cc: stable@vger.kernel.org # v5.13+
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/426699046d89fe50f66ecf74bd31c01eda976ba5.1625145429.git.naveen.n.rao@linux.vnet.ibm.com
Diffstat (limited to 'arch/powerpc/sysdev/xive/common.c')
0 files changed, 0 insertions, 0 deletions