Skip to content
Commit 0e3135d3 authored by He Fengqing's avatar He Fengqing Committed by Alexei Starovoitov
Browse files

bpf: Fix possible race in inc_misses_counter



It seems inc_misses_counter() suffers from same issue fixed in
the commit d979617a ("bpf: Fixes possible race in update_prog_stats()
for 32bit arches"):
As it can run while interrupts are enabled, it could
be re-entered and the u64_stats syncp could be mangled.

Fixes: 9ed9e9ba ("bpf: Count the number of times recursion was prevented")
Signed-off-by: default avatarHe Fengqing <hefengqing@huawei.com>
Acked-by: default avatarJohn Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/r/20220122102936.1219518-1-hefengqing@huawei.com


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 63ee956f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment