linux_dsm_epyc7002/arch/mips/net
Markos Chandras 95782bf434 MIPS: BPF: Prevent kernel fall over for >=32bit shifts
Remove BUG_ON() if the shift immediate is >=32 to avoid kernel crashes
due to malicious user input. If the shift immediate is >= 32,
we simply load the destination register with 0 since only
32-bit instructions are used by JIT so this will do the
correct thing even on MIPS64.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Daniel Borkmann <dborkman@redhat.com>
Cc: Alexei Starovoitov <ast@plumgrid.com>
Cc: netdev@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7179/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2014-06-26 10:48:22 +01:00
..
bpf_jit.c MIPS: BPF: Prevent kernel fall over for >=32bit shifts 2014-06-26 10:48:22 +01:00
bpf_jit.h MIPS: net: Add BPF JIT 2014-05-30 16:10:20 +02:00
Makefile MIPS: net: Add BPF JIT 2014-05-30 16:10:20 +02:00