diff options
author | 2021-07-23 11:36:30 -0700 | |
---|---|---|
committer | 2021-07-30 12:40:55 -0700 | |
commit | 0b846445985895e75958ecd59061fd7bf77e0c3f (patch) | |
tree | 47178f8be372abbc3a48077329f45c5cfaf2fc5a /net/sched/cls_flow.c | |
parent | libbpf: Add btf__load_vmlinux_btf/btf__load_module_btf (diff) | |
download | wireguard-linux-0b846445985895e75958ecd59061fd7bf77e0c3f.tar.xz wireguard-linux-0b846445985895e75958ecd59061fd7bf77e0c3f.zip |
unix_bpf: Fix a potential deadlock in unix_dgram_bpf_recvmsg()
As Eric noticed, __unix_dgram_recvmsg() may acquire u->iolock
too, so we have to release it before calling this function.
Fixes: 9825d866ce0d ("af_unix: Implement unix_dgram_bpf_recvmsg()")
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Jakub Sitnicki <jakub@cloudflare.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Diffstat (limited to 'net/sched/cls_flow.c')
0 files changed, 0 insertions, 0 deletions