linux_dsm_epyc7002/net
Dean Jenkins e163376220 Bluetooth: Handle bt_accept_enqueue() socket atomically
There is a small risk that bt_accept_unlink() runs concurrently with
bt_accept_enqueue() on the same socket. This scenario could potentially
lead to a NULL pointer dereference of the socket's parent member because
the socket can be on the list but the socket's parent member is not yet
updated by bt_accept_enqueue().

Therefore, add socket locking inside bt_accept_enqueue() so that the
socket is added to the list AND the parent's socket address is set in the
socket's parent member. The socket locking ensures that the socket is on
the list with a valid non-NULL parent member.

Signed-off-by: Dean Jenkins <Dean_Jenkins@mentor.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2017-04-12 22:02:37 +02:00
..
6lowpan 6lowpan: Use netdev addr_len to determine lladdr len 2017-04-12 22:02:36 +02:00
9p
802
8021q
appletalk
atm
ax25
batman-adv This feature/cleanup patchset includes the following patches: 2017-04-06 14:37:50 -07:00
bluetooth Bluetooth: Handle bt_accept_enqueue() socket atomically 2017-04-12 22:02:37 +02:00
bpf
bridge
caif
can
ceph
core gso: Support frag_list splitting with head_frag 2017-04-12 13:53:35 -04:00
dcb
dccp
decnet
dns_resolver
dsa net: dsa: Factor bottom tag receive functions 2017-04-08 13:49:36 -07:00
ethernet
hsr
ieee802154
ife
ipv4 net: ipv4: fix multipath RTM_GETROUTE behavior when iif is given 2017-04-07 07:56:14 -07:00
ipv6 6lowpan: Fix IID format for Bluetooth 2017-04-12 22:02:36 +02:00
ipx
irda
iucv
kcm
key
l2tp l2tp: define parameters of l2tp_tunnel_find*() as "const" 2017-04-12 10:44:02 -04:00
l3mdev
lapb
llc
mac80211
mac802154
mpls
ncsi
netfilter
netlabel
netlink
netrom
nfc
openvswitch
packet
phonet
psample
qrtr
rds
rfkill
rose
rxrpc
sched
sctp
smc net/smc: do not use IB_SEND_INLINE together with mapped data 2017-04-11 23:01:14 -04:00
strparser
sunrpc
switchdev
tipc
unix
vmw_vsock
wimax
wireless
x25
xfrm Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next 2017-04-11 10:10:30 -04:00
compat.c
Kconfig
Makefile
socket.c New kernel function to get IP overhead on a socket. 2017-04-06 13:43:31 -07:00
sysctl_net.c