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]
Date:   Sat, 25 Jan 2020 09:48:12 +0100
From:   "lorenzo.bianconi@...hat.com" <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>,
        "jakub.kicinski@...ronome.com" <jakub.kicinski@...ronome.com>
Subject: Re: [PATCH v5] 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.
> 

[...]

> --- a/drivers/net/ethernet/marvell/mvneta.c
> +++ b/drivers/net/ethernet/marvell/mvneta.c
> @@ -4225,6 +4225,12 @@ static int mvneta_xdp_setup(struct net_device *dev, struct bpf_prog *prog,
>  return -EOPNOTSUPP;
>  }
> 
> +if (pp->bm_priv) {
> +NL_SET_ERR_MSG_MOD(extack,
> +   "Hardware Buffer Management not supported on XDP");
> +return -EOPNOTSUPP;
> +}

Could you please fix the following checkpatch warnings?

$ <kernel_dir>/scripts/checkpatch.pl --strict file.patch

WARNING: suspect code indent for conditional statements (0, 0)
#53: FILE: drivers/net/ethernet/marvell/mvneta.c:4228:
+if (pp->bm_priv) {
+NL_SET_ERR_MSG_MOD(extack,

CHECK: Alignment should match open parenthesis
#55: FILE: drivers/net/ethernet/marvell/mvneta.c:4230:
+NL_SET_ERR_MSG_MOD(extack,
+   "Hardware Buffer Management not supported on XDP");

WARNING: please, no spaces at the start of a line
#55: FILE: drivers/net/ethernet/marvell/mvneta.c:4230:
+   "Hardware Buffer Management not supported on XDP");$

total: 0 errors, 2 warnings, 12 lines checked

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