summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/dynptr.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-09-06 15:44:49 +0000
committerDaniel Borkmann <daniel@iogearbox.net>2024-09-11 22:16:04 +0200
commitb1339be951ad31947ae19bc25cb08769bf255100 (patch)
treea51962ccee48aaca6b04e4a6902124b5a97d54a4 /tools/testing/selftests/bpf/prog_tests/dynptr.c
parentfdfd9d82a43a7a50b9d0989a0440d12a3d68ea15 (diff)
sock_map: Add a cond_resched() in sock_hash_free()
Several syzbot soft lockup reports all have in common sock_hash_free() If a map with a large number of buckets is destroyed, we need to yield the cpu when needed. Fixes: 75e68e5bf2c7 ("bpf, sockhash: Synchronize delete from bucket list on map free") Reported-by: syzbot <syzkaller@googlegroups.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Martin KaFai Lau <martin.lau@kernel.org> Acked-by: John Fastabend <john.fastabend@gmail.com> Link: https://lore.kernel.org/bpf/20240906154449.3742932-1-edumazet@google.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/dynptr.c')
0 files changed, 0 insertions, 0 deletions