]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: call ipv6_proxy_select_ident instead of ipv6_select_ident in udp6_ufo_fragment
authorSabrina Dubroca <sd@queasysnail.net>
Thu, 19 Mar 2015 10:22:32 +0000 (11:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2015 16:56:11 +0000 (12:56 -0400)
commit7763169d79dcb0e10a1c26e4ee57ed12c135bf3c
treef49f84a63eec553e3462537efaf513061642a846
parente7c82bb92624920324c68e2a62c402d8e20f3396
ipv6: call ipv6_proxy_select_ident instead of ipv6_select_ident in udp6_ufo_fragment

Matt Grant reported frequent crashes in ipv6_select_ident when
udp6_ufo_fragment is called from openvswitch on a skb that doesn't
have a dst_entry set.

ipv6_proxy_select_ident generates the frag_id without using the dst
associated with the skb.  This approach was suggested by Vladislav
Yasevich.

Fixes: 5b65d0ae7d2a ("ipv6: Select fragment id during UFO segmentation if not set.")
Cc: Vladislav Yasevich <vyasevic@redhat.com>
Reported-by: Matt Grant <matt@mattgrant.net.nz>
Tested-by: Matt Grant <matt@mattgrant.net.nz>
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Vladislav Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/udp_offload.c