kernel_optimize_test/net
Robert Shearman 25cc8f0763 mpls: fix possible use after free of device
The mpls device is used in an RCU read context without a lock being
held. As the memory is freed without waiting for the RCU grace period
to elapse, the freed memory could still be in use.

Address this by using kfree_rcu to free the memory for the mpls device
after the RCU grace period has elapsed.

Fixes: 03c57747a7 ("mpls: Per-device MPLS state")
Signed-off-by: Robert Shearman <rshearma@brocade.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-06-07 19:37:27 -07:00
..
6lowpan
9p
802
8021q
appletalk
atm
ax25
batman-adv
bluetooth
bridge bridge: use _bh spinlock variant for br_fdb_update to avoid lockup 2015-06-07 15:24:54 -07:00
caif unix/caif: sk_socket can disappear when state is unlocked 2015-05-26 23:19:29 -04:00
can
ceph Revert "libceph: clear r_req_lru_item in __unregister_linger_request()" 2015-05-20 21:02:46 +03:00
core Revert "net: core: 'ethtool' issue with querying phy settings" 2015-06-01 14:43:50 -07:00
dcb
dccp
decnet
dns_resolver
dsa net: dsa: Properly propagate errors from dsa_switch_setup_one 2015-05-31 21:50:34 -07:00
ethernet
hsr
ieee802154
ipv4 ipv4/udp: Verify multicast group is ours in upd_v4_early_demux() 2015-06-04 00:46:26 -07:00
ipv6 vti6: Add pmtu handling to vti6_xmit. 2015-06-01 16:03:43 -07:00
ipx
irda
iucv
key
l2tp
lapb
llc
mac80211
mac802154
mpls mpls: fix possible use after free of device 2015-06-07 19:37:27 -07:00
netfilter
netlabel
netlink
netrom
nfc
openvswitch openvswitch: disable LRO 2015-06-03 19:39:35 -07:00
packet
phonet
rds
rfkill
rose
rxrpc
sched net_sched: invoke ->attach() after setting dev->qdisc 2015-05-27 14:09:55 -04:00
sctp
sunrpc
switchdev
tipc
unix unix/caif: sk_socket can disappear when state is unlocked 2015-05-26 23:19:29 -04:00
vmw_vsock
wimax
wireless
x25
xfrm xfrm: Override skb->mark with tunnel->parm.i_key in xfrm_input 2015-05-28 06:23:31 +02:00
compat.c
Kconfig
Makefile
socket.c
sysctl_net.c