Breno Leitao
383833f04c
netpoll: Use rcu_access_pointer() in __netpoll_setup
...
[ Upstream commit c69c5e10adb903ae2438d4f9c16eccf43d1fcbc1 ]
The ndev->npinfo pointer in __netpoll_setup() is RCU-protected but is being
accessed directly for a NULL check. While no RCU read lock is held in this
context, we should still use proper RCU primitives for consistency and
correctness.
Replace the direct NULL check with rcu_access_pointer(), which is the
appropriate primitive when only checking for NULL without dereferencing
the pointer. This function provides the necessary ordering guarantees
without requiring RCU read-side protection.
Reviewed-by: Michal Kubiak <[email protected] >
Signed-off-by: Breno Leitao <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
2024-12-14 19:44:53 +01:00
..
6lowpan
9p
9p/xen: fix release of IRQ
2024-12-14 19:44:41 +01:00
802
8021q
appletalk
atm
ax25
batman-adv
bluetooth
Bluetooth: L2CAP: do not leave dangling sk pointer on error in l2cap_sock_create()
2024-12-14 19:44:51 +01:00
bpf
bpfilter
bridge
net: bridge: xmit: make sure we have at least eth header len bytes
2024-11-17 14:58:51 +01:00
caif
can
net: af_can: do not leave a dangling sk pointer in can_create()
2024-12-14 19:44:51 +01:00
ceph
core
netpoll: Use rcu_access_pointer() in __netpoll_setup
2024-12-14 19:44:53 +01:00
dcb
dccp
dccp: Fix memory leak in dccp_feat_change_recv
2024-12-14 19:44:45 +01:00
decnet
dns_resolver
dsa
ethernet
hsr
ieee802154
net: ieee802154: do not leave a dangling sk pointer in ieee802154_create()
2024-12-14 19:44:51 +01:00
ife
ipv4
net: inet: do not leave a dangling sk pointer in inet_create()
2024-12-14 19:44:51 +01:00
ipv6
net: inet6: do not leave a dangling sk pointer in inet6_create()
2024-12-14 19:44:51 +01:00
iucv
kcm
key
l2tp
genetlink: hold RCU in genlmsg_mcast()
2024-11-08 16:20:50 +01:00
l3mdev
lapb
llc
mac80211
mac80211: fix user-power when emulating chanctx
2024-12-14 19:44:20 +01:00
mac802154
mpls
ncsi
netfilter
netfilter: nft_set_hash: skip duplicated elements pending gc run
2024-12-14 19:44:46 +01:00
netlabel
netlink
netlink: terminate outstanding dump on socket close
2024-12-14 19:44:18 +01:00
netrom
nfc
nsh
openvswitch
packet
af_packet: avoid erroring out after sock_init_data() in packet_create()
2024-12-14 19:44:51 +01:00
phonet
psample
qrtr
rds
rfkill
net: rfkill: gpio: Add check for clk_enable()
2024-12-14 19:44:27 +01:00
rose
rxrpc
sched
net/sched: cbs: Fix integer overflow in cbs_set_port_rate()
2024-12-14 19:44:51 +01:00
sctp
sctp: properly validate chunk size in sctp_sf_ootb()
2024-11-17 14:58:50 +01:00
smc
strparser
sunrpc
sunrpc: clear XPRT_SOCK_UPD_TIMEOUT when reset transport
2024-12-14 19:44:42 +01:00
switchdev
tipc
tipc: Fix use-after-free of kernel socket in cleanup_bearer().
2024-12-14 19:44:46 +01:00
tls
unix
vmw_vsock
vsock/virtio: Initialization of the dangling pointer occurring in vsk->trans
2024-11-17 14:58:52 +01:00
wimax
wireless
genetlink: hold RCU in genlmsg_mcast()
2024-11-08 16:20:50 +01:00
x25
xdp
xfrm
xfrm: validate new SA's prefixlen using SA family when sel.family is unset
2024-11-08 16:20:52 +01:00
compat.c
Kconfig
Makefile
socket.c
sysctl_net.c