android_kernel_samsung_msm8976/net
Herbert Xu ed0ba3a012 netlink: Fix dump skb leak/double free
When we free cb->skb after a dump, we do it after releasing the
lock.  This means that a new dump could have started in the time
being and we'll end up freeing their skb instead of ours.

This patch saves the skb and module before we unlock so we free
the right memory.

Change-Id: I81f1eb1ef4951917b5db084bd7a4289222eab597
Fixes: 16b304f3404f ("netlink: Eliminate kmalloc in netlink dump operation.")
Reported-by: Baozeng Ding <sploving1@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Corinna Vinschen <xda@vinschen.de>
2017-04-22 23:02:56 +02:00
..
9p 9p: forgetting to cancel request on interrupted zero-copy RPC 2015-08-03 09:29:47 -07:00
802
8021q
appletalk
atm
ax25 Import latest Samsung release 2017-04-18 03:43:52 +02:00
batman-adv batman-adv: Fix broadcast/ogm queue limit on a removed interface 2016-06-07 10:42:53 +02:00
bluetooth This is the 3.10.94 stable release 2017-04-18 17:12:56 +02:00
bridge This is the 3.10.102 stable release 2017-04-18 17:22:08 +02:00
caif net/unix: sk_socket can disappear when state is unlocked 2015-09-16 18:20:18 +05:30
can
ceph libceph: introduce ceph_crypt() for in-place en/decryption 2017-04-22 23:02:50 +02:00
core This is the 3.10.102 stable release 2017-04-18 17:22:08 +02:00
dcb
dccp Import latest Samsung release 2017-04-18 03:43:52 +02:00
decnet Import latest Samsung release 2017-04-18 03:43:52 +02:00
dns_resolver
dsa
ethernet
ieee802154
ipc_router net: ipc_router: Remove duplicate client port check 2017-04-22 23:02:47 +02:00
ipv4 net: ping: check minimum size on ICMP header length 2017-04-22 23:02:54 +02:00
ipv6 ipv6: addrconf: validate new MTU before applying it 2017-04-22 23:02:52 +02:00
ipx
irda irda: Fix lockdep annotations in hashbin_delete(). 2017-04-22 23:02:49 +02:00
iucv
key
l2tp This is the 3.10.102 stable release 2017-04-18 17:22:08 +02:00
lapb
llc net: fix infoleak in llc 2016-06-07 10:42:54 +02:00
mac80211 This is the 3.10.101 stable release 2017-04-18 17:17:55 +02:00
mac802154
netfilter This is the 3.10.102 stable release 2017-04-18 17:22:08 +02:00
netlabel
netlink netlink: Fix dump skb leak/double free 2017-04-22 23:02:56 +02:00
netrom
nfc
openvswitch
packet packet: fix races in fanout_add() 2017-04-22 23:02:49 +02:00
phonet This is the 3.10.96 stable release 2017-04-18 17:16:02 +02:00
rds This is the 3.10.99 stable release 2017-04-18 17:17:46 +02:00
rfkill This is the 3.10.99 stable release 2017-04-18 17:17:46 +02:00
rmnet_data Merge tag 'LA.BR.1.3.6-03510-8976.0' into HEAD 2017-04-18 12:11:50 +02:00
rose
rxrpc Import latest Samsung release 2017-04-18 03:43:52 +02:00
sched This is the 3.10.84 stable release 2015-09-30 13:25:40 +05:30
sctp This is the 3.10.102 stable release 2017-04-18 17:22:08 +02:00
sunrpc This is the 3.10.99 stable release 2017-04-18 17:17:46 +02:00
tipc net/tipc: initialize security state for new connection socket 2015-10-01 12:07:35 +02:00
unix This is the 3.10.96 stable release 2017-04-18 17:16:02 +02:00
vmw_vsock VSOCK: do not disconnect socket when peer has shutdown SEND only 2016-06-07 10:42:54 +02:00
wimax
wireless This is the 3.10.102 stable release 2017-04-18 17:22:08 +02:00
x25 net: fix a kernel infoleak in x25 module 2016-06-07 10:42:54 +02:00
xfrm
Kconfig
Makefile
activity_stats.c
compat.c
nonet.c
socket.c This is the 3.10.102 stable release 2017-04-18 17:22:08 +02:00
sysctl_net.c