[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200329.222109.1183931707971302785.davem@davemloft.net>
Date: Sun, 29 Mar 2020 22:21:09 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: w.dauchy@...teo.com
Cc: netdev@...r.kernel.org, nicolas.dichtel@...nd.com
Subject: Re: [PATCH v3 net] net, ip_tunnel: fix interface lookup with no key
From: William Dauchy <w.dauchy@...teo.com>
Date: Fri, 27 Mar 2020 19:56:39 +0100
> when creating a new ipip interface with no local/remote configuration,
> the lookup is done with TUNNEL_NO_KEY flag, making it impossible to
> match the new interface (only possible match being fallback or metada
> case interface); e.g: `ip link add tunl1 type ipip dev eth0`
>
> To fix this case, adding a flag check before the key comparison so we
> permit to match an interface with no local/remote config; it also avoids
> breaking possible userland tools relying on TUNNEL_NO_KEY flag and
> uninitialised key.
>
> context being on my side, I'm creating an extra ipip interface attached
> to the physical one, and moving it to a dedicated namespace.
>
> Fixes: c54419321455 ("GRE: Refactor GRE tunneling code.")
> Signed-off-by: William Dauchy <w.dauchy@...teo.com>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists