diff options
author | Zi Shen Lim <[email protected]> | 2015-11-03 22:56:44 -0800 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2015-11-06 16:58:36 +0000 |
commit | 251599e1d6906621f49218d7b474ddd159e58f3b (patch) | |
tree | 084a03813a419e5abcddf38524ba101255980f5f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 4d17da4ca7cca51ccacc07ece684bb6ea6bfaa7d (diff) |
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 <[email protected]>
Tested-by: Yang Shi <[email protected]>
CC: Xi Wang <[email protected]>
CC: Alexei Starovoitov <[email protected]>
CC: [email protected]
CC: [email protected]
Fixes: e54bcde3d69d ("arm64: eBPF JIT compiler")
Cc: <[email protected]> # 3.18+
Signed-off-by: Zi Shen Lim <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions