Star64_linux/net
Kuniyuki Iwashima 97446b8760 af_unix: Fix a data-race in unix_dgram_peer_wake_me().
[ Upstream commit 662a80946c ]

unix_dgram_poll() calls unix_dgram_peer_wake_me() without `other`'s
lock held and check if its receive queue is full.  Here we need to
use unix_recvq_full_lockless() instead of unix_recvq_full(), otherwise
KCSAN will report a data-race.

Fixes: 7d267278a9 ("unix: avoid use-after-free in ep_remove_wait_queue")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://lore.kernel.org/r/20220605232325.11804-1-kuniyu@amazon.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-19 17:50:20 +08:00
..
6lowpan
9p
802
8021q
appletalk
atm
ax25
batman-adv
bluetooth
bpf
bpfilter
bridge
caif
can
ceph
core netfilter: nf_tables: bail out early if hardware offload is not supported 2023-04-19 17:50:20 +08:00
dcb
dccp
decnet
dns_resolver
dsa
ethernet
ethtool
hsr
ieee802154
ife
ipv4 tcp: tcp_rtx_synack() can be called from process context 2023-04-19 17:50:16 +08:00
ipv6 tcp: add accessors to read/set tp->snd_cwnd 2023-04-19 17:50:15 +08:00
iucv
kcm
key
l2tp
l3mdev
lapb
llc
mac80211 mac80211: upgrade passive scan to active scan on DFS channels after beacon rx 2023-04-19 17:50:04 +08:00
mac802154
mctp
mpls
mptcp
ncsi
netfilter netfilter: nf_tables: bail out early if hardware offload is not supported 2023-04-19 17:50:20 +08:00
netlabel
netlink
netrom
nfc
nsh
openvswitch
packet
phonet
psample
qrtr
rds
rfkill
rose
rxrpc rxrpc: Fix decision on when to generate an IDLE ACK 2023-04-19 17:49:46 +08:00
sched
sctp
smc net/smc: fixes for converting from "struct smc_cdc_tx_pend **" to "struct smc_wr_tx_pend_priv *" 2023-04-19 17:50:15 +08:00
strparser
sunrpc SUNRPC: Trap RDMA segment overflows 2023-04-19 17:50:19 +08:00
switchdev
tipc tipc: check attribute length for bearer name 2023-04-19 17:50:17 +08:00
tls
unix af_unix: Fix a data-race in unix_dgram_peer_wake_me(). 2023-04-19 17:50:20 +08:00
vmw_vsock
wireless cfg80211: declare MODULE_FIRMWARE for regulatory.db 2023-04-19 17:50:04 +08:00
x25
xdp
xfrm
compat.c
devres.c
Kconfig
Makefile
socket.c
sysctl_net.c