diff options
author | Rémi Denis-Courmont <courmisch@gmail.com> | 2024-02-18 11:12:14 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-02-22 11:05:50 +0300 |
commit | 7d2a894d7f487dcb894df023e9d3014cf5b93fe5 (patch) | |
tree | 18664540fc28c1b481a413ad17e08d21d5d0727c /net/ipv6/exthdrs.c | |
parent | 3b2d9bc4d4acdf15a876eae2c0d83149250e85ba (diff) | |
download | linux-7d2a894d7f487dcb894df023e9d3014cf5b93fe5.tar.xz |
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: 9641458d3ec4 ("Phonet: Pipe End Point for Phonet Pipes protocol")
Signed-off-by: Rémi Denis-Courmont <courmisch@gmail.com>
Link: https://lore.kernel.org/r/20240218081214.4806-2-remi@remlab.net
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/ipv6/exthdrs.c')
0 files changed, 0 insertions, 0 deletions