summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorEric Dumazet2018-02-22 17:33:24 +0100
committerDaniel Borkmann2018-02-22 21:27:06 +0100
commit32fff239de37ef226d5b66329dd133f64d63b22d (patch)
tree35ee0de8ea4ebaea6511622d12bbe177f5ed45e1 /tools
parentselftests/bpf/test_maps: exit child process without error in ENOMEM case (diff)
downloadkernel-qcow2-linux-32fff239de37ef226d5b66329dd133f64d63b22d.tar.gz
kernel-qcow2-linux-32fff239de37ef226d5b66329dd133f64d63b22d.tar.xz
kernel-qcow2-linux-32fff239de37ef226d5b66329dd133f64d63b22d.zip
bpf: add schedule points in percpu arrays management
syszbot managed to trigger RCU detected stalls in bpf_array_free_percpu() It takes time to allocate a huge percpu map, but even more time to free it. Since we run in process context, use cond_resched() to yield cpu if needed. Fixes: a10423b87a7e ("bpf: introduce BPF_MAP_TYPE_PERCPU_ARRAY map") Signed-off-by: Eric Dumazet <edumazet@google.com> Reported-by: syzbot <syzkaller@googlegroups.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions