aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/xen
diff options
context:
space:
mode:
authorZi Shen Lim <zlim.lnx@gmail.com>2015-11-03 22:56:44 -0800
committerCatalin Marinas <catalin.marinas@arm.com>2015-11-06 16:58:36 +0000
commit251599e1d6906621f49218d7b474ddd159e58f3b (patch)
tree084a03813a419e5abcddf38524ba101255980f5f /arch/arm64/xen
parentarm64: Enable CRYPTO_CRC32_ARM64 in defconfig (diff)
downloadlinux-dev-251599e1d6906621f49218d7b474ddd159e58f3b.tar.xz
linux-dev-251599e1d6906621f49218d7b474ddd159e58f3b.zip
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 86bf1721b226 ("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: e54bcde3d69d ("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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions