Skip to content
Commit 7d2a894d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Paolo Abeni
Browse files

phonet/pep: fix racy skb_queue_empty() use



The receive queues are protected by their respective spin-lock, not
the socket lock. This could lead to skb_peek() unexpectedly
returning NULL or a pointer to an already dequeued socket buffer.

Fixes: 9641458d ("Phonet: Pipe End Point for Phonet Pipes protocol")
Signed-off-by: default avatarRémi Denis-Courmont <courmisch@gmail.com>
Link: https://lore.kernel.org/r/20240218081214.4806-2-remi@remlab.net


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 3b2d9bc4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment