android_kernel_samsung_msm8976/net/phonet
Eric Dumazet 4734f5361b phonet: properly unshare skbs in phonet_rcv()
[ Upstream commit 7aaed57c5c2890634cfadf725173c7c68ea4cb4f ]

Ivaylo Dimitrov reported a regression caused by commit 7866a621043f
("dev: add per net_device packet type chains").

skb->dev becomes NULL and we crash in __netif_receive_skb_core().

Before above commit, different kind of bugs or corruptions could happen
without major crash.

But the root cause is that phonet_rcv() can queue skb without checking
if skb is shared or not.

Many thanks to Ivaylo Dimitrov for his help, diagnosis and tests.

Reported-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Tested-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Remi Denis-Courmont <courmisch@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-01-28 21:49:34 -08:00
..
af_phonet.c phonet: properly unshare skbs in phonet_rcv() 2016-01-28 21:49:34 -08:00
datagram.c inet: prevent leakage of uninitialized memory to user in recv syscalls 2013-12-08 07:29:25 -08:00
Kconfig Phonet: kill the ST-Ericsson pipe controller Kconfig 2011-03-09 11:59:33 -08:00
Makefile
pep-gprs.c net: remove my future former mail address 2012-06-17 16:29:38 -07:00
pep.c hlist: drop the node parameter from iterators 2013-02-27 19:10:24 -08:00
pn_dev.c net: proc: change proc_net_remove to remove_proc_entry 2013-02-18 14:53:08 -05:00
pn_netlink.c net: Use netlink_ns_capable to verify the permisions of netlink messages 2014-06-26 15:12:37 -04:00
socket.c hlist: drop the node parameter from iterators 2013-02-27 19:10:24 -08:00
sysctl.c net: remove my future former mail address 2012-06-17 16:29:38 -07:00