linux/arch/mips/net
Johan Almbladh 72570224bb mips, bpf: Add JIT workarounds for CPU errata
This patch adds workarounds for the following CPU errata to the MIPS
eBPF JIT, if enabled in the kernel configuration.

  - R10000 ll/sc weak ordering
  - Loongson-3 ll/sc weak ordering
  - Loongson-2F jump hang

The Loongson-2F nop errata is implemented in uasm, which the JIT uses,
so no additional mitigations are needed for that.

Signed-off-by: Johan Almbladh <johan.almbladh@anyfinetworks.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Link: https://lore.kernel.org/bpf/20211005165408.2305108-6-johan.almbladh@anyfinetworks.com
2021-10-06 12:28:25 -07:00
..
bpf_jit_asm.S MIPS: BPF: Restore MIPS32 cBPF JIT 2020-01-09 15:02:30 -08:00
bpf_jit_comp.c mips, bpf: Add JIT workarounds for CPU errata 2021-10-06 12:28:25 -07:00
bpf_jit_comp.h mips, bpf: Add JIT workarounds for CPU errata 2021-10-06 12:28:25 -07:00
bpf_jit_comp32.c mips, bpf: Add eBPF JIT for 32-bit MIPS 2021-10-06 12:28:14 -07:00
bpf_jit_comp64.c mips, bpf: Add JIT workarounds for CPU errata 2021-10-06 12:28:25 -07:00
bpf_jit.c bpf, mips: Validate conditional branch offsets 2021-09-15 21:38:16 +02:00
bpf_jit.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441 2019-06-05 17:37:17 +02:00
ebpf_jit.c bpf: Introduce BPF nospec instruction for mitigating Spectre v4 2021-07-29 00:20:56 +02:00
Makefile mips, bpf: Add eBPF JIT for 32-bit MIPS 2021-10-06 12:28:14 -07:00