summaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2018-03-08 13:16:47 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-11 16:25:14 +0100
commit8c4626bf15bad3f8b6cde2848408b8d3f96fccf0 (patch)
treebb3b3bc33c068358224d0fdfddb340501f3980f9 /drivers/fpga/fpga-mgr.c
parent18fa1b102cc2198d43e89e55dfdf3dd8d02e101c (diff)
bpf: add schedule points in percpu arrays management
[ upstream commit 32fff239de37ef226d5b66329dd133f64d63b22d ] 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions