summaryrefslogtreecommitdiffstats
path: root/sound/synth
diff options
context:
space:
mode:
authorJakub Sitnicki <jakub@cloudflare.com>2023-01-21 13:41:43 +0100
committerAlexei Starovoitov <ast@kernel.org>2023-01-25 06:32:55 +0100
commit5b4a79ba65a1ab479903fff2e604865d229b70a9 (patch)
treea66f61b356c2708795f7a336ac4a5dfe5dc1239c /sound/synth
parentbpf: Add missing btf_put to register_btf_id_dtor_kfuncs (diff)
downloadlinux-5b4a79ba65a1ab479903fff2e604865d229b70a9.tar.xz
linux-5b4a79ba65a1ab479903fff2e604865d229b70a9.zip
bpf, sockmap: Don't let sock_map_{close,destroy,unhash} call itself
sock_map proto callbacks should never call themselves by design. Protect against bugs like [1] and break out of the recursive loop to avoid a stack overflow in favor of a resource leak. [1] https://lore.kernel.org/all/00000000000073b14905ef2e7401@google.com/ Suggested-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com> Acked-by: John Fastabend <john.fastabend@gmail.com> Link: https://lore.kernel.org/r/20230113-sockmap-fix-v2-1-1e0ee7ac2f90@cloudflare.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'sound/synth')
0 files changed, 0 insertions, 0 deletions