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]
Date:   Thu, 23 Jan 2020 00:04:15 +0100
From:   Lorenzo Bianconi <lorenzo.bianconi@...hat.com>
To:     Sven Auhagen <sven.auhagen@...eatech.de>
Cc:     "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "davem@...emloft.net" <davem@...emloft.net>,
        "thomas.petazzoni@...tlin.com" <thomas.petazzoni@...tlin.com>,
        "brouer@...hat.com" <brouer@...hat.com>,
        "ilias.apalodimas@...aro.org" <ilias.apalodimas@...aro.org>,
        "matteo.croce@...hat.com" <matteo.croce@...hat.com>,
        "mw@...ihalf.com" <mw@...ihalf.com>,
        "jakub.kicinski@...ronome.com" <jakub.kicinski@...ronome.com>
Subject: Re: [PATCH] mvneta driver disallow XDP program on hardware buffer
 management

> Recently XDP Support was added to the mvneta driver for software buffer management only.
> It is still possible to attach an XDP program if hardware buffer management is used.
> It is not doing anything at that point.
> 
> The patch disallows attaching XDP programs to mvneta if hardware buffer management is used.
> 
> Signed-off-by: Sven Auhagen <sven.auhagen@...eatech.de>
> 
> --- drivers/net/ethernet/marvell/mvneta.c            2020-01-22 08:44:05.611395960 +0000
> +++ drivers/net/ethernet/marvell/mvneta.c         2020-01-22 08:45:23.472263795 +0000
> @@ -4225,6 +4225,11 @@ static int mvneta_xdp_setup(struct net_d
>                                 return -EOPNOTSUPP;
>                 }
> 
> +              if (pp->bm_priv) {
> +                              NL_SET_ERR_MSG_MOD(extack, "Hardware Buffer Management not supported on XDP");
> +                              return -EOPNOTSUPP;
> +              }
> +

This patch is logically correct since we do not support XDP for hw buffer
devices for the moment. Could you please fix the errors reported by checkpatch?

Regards,
Lorenzo

>                 need_update = !!pp->xdp_prog != !!prog;
>                 if (running && need_update)
>                                 mvneta_stop(dev);
> 
> 
> 
> +++ Voleatech auf der E-World, 11. bis 13. Februar 2020, Halle 5, Stand 521 +++
> 
> Beste Grüße/Best regards
> 
> Sven Auhagen
> Dipl. Math. oec., M.Sc.
> Voleatech GmbH
> HRB: B 754643
> USTID: DE303643180
> Grathwohlstr. 5
> 72762 Reutlingen
> Tel: +49 7121539550
> Fax: +49 7121539551
> E-Mail: sven.auhagen@...eatech.de
> www.voleatech.de<https://www.voleatech.de>
> Diese Information ist ausschließlich für den Adressaten bestimmt und kann vertraulich oder gesetzlich geschützte Informationen enthalten. Wenn Sie nicht der bestimmungsgemäße Adressat sind, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Anderen als dem bestimmungsgemäßen Adressaten ist es untersagt, diese E-Mail zu lesen, zu speichern, weiterzuleiten oder ihren Inhalt auf welche Weise auch immer zu verwenden. Für den Adressaten sind die Informationen in dieser Mail nur zum persönlichen Gebrauch. Eine Weiterleitung darf nur nach Rücksprache mit dem Absender erfolgen. Wir verwenden aktuelle Virenschutzprogramme. Für Schäden, die dem Empfänger gleichwohl durch von uns zugesandte mit Viren befallene E-Mails entstehen, schließen wir jede Haftung aus.

Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ