linux/net
Jakub Kicinski d615070b0e tls: improve lockless access safety of tls_err_abort()
[ Upstream commit 8a0d57df89 ]

Most protos' poll() methods insert a memory barrier between
writes to sk_err and sk_error_report(). This dates back to
commit a4d258036e ("tcp: Fix race in tcp_poll").

I guess we should do the same thing in TLS, tcp_poll() does
not hold the socket lock.

Fixes: 3c4d755915 ("tls: kernel TLS support")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-09 10:34:01 +02:00
..
6lowpan
9p
802
8021q vlan: fix a potential uninit-value in vlan_dev_hard_start_xmit() 2023-05-24 17:32:47 +01:00
appletalk
atm
ax25
batman-adv
bluetooth bluetooth: Add cmd validity checks at the start of hci_sock_ioctl() 2023-06-05 09:26:21 +02:00
bpf
bpfilter
bridge bridge: always declare tunnel functions 2023-05-24 17:32:48 +01:00
caif
can can: isotp: recvmsg(): allow MSG_CMSG_COMPAT flag 2023-05-24 17:32:49 +01:00
ceph
core page_pool: fix inconsistency for page_pool_ring_[un]lock() 2023-06-05 09:26:20 +02:00
dcb
dccp
dns_resolver
dsa
ethernet
ethtool ethtool: Fix uninitialized number of lanes 2023-05-17 11:53:37 +02:00
hsr
ieee802154
ife
ipv4 bpf, sockmap: Incorrectly handling copied_seq 2023-06-05 09:26:19 +02:00
ipv6 ipv{4,6}/raw: fix output xfrm lookup wrt protocol 2023-06-05 09:26:16 +02:00
iucv
kcm
key af_key: Reject optional tunnel/BEET mode templates in outbound policies 2023-05-24 17:32:43 +01:00
l2tp
l3mdev
lapb
llc net: deal with most data-races in sk_wait_event() 2023-05-24 17:32:32 +01:00
mac80211 wifi: mac80211: Abort running color change when stopping the AP 2023-05-24 17:32:46 +01:00
mac802154
mctp
mpls
mptcp
ncsi net/ncsi: clear Tx enable mode when handling a Config required AEN 2023-05-17 11:53:32 +02:00
netfilter netfilter: ctnetlink: Support offloaded conntrack entry deletion 2023-06-05 09:26:22 +02:00
netlabel
netlink netlink: annotate accesses to nlk->cb_running 2023-05-24 17:32:32 +01:00
netrom netrom: fix info-leak in nr_write_internal() 2023-06-09 10:34:01 +02:00
nfc
nsh net: nsh: Use correct mac_offset to unwind gso skb in nsh_gso_segment() 2023-05-24 17:32:45 +01:00
openvswitch
packet af_packet: Fix data-races of pkt_sk(sk)->num. 2023-06-09 10:34:01 +02:00
phonet
psample
qrtr
rds
rfkill
rose
rxrpc rxrpc: Fix hard call timeout units 2023-05-17 11:53:35 +02:00
sched net/sched: act_mirred: Add carrier check 2023-05-17 11:53:34 +02:00
sctp inet: Add IP_LOCAL_PORT_RANGE socket option 2023-06-05 09:26:16 +02:00
smc net/smc: Reset connection when trying to use SMCRv2 fails. 2023-05-30 14:03:33 +01:00
strparser
sunrpc SUNRPC: Don't change task->tk_status after the call to rpc_exit_task 2023-05-30 14:03:17 +01:00
switchdev
tipc tipc: check the bearer min mtu properly when setting it by netlink 2023-05-24 17:32:46 +01:00
tls tls: improve lockless access safety of tls_err_abort() 2023-06-09 10:34:01 +02:00
unix bpf, sockmap: Pass skb ownership through read_skb 2023-06-05 09:26:18 +02:00
vmw_vsock vsock: avoid to close connected socket after the timeout 2023-05-24 17:32:44 +01:00
wireless wifi: cfg80211: Drop entries with invalid BSSIDs in RNR 2023-05-24 17:32:46 +01:00
x25
xdp xsk: Fix unaligned descriptor validation 2023-05-11 23:03:21 +09:00
xfrm xfrm: Reject optional tunnel/BEET mode templates in outbound policies 2023-05-24 17:32:43 +01:00
compat.c
devres.c
Kconfig
Kconfig.debug
Makefile
socket.c net: annotate sk->sk_err write from do_recvmmsg() 2023-05-24 17:32:32 +01:00
sysctl_net.c