From: Greg Kroah-Hartman Date: Fri, 2 Dec 2011 23:46:52 +0000 (-0800) Subject: 3.1 patches X-Git-Tag: v3.0.13~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=62601245d8117fbb74e1b6d182de4e1cf0738218;p=thirdparty%2Fkernel%2Fstable-queue.git 3.1 patches added patches: bridge-correct-ipv6-checksum-after-pull.patch --- diff --git a/queue-3.1/bridge-correct-ipv6-checksum-after-pull.patch b/queue-3.1/bridge-correct-ipv6-checksum-after-pull.patch new file mode 100644 index 00000000000..5c08271d947 --- /dev/null +++ b/queue-3.1/bridge-correct-ipv6-checksum-after-pull.patch @@ -0,0 +1,33 @@ +From fa2da8cdae1dd64f78fc915ca1d1a4a93c71e7cb Mon Sep 17 00:00:00 2001 +From: stephen hemminger +Date: Tue, 15 Nov 2011 08:09:14 +0000 +Subject: bridge: correct IPv6 checksum after pull + +From: stephen hemminger + +commit fa2da8cdae1dd64f78fc915ca1d1a4a93c71e7cb upstream. + +Bridge multicast snooping of ICMPv6 would incorrectly report a checksum problem +when used with Ethernet devices like sky2 that use CHECKSUM_COMPLETE. +When bytes are removed from skb, the computed checksum needs to be adjusted. + +Signed-off-by: Stephen Hemminger +Tested-by: Martin Volf +Signed-off-by: David S. Miller +Signed-off-by: Greg Kroah-Hartman + +--- + net/bridge/br_multicast.c | 2 ++ + 1 file changed, 2 insertions(+) + +--- a/net/bridge/br_multicast.c ++++ b/net/bridge/br_multicast.c +@@ -1501,6 +1501,8 @@ static int br_multicast_ipv6_rcv(struct + + __skb_pull(skb2, offset); + skb_reset_transport_header(skb2); ++ skb_postpull_rcsum(skb2, skb_network_header(skb2), ++ skb_network_header_len(skb2)); + + icmp6_type = icmp6_hdr(skb2)->icmp6_type; + diff --git a/queue-3.1/series b/queue-3.1/series index 7d780a612bb..3e8fcf61adf 100644 --- a/queue-3.1/series +++ b/queue-3.1/series @@ -53,3 +53,4 @@ xfs-fix-possible-memory-corruption-in-xfs_readlink.patch xfs-use-doalloc-flag-in-xfs_qm_dqattach_one.patch scsi-silencing-killing-requests-for-dead-queue.patch hugetlb-release-pages-in-the-error-path-of-hugetlb_cow.patch +bridge-correct-ipv6-checksum-after-pull.patch