diff options
author | Daniel Borkmann <[email protected]> | 2019-04-26 21:48:21 +0200 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2019-04-26 18:53:15 -0700 |
commit | 8968c67a82ab7501bc3b9439c3624a49b42fe54c (patch) | |
tree | b377d4184b0c45b275e6548e163961ece6443539 /kernel | |
parent | 0c0cad2c2824ac38106ad0649263eca30954beb6 (diff) |
bpf, arm64: remove prefetch insn in xadd mapping
Prefetch-with-intent-to-write is currently part of the XADD mapping in
the AArch64 JIT and follows the kernel's implementation of atomic_add.
This may interfere with other threads executing the LDXR/STXR loop,
leading to potential starvation and fairness issues. Drop the optional
prefetch instruction.
Fixes: 85f68fe89832 ("bpf, arm64: implement jiting of BPF_XADD")
Reported-by: Will Deacon <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Jean-Philippe Brucker <[email protected]>
Acked-by: Will Deacon <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions