diff options
author | Zi Shen Lim <zlim.lnx@gmail.com> | 2015-11-04 09:56:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-01-31 22:25:53 +0300 |
commit | e905b2536e6ab51356b581a03b92832d6a05db65 (patch) | |
tree | a355d996029d9869fa7257b0ffc5e194812ff450 /scripts/mod/modpost.h | |
parent | 18f936642fe1a3eaacb7c277c940d82a66f361e8 (diff) | |
download | linux-e905b2536e6ab51356b581a03b92832d6a05db65.tar.xz |
arm64: bpf: fix div-by-zero case
commit 251599e1d6906621f49218d7b474ddd159e58f3b upstream.
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")
Signed-off-by: Zi Shen Lim <zlim.lnx@gmail.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/mod/modpost.h')
0 files changed, 0 insertions, 0 deletions