android_kernel_samsung_msm8976/net/llc
Eric Dumazet b795395fc0 net/llc: avoid BUG_ON() in skb_orphan()
commit 8b74d439e1697110c5e5c600643e823eb1dd0762 upstream.

It seems nobody used LLC since linux-3.12.

Fortunately fuzzers like syzkaller still know how to run this code,
otherwise it would be no fun.

Setting skb->sk without skb->destructor leads to all kinds of
bugs, we now prefer to be very strict about it.

Ideally here we would use skb_set_owner() but this helper does not exist yet,
only CAN seems to have a private helper for that.

Fixes: 376c7311bdb6 ("net: add a temporary sanity check in skb_orphan()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2017-04-22 23:03:00 +02:00
..
Kconfig
Makefile
af_llc.c net: fix infoleak in llc 2016-06-07 10:42:54 +02:00
llc_c_ac.c
llc_c_ev.c
llc_c_st.c
llc_conn.c net/llc: avoid BUG_ON() in skb_orphan() 2017-04-22 23:03:00 +02:00
llc_core.c
llc_if.c
llc_input.c llc: Fix races between llc2 handler use and (un)registration 2012-08-14 16:52:02 -07:00
llc_output.c net: delete all instances of special processing for token ring 2012-05-15 20:14:35 -04:00
llc_pdu.c
llc_proc.c userns: Print out socket uids in a user namespace aware fashion. 2012-08-14 21:48:06 -07:00
llc_s_ac.c
llc_s_ev.c
llc_s_st.c
llc_sap.c net/llc: avoid BUG_ON() in skb_orphan() 2017-04-22 23:03:00 +02:00
llc_station.c llc2: Collapse remainder of state machine into simple if-else if-statement 2012-09-17 13:04:19 -04:00
sysctl_net_llc.c net: llc: use correct size for sysctl timeout entries 2015-04-19 10:10:50 +02:00