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] [day] [month] [year] [list]
Message-ID: <CALDO+SYHvFY1ygvSEp05sEcN6pQ6+z=U4giaCv_j7viRgnFj+Q@mail.gmail.com>
Date:   Thu, 19 Mar 2020 13:16:20 -0700
From:   William Tu <u9012063@...il.com>
To:     Petr Machata <petrm@...lanox.com>
Cc:     Linux Kernel Network Developers <netdev@...r.kernel.org>,
        Xin Long <lucien.xin@...il.com>,
        Meenakshi Vohra <mvohra@...are.com>,
        "David S . Miller" <davem@...emloft.net>
Subject: Re: [PATCH net] net: ip_gre: Separate ERSPAN newlink / changelink callbacks

On Fri, Mar 13, 2020 at 4:40 AM Petr Machata <petrm@...lanox.com> wrote:
>
> ERSPAN shares most of the code path with GRE and gretap code. While that
> helps keep the code compact, it is also error prone. Currently a broken
> userspace can turn a gretap tunnel into a de facto ERSPAN one by passing
> IFLA_GRE_ERSPAN_VER. There has been a similar issue in ip6gretap in the
> past.
>
> To prevent these problems in future, split the newlink and changelink code
> paths. Split the ERSPAN code out of ipgre_netlink_parms() into a new
> function erspan_netlink_parms(). Extract a piece of common logic from
> ipgre_newlink() and ipgre_changelink() into ipgre_newlink_encap_setup().
> Add erspan_newlink() and erspan_changelink().
>
> Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN")
> Signed-off-by: Petr Machata <petrm@...lanox.com>
> ---

I found this already applied. Looks good to me, thanks!

William

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ