Eric Dumazet
32fff239de
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: a10423b87a ("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>
2018-02-22 21:27:06 +01:00
..
arraymap.c
bpf: add schedule points in percpu arrays management
2018-02-22 21:27:06 +01:00
bpf_lru_list.c
bpf_lru_list.h
bpf: Only set node->ref = 1 if it has not been set
2017-09-01 09:57:39 -07:00
cgroup.c
bpf/cgroup: fix a verification error for a CGROUP_DEVICE type prog
2017-12-19 01:43:29 +01:00
core.c
bpf: fix bpf_prog_array_copy_to_user warning from perf event prog query
2018-02-14 08:59:37 -08:00
cpumap.c
bpf: cpumap: use GFP_KERNEL instead of GFP_ATOMIC in __cpu_map_entry_alloc()
2018-02-14 15:34:27 +01:00
devmap.c
bpf: add helper for copying attrs to struct bpf_map
2018-01-14 23:36:29 +01:00
disasm.c
bpf: allow for correlation of maps and helpers in dump
2017-12-20 18:09:40 -08:00
disasm.h
bpf: annotate bpf_insn_print_t with __printf
2018-01-17 01:15:05 +01:00
hashtab.c
bpf: add helper for copying attrs to struct bpf_map
2018-01-14 23:36:29 +01:00
helpers.c
inode.c
Merge branch 'work.mqueue' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2018-01-30 18:32:21 -08:00
lpm_trie.c
bpf: fix memory leak in lpm_trie map_free callback function
2018-02-13 19:15:16 -08:00
Makefile
bpf: only build sockmap with CONFIG_INET
2018-01-04 19:01:14 +01:00
map_in_map.c
map_in_map.h
offload.c
bpf: offload: report device information about offloaded maps
2018-01-18 22:54:25 +01:00
percpu_freelist.c
bpf: fix lockdep splat
2017-11-15 19:46:32 +09:00
percpu_freelist.h
sockmap.c
bpf: fix sock_map_alloc() error path
2018-02-13 19:19:15 -08:00
stackmap.c
bpf: add helper for copying attrs to struct bpf_map
2018-01-14 23:36:29 +01:00
syscall.c
bpf: Use the IS_FD_ARRAY() macro in map_update_elem()
2018-01-25 18:05:24 -08:00
tnum.c
verifier.c
bpf: fix subprog verifier bypass by div/mod by 0 exception
2018-01-26 16:42:05 -08:00