diff options
| author | Eric Dumazet <[email protected]> | 2024-09-06 15:44:49 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2024-09-11 20:16:04 +0000 |
| commit | b1339be951ad31947ae19bc25cb08769bf255100 (patch) | |
| tree | a51962ccee48aaca6b04e4a6902124b5a97d54a4 /drivers/net/netkit.c | |
| parent | Merge branch 'bpf: Allow skb dynptr for tp_btf' (diff) | |
| download | kernel-b1339be951ad31947ae19bc25cb08769bf255100.tar.gz kernel-b1339be951ad31947ae19bc25cb08769bf255100.zip | |
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 <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/net/netkit.c')
0 files changed, 0 insertions, 0 deletions
