diff options
author | Alexei Starovoitov <[email protected]> | 2015-04-27 14:40:37 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2015-04-27 23:11:49 -0400 |
commit | 876a7ae65b86d8cec8efe7d15d050ac61116874e (patch) | |
tree | 6458c36e3f2c0cd2f2ca7c1dfcee6fc5b9c7dd19 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 8e046d68ba719a5bb95912c154c6314472edccfa (diff) |
bpf: fix 64-bit divide
ALU64_DIV instruction should be dividing 64-bit by 64-bit,
whereas do_div() does 64-bit by 32-bit divide.
x64 and arm64 JITs correctly implement 64 by 64 unsigned divide.
llvm BPF backend emits code assuming that ALU64_DIV does 64 by 64.
Fixes: 89aa075832b0 ("net: sock: allow eBPF programs to be attached to sockets")
Reported-by: Michael Holzheu <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions