Files
Johannes Berg 3bbb42f09d ipv4: ip_check_defrag must not modify skb before unsharing
[ Upstream commit 1bf3751ec9 ]

ip_check_defrag() might be called from af_packet within the
RX path where shared SKBs are used, so it must not modify
the input SKB before it has unshared it for defragmentation.
Use skb_copy_bits() to get the IP header and only pull in
everything later.

The same is true for the other caller in macvlan as it is
called from dev->rx_handler which can also get a shared SKB.

Reported-by: Eric Leblond <eric@regit.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2013-01-03 03:33:52 +00:00
..
2011-11-12 18:13:32 -05:00
2011-10-13 16:05:07 -04:00
2011-10-19 03:10:46 -04:00
2011-11-18 14:38:59 -05:00
2012-10-10 03:31:31 +01:00
2011-12-22 22:34:56 -05:00
2012-03-23 11:21:22 -07:00
2012-10-30 23:26:35 +00:00
2011-10-24 17:36:08 -04:00
2012-11-16 16:47:15 +00:00
2011-12-01 14:12:55 -05:00