2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 22:53:55 +08:00
linux-next/arch/arm64
Zi Shen Lim 251599e1d6 arm64: bpf: fix div-by-zero case
In the case of division by zero in a BPF program:
	A = A / X;  (X == 0)
the expected behavior is to terminate with return value 0.

This is confirmed by the test case introduced in commit 86bf1721b2
("test_bpf: add tests checking that JIT/interpreter sets A and X to 0.").

Reported-by: Yang Shi <yang.shi@linaro.org>
Tested-by: Yang Shi <yang.shi@linaro.org>
CC: Xi Wang <xi.wang@gmail.com>
CC: Alexei Starovoitov <ast@plumgrid.com>
CC: linux-arm-kernel@lists.infradead.org
CC: linux-kernel@vger.kernel.org
Fixes: e54bcde3d6 ("arm64: eBPF JIT compiler")
Cc: <stable@vger.kernel.org> # 3.18+
Signed-off-by: Zi Shen Lim <zlim.lnx@gmail.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2015-11-06 16:58:36 +00:00
..
boot arm64: dts: juno: describe PMUs separately 2015-10-07 14:25:41 +01:00
configs arm64: Enable CRYPTO_CRC32_ARM64 in defconfig 2015-11-06 16:50:43 +00:00
crypto crypto: aead - Remove CRYPTO_ALG_AEAD_NEW flag 2015-08-17 16:53:53 +08:00
include arm64: cmpxchg_dbl: fix return value type 2015-11-05 17:29:40 +00:00
kernel arm64/efi: move arm64 specific stub C code to libstub 2015-10-30 16:02:52 +00:00
kvm arm64/kvm: Make use of the system wide safe values 2015-10-21 15:35:59 +01:00
lib arm64: add KASAN support 2015-10-12 17:46:36 +01:00
mm arm64: Fix build with CONFIG_ZONE_DMA=n 2015-10-29 16:58:00 +00:00
net arm64: bpf: fix div-by-zero case 2015-11-06 16:58:36 +00:00
xen arm: xen: implement multicall hypercall support. 2014-04-24 13:09:46 +01:00
Kconfig arm64: make Timer Interrupt Frequency selectable 2015-10-28 18:48:18 +00:00
Kconfig.debug arm64: Clean config usages for page size 2015-10-19 17:53:57 +01:00
Kconfig.platforms arm64: Enable Marvell Berlin SoC family in Kconfig 2015-08-06 10:15:01 +02:00
Makefile arm64: add KASAN support 2015-10-12 17:46:36 +01:00