ieee802154: properly unshare skbs in ieee802154 *_rcv functions
authorPhoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Mon, 17 Mar 2014 17:30:19 +0000 (18:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Mar 2014 19:59:25 +0000 (15:59 -0400)
commit8cfad496c4257441710735ccef622f3829870164
treee5574aa1fac1cac858f94fffb571516bc35809dc
parent3c5dfeff932224d3c97cee9fd0d1e2876d700ad3
ieee802154: properly unshare skbs in ieee802154 *_rcv functions

ieee802154 sockets do not properly unshare received skbs, which leads to
panics (at least) when they are used in conjunction with 6lowpan, so
run skb_share_check on received skbs.
6lowpan also contains a use-after-free, which is trivially fixed by
replacing the inlined skb_share_check with the explicit call.

Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Tested-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan_rtnl.c
net/ieee802154/dgram.c
net/ieee802154/raw.c