* [PATCH net] ipv6: skip __ipv6_select_ident when there is no skb_dst
@ 2015-03-18 13:52 Sabrina Dubroca
2015-03-18 14:04 ` Vlad Yasevich
0 siblings, 1 reply; 10+ messages in thread
From: Sabrina Dubroca @ 2015-03-18 13:52 UTC (permalink / raw)
To: davem; +Cc: netdev, matt, Sabrina Dubroca, Vladislav Yasevich
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.
Skip __ipv6_select_ident in case of a NULL rt.
Fixes: 0508c07f5e0c ("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>
---
David, can you queue it for stable (3.19)?
net/ipv6/output_core.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/net/ipv6/output_core.c b/net/ipv6/output_core.c
index 74581f706c4d..52b1bc76d5c5 100644
--- a/net/ipv6/output_core.c
+++ b/net/ipv6/output_core.c
@@ -62,12 +62,14 @@ EXPORT_SYMBOL_GPL(ipv6_proxy_select_ident);
void ipv6_select_ident(struct frag_hdr *fhdr, struct rt6_info *rt)
{
static u32 ip6_idents_hashrnd __read_mostly;
- u32 id;
+ u32 id = 0;
net_get_random_once(&ip6_idents_hashrnd, sizeof(ip6_idents_hashrnd));
- id = __ipv6_select_ident(ip6_idents_hashrnd, &rt->rt6i_dst.addr,
- &rt->rt6i_src.addr);
+ if (rt)
+ id = __ipv6_select_ident(ip6_idents_hashrnd, &rt->rt6i_dst.addr,
+ &rt->rt6i_src.addr);
+
fhdr->identification = htonl(id);
}
EXPORT_SYMBOL(ipv6_select_ident);
--
2.3.3
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH net] ipv6: skip __ipv6_select_ident when there is no skb_dst
2015-03-18 13:52 [PATCH net] ipv6: skip __ipv6_select_ident when there is no skb_dst Sabrina Dubroca
@ 2015-03-18 14:04 ` Vlad Yasevich
2015-03-18 14:15 ` Sabrina Dubroca
0 siblings, 1 reply; 10+ messages in thread
From: Vlad Yasevich @ 2015-03-18 14:04 UTC (permalink / raw)
To: Sabrina Dubroca, davem; +Cc: netdev, matt
On 03/18/2015 09:52 AM, Sabrina Dubroca wrote:
> 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.
>
> Skip __ipv6_select_ident in case of a NULL rt.
>
> Fixes: 0508c07f5e0c ("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>
> ---
> David, can you queue it for stable (3.19)?
>
> net/ipv6/output_core.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/net/ipv6/output_core.c b/net/ipv6/output_core.c
> index 74581f706c4d..52b1bc76d5c5 100644
> --- a/net/ipv6/output_core.c
> +++ b/net/ipv6/output_core.c
> @@ -62,12 +62,14 @@ EXPORT_SYMBOL_GPL(ipv6_proxy_select_ident);
> void ipv6_select_ident(struct frag_hdr *fhdr, struct rt6_info *rt)
> {
> static u32 ip6_idents_hashrnd __read_mostly;
> - u32 id;
> + u32 id = 0;
>
> net_get_random_once(&ip6_idents_hashrnd, sizeof(ip6_idents_hashrnd));
>
> - id = __ipv6_select_ident(ip6_idents_hashrnd, &rt->rt6i_dst.addr,
> - &rt->rt6i_src.addr);
> + if (rt)
> + id = __ipv6_select_ident(ip6_idents_hashrnd, &rt->rt6i_dst.addr,
> + &rt->rt6i_src.addr);
> +
> fhdr->identification = htonl(id);
> }
> EXPORT_SYMBOL(ipv6_select_ident);
>
Hi Sabrina
This would result in us using id 0 which is not what we want to do.
In this case, udp6_ufo_fragment() should be calling ipv6_proxy_select_ident() so that
the fragment id is properly generated.
-vlad
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net] ipv6: skip __ipv6_select_ident when there is no skb_dst
2015-03-18 14:04 ` Vlad Yasevich
@ 2015-03-18 14:15 ` Sabrina Dubroca
2015-03-18 14:25 ` Vlad Yasevich
0 siblings, 1 reply; 10+ messages in thread
From: Sabrina Dubroca @ 2015-03-18 14:15 UTC (permalink / raw)
To: Vlad Yasevich; +Cc: davem, netdev, matt
2015-03-18, 10:04:10 -0400, Vlad Yasevich wrote:
> On 03/18/2015 09:52 AM, Sabrina Dubroca wrote:
> > 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.
> >
> > Skip __ipv6_select_ident in case of a NULL rt.
> >
> > Fixes: 0508c07f5e0c ("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>
> > ---
> [...]
>
> Hi Sabrina
>
> This would result in us using id 0 which is not what we want to do.
>
> In this case, udp6_ufo_fragment() should be calling ipv6_proxy_select_ident() so that
> the fragment id is properly generated.
Hi Vlad,
So, instead, something like this? Or do you want to use
ipv6_proxy_select_ident even when we have a skb_dst?
diff --git a/net/ipv6/udp_offload.c b/net/ipv6/udp_offload.c
index ab889bb16b3c..01c41122ddd7 100644
--- a/net/ipv6/udp_offload.c
+++ b/net/ipv6/udp_offload.c
@@ -112,11 +112,17 @@ static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb,
fptr = (struct frag_hdr *)(skb_network_header(skb) + unfrag_ip6hlen);
fptr->nexthdr = nexthdr;
fptr->reserved = 0;
- if (skb_shinfo(skb)->ip6_frag_id)
+ if (skb_shinfo(skb)->ip6_frag_id) {
fptr->identification = skb_shinfo(skb)->ip6_frag_id;
- else
- ipv6_select_ident(fptr,
- (struct rt6_info *)skb_dst(skb));
+ } else {
+ struct rt6_info *rt = (struct rt6_info *)skb_dst(skb);
+ if (rt) {
+ ipv6_select_ident(fptr, rt);
+ } else {
+ ipv6_proxy_select_ident(skb);
+ fptr->identification = skb_shinfo(skb)->ip6_frag_id;
+ }
+ }
/* Fragment the skb. ipv6 header and the remaining fields of the
* fragment header are updated in ipv6_gso_segment()
--
Sabrina
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH net] ipv6: skip __ipv6_select_ident when there is no skb_dst
2015-03-18 14:15 ` Sabrina Dubroca
@ 2015-03-18 14:25 ` Vlad Yasevich
2015-03-18 14:36 ` Sabrina Dubroca
0 siblings, 1 reply; 10+ messages in thread
From: Vlad Yasevich @ 2015-03-18 14:25 UTC (permalink / raw)
To: Sabrina Dubroca; +Cc: davem, netdev, matt
On 03/18/2015 10:15 AM, Sabrina Dubroca wrote:
> 2015-03-18, 10:04:10 -0400, Vlad Yasevich wrote:
>> On 03/18/2015 09:52 AM, Sabrina Dubroca wrote:
>>> 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.
>>>
>>> Skip __ipv6_select_ident in case of a NULL rt.
>>>
>>> Fixes: 0508c07f5e0c ("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>
>>> ---
>> [...]
>>
>> Hi Sabrina
>>
>> This would result in us using id 0 which is not what we want to do.
>>
>> In this case, udp6_ufo_fragment() should be calling ipv6_proxy_select_ident() so that
>> the fragment id is properly generated.
>
> Hi Vlad,
>
> So, instead, something like this? Or do you want to use
> ipv6_proxy_select_ident even when we have a skb_dst?
>
Yes, this is what I was thinking...
-vlad
>
> diff --git a/net/ipv6/udp_offload.c b/net/ipv6/udp_offload.c
> index ab889bb16b3c..01c41122ddd7 100644
> --- a/net/ipv6/udp_offload.c
> +++ b/net/ipv6/udp_offload.c
> @@ -112,11 +112,17 @@ static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb,
> fptr = (struct frag_hdr *)(skb_network_header(skb) + unfrag_ip6hlen);
> fptr->nexthdr = nexthdr;
> fptr->reserved = 0;
> - if (skb_shinfo(skb)->ip6_frag_id)
> + if (skb_shinfo(skb)->ip6_frag_id) {
> fptr->identification = skb_shinfo(skb)->ip6_frag_id;
> - else
> - ipv6_select_ident(fptr,
> - (struct rt6_info *)skb_dst(skb));
> + } else {
> + struct rt6_info *rt = (struct rt6_info *)skb_dst(skb);
> + if (rt) {
> + ipv6_select_ident(fptr, rt);
> + } else {
> + ipv6_proxy_select_ident(skb);
> + fptr->identification = skb_shinfo(skb)->ip6_frag_id;
> + }
> + }
>
> /* Fragment the skb. ipv6 header and the remaining fields of the
> * fragment header are updated in ipv6_gso_segment()
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net] ipv6: skip __ipv6_select_ident when there is no skb_dst
2015-03-18 14:25 ` Vlad Yasevich
@ 2015-03-18 14:36 ` Sabrina Dubroca
2015-03-19 9:39 ` Matt Grant
0 siblings, 1 reply; 10+ messages in thread
From: Sabrina Dubroca @ 2015-03-18 14:36 UTC (permalink / raw)
To: Vlad Yasevich; +Cc: davem, netdev, matt
2015-03-18, 10:25:43 -0400, Vlad Yasevich wrote:
> On 03/18/2015 10:15 AM, Sabrina Dubroca wrote:
> > 2015-03-18, 10:04:10 -0400, Vlad Yasevich wrote:
> >> On 03/18/2015 09:52 AM, Sabrina Dubroca wrote:
> >>> 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.
> >>>
> >>> Skip __ipv6_select_ident in case of a NULL rt.
> >>>
> >>> Fixes: 0508c07f5e0c ("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>
> >>> ---
> >> [...]
> >>
> >> Hi Sabrina
> >>
> >> This would result in us using id 0 which is not what we want to do.
> >>
> >> In this case, udp6_ufo_fragment() should be calling ipv6_proxy_select_ident() so that
> >> the fragment id is properly generated.
> >
> > Hi Vlad,
> >
> > So, instead, something like this? Or do you want to use
> > ipv6_proxy_select_ident even when we have a skb_dst?
> >
>
> Yes, this is what I was thinking...
>
> -vlad
Okay, so:
diff --git a/net/ipv6/udp_offload.c b/net/ipv6/udp_offload.c
index ab889bb16b3c..be2c0ba82c85 100644
--- a/net/ipv6/udp_offload.c
+++ b/net/ipv6/udp_offload.c
@@ -112,11 +112,9 @@ static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb,
fptr = (struct frag_hdr *)(skb_network_header(skb) + unfrag_ip6hlen);
fptr->nexthdr = nexthdr;
fptr->reserved = 0;
- if (skb_shinfo(skb)->ip6_frag_id)
- fptr->identification = skb_shinfo(skb)->ip6_frag_id;
- else
- ipv6_select_ident(fptr,
- (struct rt6_info *)skb_dst(skb));
+ if (!skb_shinfo(skb)->ip6_frag_id)
+ ipv6_proxy_select_ident(skb);
+ fptr->identification = skb_shinfo(skb)->ip6_frag_id;
/* Fragment the skb. ipv6 header and the remaining fields of the
* fragment header are updated in ipv6_gso_segment()
--
Sabrina
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH net] ipv6: skip __ipv6_select_ident when there is no skb_dst
2015-03-18 14:36 ` Sabrina Dubroca
@ 2015-03-19 9:39 ` Matt Grant
2015-03-19 10:10 ` Sabrina Dubroca
0 siblings, 1 reply; 10+ messages in thread
From: Matt Grant @ 2015-03-19 9:39 UTC (permalink / raw)
To: Sabrina Dubroca; +Cc: Vlad Yasevich, davem, netdev
Hi!
This fixes hard lock on 3.19.2 as well. Without it, machine drops dead -
hard locks - pretty quickly after boot.
Will try 4.0-rc4 tomorrow. 4.0-rc3 had same hard crash issues.
Get it out there, this is a IPv6 network Packet of Death! We need
3.19.3 ASAP I think.
I'll try and see if I can get a network trace of the cause on Saturday.
Regards,
Matt
On Wed, 2015-03-18 at 15:36 +0100, Sabrina Dubroca wrote:
> 2015-03-18, 10:25:43 -0400, Vlad Yasevich wrote:
> > On 03/18/2015 10:15 AM, Sabrina Dubroca wrote:
> > > 2015-03-18, 10:04:10 -0400, Vlad Yasevich wrote:
> > >> On 03/18/2015 09:52 AM, Sabrina Dubroca wrote:
> > >>> 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.
> > >>>
> > >>> Skip __ipv6_select_ident in case of a NULL rt.
> > >>>
> > >>> Fixes: 0508c07f5e0c ("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>
> > >>> ---
> > >> [...]
> > >>
> > >> Hi Sabrina
> > >>
> > >> This would result in us using id 0 which is not what we want to do.
> > >>
> > >> In this case, udp6_ufo_fragment() should be calling ipv6_proxy_select_ident() so that
> > >> the fragment id is properly generated.
> > >
> > > Hi Vlad,
> > >
> > > So, instead, something like this? Or do you want to use
> > > ipv6_proxy_select_ident even when we have a skb_dst?
> > >
> >
> > Yes, this is what I was thinking...
> >
> > -vlad
>
> Okay, so:
>
> diff --git a/net/ipv6/udp_offload.c b/net/ipv6/udp_offload.c
> index ab889bb16b3c..be2c0ba82c85 100644
> --- a/net/ipv6/udp_offload.c
> +++ b/net/ipv6/udp_offload.c
> @@ -112,11 +112,9 @@ static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb,
> fptr = (struct frag_hdr *)(skb_network_header(skb) + unfrag_ip6hlen);
> fptr->nexthdr = nexthdr;
> fptr->reserved = 0;
> - if (skb_shinfo(skb)->ip6_frag_id)
> - fptr->identification = skb_shinfo(skb)->ip6_frag_id;
> - else
> - ipv6_select_ident(fptr,
> - (struct rt6_info *)skb_dst(skb));
> + if (!skb_shinfo(skb)->ip6_frag_id)
> + ipv6_proxy_select_ident(skb);
> + fptr->identification = skb_shinfo(skb)->ip6_frag_id;
>
> /* Fragment the skb. ipv6 header and the remaining fields of the
> * fragment header are updated in ipv6_gso_segment()
>
>
--
Matt Grant, Debian and Linux Systems Administration and Consulting
Mobile: 021 0267 0578
Email: matt@mattgrant.net.nz
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net] ipv6: skip __ipv6_select_ident when there is no skb_dst
2015-03-19 9:39 ` Matt Grant
@ 2015-03-19 10:10 ` Sabrina Dubroca
2015-03-19 10:22 ` [PATCH net] ipv6: call ipv6_proxy_select_ident instead of ipv6_select_ident in udp6_ufo_fragment Sabrina Dubroca
0 siblings, 1 reply; 10+ messages in thread
From: Sabrina Dubroca @ 2015-03-19 10:10 UTC (permalink / raw)
To: Matt Grant; +Cc: Vlad Yasevich, davem, netdev
2015-03-19, 22:39:50 +1300, Matt Grant wrote:
> Hi!
>
> This fixes hard lock on 3.19.2 as well. Without it, machine drops dead -
> hard locks - pretty quickly after boot.
>
> Will try 4.0-rc4 tomorrow. 4.0-rc3 had same hard crash issues.
>
> Get it out there, this is a IPv6 network Packet of Death! We need
> 3.19.3 ASAP I think.
>
> I'll try and see if I can get a network trace of the cause on Saturday.
>
> Regards,
>
> Matt
Thanks for testing this, Matt.
I will submit the patch in a few minutes.
--
Sabrina
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH net] ipv6: call ipv6_proxy_select_ident instead of ipv6_select_ident in udp6_ufo_fragment
2015-03-19 10:10 ` Sabrina Dubroca
@ 2015-03-19 10:22 ` Sabrina Dubroca
2015-03-19 12:37 ` Vlad Yasevich
2015-03-20 17:19 ` David Miller
0 siblings, 2 replies; 10+ messages in thread
From: Sabrina Dubroca @ 2015-03-19 10:22 UTC (permalink / raw)
To: davem; +Cc: netdev, matt, Sabrina Dubroca, Vladislav Yasevich
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: 0508c07f5e0c ("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>
---
David, can you queue this for stable/3.19? Thanks.
net/ipv6/udp_offload.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/net/ipv6/udp_offload.c b/net/ipv6/udp_offload.c
index ab889bb16b3c..be2c0ba82c85 100644
--- a/net/ipv6/udp_offload.c
+++ b/net/ipv6/udp_offload.c
@@ -112,11 +112,9 @@ static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb,
fptr = (struct frag_hdr *)(skb_network_header(skb) + unfrag_ip6hlen);
fptr->nexthdr = nexthdr;
fptr->reserved = 0;
- if (skb_shinfo(skb)->ip6_frag_id)
- fptr->identification = skb_shinfo(skb)->ip6_frag_id;
- else
- ipv6_select_ident(fptr,
- (struct rt6_info *)skb_dst(skb));
+ if (!skb_shinfo(skb)->ip6_frag_id)
+ ipv6_proxy_select_ident(skb);
+ fptr->identification = skb_shinfo(skb)->ip6_frag_id;
/* Fragment the skb. ipv6 header and the remaining fields of the
* fragment header are updated in ipv6_gso_segment()
--
2.3.3
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH net] ipv6: call ipv6_proxy_select_ident instead of ipv6_select_ident in udp6_ufo_fragment
2015-03-19 10:22 ` [PATCH net] ipv6: call ipv6_proxy_select_ident instead of ipv6_select_ident in udp6_ufo_fragment Sabrina Dubroca
@ 2015-03-19 12:37 ` Vlad Yasevich
2015-03-20 17:19 ` David Miller
1 sibling, 0 replies; 10+ messages in thread
From: Vlad Yasevich @ 2015-03-19 12:37 UTC (permalink / raw)
To: Sabrina Dubroca, davem; +Cc: netdev, matt
On 03/19/2015 06:22 AM, Sabrina Dubroca wrote:
> 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: 0508c07f5e0c ("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>
-vlad
> ---
> David, can you queue this for stable/3.19? Thanks.
>
> net/ipv6/udp_offload.c | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/net/ipv6/udp_offload.c b/net/ipv6/udp_offload.c
> index ab889bb16b3c..be2c0ba82c85 100644
> --- a/net/ipv6/udp_offload.c
> +++ b/net/ipv6/udp_offload.c
> @@ -112,11 +112,9 @@ static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb,
> fptr = (struct frag_hdr *)(skb_network_header(skb) + unfrag_ip6hlen);
> fptr->nexthdr = nexthdr;
> fptr->reserved = 0;
> - if (skb_shinfo(skb)->ip6_frag_id)
> - fptr->identification = skb_shinfo(skb)->ip6_frag_id;
> - else
> - ipv6_select_ident(fptr,
> - (struct rt6_info *)skb_dst(skb));
> + if (!skb_shinfo(skb)->ip6_frag_id)
> + ipv6_proxy_select_ident(skb);
> + fptr->identification = skb_shinfo(skb)->ip6_frag_id;
>
> /* Fragment the skb. ipv6 header and the remaining fields of the
> * fragment header are updated in ipv6_gso_segment()
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH net] ipv6: call ipv6_proxy_select_ident instead of ipv6_select_ident in udp6_ufo_fragment
2015-03-19 10:22 ` [PATCH net] ipv6: call ipv6_proxy_select_ident instead of ipv6_select_ident in udp6_ufo_fragment Sabrina Dubroca
2015-03-19 12:37 ` Vlad Yasevich
@ 2015-03-20 17:19 ` David Miller
1 sibling, 0 replies; 10+ messages in thread
From: David Miller @ 2015-03-20 17:19 UTC (permalink / raw)
To: sd; +Cc: netdev, matt, vyasevic
From: Sabrina Dubroca <sd@queasysnail.net>
Date: Thu, 19 Mar 2015 11:22:32 +0100
> 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: 0508c07f5e0c ("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>
Applied and queued up for -stable, thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-03-20 17:19 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-18 13:52 [PATCH net] ipv6: skip __ipv6_select_ident when there is no skb_dst Sabrina Dubroca
2015-03-18 14:04 ` Vlad Yasevich
2015-03-18 14:15 ` Sabrina Dubroca
2015-03-18 14:25 ` Vlad Yasevich
2015-03-18 14:36 ` Sabrina Dubroca
2015-03-19 9:39 ` Matt Grant
2015-03-19 10:10 ` Sabrina Dubroca
2015-03-19 10:22 ` [PATCH net] ipv6: call ipv6_proxy_select_ident instead of ipv6_select_ident in udp6_ufo_fragment Sabrina Dubroca
2015-03-19 12:37 ` Vlad Yasevich
2015-03-20 17:19 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).