Thread (6 messages) flat view 6 messages, 4 authors, 2021-07-30

Re: [Patch bpf-next] unix_bpf: fix a potential deadlock in unix_dgram_bpf_recvmsg()

From: Cong Wang <hidden>
Date: 2021-07-28 03:07:00

On Tue, Jul 27, 2021 at 9:12 AM John Fastabend [off-list ref] wrote:
Is there a reason to grab the mutex_lock(u->iolock) above the
skb_queue_emptyaand sk_psock_queue_empty checks?

Could it be move here just above the msg_bytes_ready label?
The check of the receive queue is more accurate with lock.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help