* [PATCH net] sit: update frag_off info
@ 2017-11-30 2:41 Hangbin Liu
2017-11-30 14:08 ` Nicolas Dichtel
2017-11-30 15:26 ` David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Hangbin Liu @ 2017-11-30 2:41 UTC (permalink / raw)
To: netdev; +Cc: Nicolas Dichtel, David Miller, Hangbin Liu
After parsing the sit netlink change info, we forget to update frag_off in
ipip6_tunnel_update(). Fix it by assigning frag_off with new value.
Fixes: f37234160233 ("sit: add support of link creation via rtnl")
Reported-by: Jianlin Shi <jishi@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
---
net/ipv6/sit.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
index d60ddcb..d7dc23c 100644
--- a/net/ipv6/sit.c
+++ b/net/ipv6/sit.c
@@ -1098,6 +1098,7 @@ static void ipip6_tunnel_update(struct ip_tunnel *t, struct ip_tunnel_parm *p,
ipip6_tunnel_link(sitn, t);
t->parms.iph.ttl = p->iph.ttl;
t->parms.iph.tos = p->iph.tos;
+ t->parms.iph.frag_off = p->iph.frag_off;
if (t->parms.link != p->link || t->fwmark != fwmark) {
t->parms.link = p->link;
t->fwmark = fwmark;
--
2.5.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net] sit: update frag_off info
2017-11-30 2:41 [PATCH net] sit: update frag_off info Hangbin Liu
@ 2017-11-30 14:08 ` Nicolas Dichtel
2017-11-30 14:35 ` Hangbin Liu
2017-11-30 15:26 ` David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Nicolas Dichtel @ 2017-11-30 14:08 UTC (permalink / raw)
To: Hangbin Liu, netdev; +Cc: David Miller
Le 30/11/2017 à 03:41, Hangbin Liu a écrit :
> After parsing the sit netlink change info, we forget to update frag_off in
> ipip6_tunnel_update(). Fix it by assigning frag_off with new value.
>
> Fixes: f37234160233 ("sit: add support of link creation via rtnl")
I think it's older than this patch (before git ages), but it probably doesn't
matter.
> Reported-by: Jianlin Shi <jishi@redhat.com>
> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net] sit: update frag_off info
2017-11-30 14:08 ` Nicolas Dichtel
@ 2017-11-30 14:35 ` Hangbin Liu
0 siblings, 0 replies; 4+ messages in thread
From: Hangbin Liu @ 2017-11-30 14:35 UTC (permalink / raw)
To: Nicolas Dichtel; +Cc: netdev, David Miller
On Thu, Nov 30, 2017 at 03:08:51PM +0100, Nicolas Dichtel wrote:
> Le 30/11/2017 à 03:41, Hangbin Liu a écrit :
> > After parsing the sit netlink change info, we forget to update frag_off in
> > ipip6_tunnel_update(). Fix it by assigning frag_off with new value.
> >
> > Fixes: f37234160233 ("sit: add support of link creation via rtnl")
> I think it's older than this patch (before git ages), but it probably doesn't
> matter.
Yeah..It really took me some time to consider whether add the fixes tag or
not. David, please feel free to remove it if you think it's unnecessary.
Thanks
Hangbin
>
>
> > Reported-by: Jianlin Shi <jishi@redhat.com>
> > Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
> Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net] sit: update frag_off info
2017-11-30 2:41 [PATCH net] sit: update frag_off info Hangbin Liu
2017-11-30 14:08 ` Nicolas Dichtel
@ 2017-11-30 15:26 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2017-11-30 15:26 UTC (permalink / raw)
To: liuhangbin; +Cc: netdev, nicolas.dichtel
From: Hangbin Liu <liuhangbin@gmail.com>
Date: Thu, 30 Nov 2017 10:41:14 +0800
> After parsing the sit netlink change info, we forget to update frag_off in
> ipip6_tunnel_update(). Fix it by assigning frag_off with new value.
>
> Fixes: f37234160233 ("sit: add support of link creation via rtnl")
> Reported-by: Jianlin Shi <jishi@redhat.com>
> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Since, as mentioned, this bug existed before netlink sit support, I've
removed this Fixes tag.
Applied and queued up for -stable, nice catch.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-11-30 15:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-30 2:41 [PATCH net] sit: update frag_off info Hangbin Liu
2017-11-30 14:08 ` Nicolas Dichtel
2017-11-30 14:35 ` Hangbin Liu
2017-11-30 15:26 ` 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).