linux-yocto/net/phonet
Rémi Denis-Courmont 7d3914a477 phonet/pep: fix racy skb_queue_empty() use
[ Upstream commit 7d2a894d7f ]

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: 9641458d3e ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
[Harshit: backport to 5.15.y, clean cherrypick from 6.1.y commit]
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-05-02 07:44:18 +02:00
..
af_phonet.c
datagram.c
Kconfig
Makefile
pep-gprs.c
pep.c phonet/pep: fix racy skb_queue_empty() use 2025-05-02 07:44:18 +02:00
pn_dev.c
pn_netlink.c phonet: fix rtm_phonet_notify() skb allocation 2024-05-17 11:50:58 +02:00
socket.c
sysctl.c