lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJ75kXbDL+vvC9UKWoM4_Zf59Ej8hEOOJT-92L_G9u-j9px1sQ@mail.gmail.com>
Date:   Wed, 5 Feb 2020 18:36:11 +0100
From:   William Dauchy <w.dauchy@...teo.com>
To:     Nicolas Dichtel <nicolas.dichtel@...nd.com>
Cc:     William Dauchy <w.dauchy@...teo.com>,
        NETDEV <netdev@...r.kernel.org>
Subject: Re: [PATCH v2 1/2] net, ip6_tunnel: enhance tunnel locate with link check

On Wed, Feb 5, 2020 at 5:55 PM Nicolas Dichtel
<nicolas.dichtel@...nd.com> wrote:
> Le 05/02/2020 à 17:29, William Dauchy a écrit :
> [snip]
> > diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
> > index b5dd20c4599b..053f44691cc6 100644
> > --- a/net/ipv6/ip6_tunnel.c
> > +++ b/net/ipv6/ip6_tunnel.c
> > @@ -351,7 +351,8 @@ static struct ip6_tnl *ip6_tnl_locate(struct net *net,
> >            (t = rtnl_dereference(*tp)) != NULL;
> >            tp = &t->next) {
> >               if (ipv6_addr_equal(local, &t->parms.laddr) &&
> > -                 ipv6_addr_equal(remote, &t->parms.raddr)) {
> > +                 ipv6_addr_equal(remote, &t->parms.raddr) &&
> > +                 p->link == t->parms.link) {
> >                       if (create)
> >                               return ERR_PTR(-EEXIST);
> This is probably not so easy. If link becomes part of the key, at least
> ip6_tnl_lookup() should also be updated.
> You can also look at ip_tunnel_bind_dev() to check how the mtu is calculated.

indeed, I will update that.
-- 
William

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ