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:   Tue, 23 Jun 2020 15:16:53 +0300
From:   Alexander Lobakin <alobakin@...vell.com>
To:     Jakub Kicinski <kuba@...nel.org>
CC:     Alexander Lobakin <alobakin@...vell.com>,
        "David S. Miller" <davem@...emloft.net>,
        Igor Russkikh <irusskikh@...vell.com>,
        Michal Kalderon <michal.kalderon@...vell.com>,
        Ariel Elior <aelior@...vell.com>,
        Yuval Mintz <yuval.mintz@...vell.com>,
        Denis Bolotin <denis.bolotin@...vell.com>,
        "Ram Amrani" <ram.amrani@...vell.com>,
        Tomer Tayar <tomer.tayar@...vell.com>,
        <GR-everest-linux-l2@...vell.com>, <netdev@...r.kernel.org>,
        <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH net 9/9] net: qed: fix "maybe uninitialized" warning

From: Jakub Kicinski <kuba@...nel.org>
Date: Mon, 22 Jun 2020 14:44:37 -0700

> On Mon, 22 Jun 2020 14:14:13 +0300 Alexander Lobakin wrote:
> > Variable 'abs_ppfid' in qed_dev.c:qed_llh_add_mac_filter() always gets
> > printed, but is initialized only under 'ref_cnt == 1' condition. This
> > results in:
> > 
> > In file included from ./include/linux/kernel.h:15:0,
> >                  from ./include/asm-generic/bug.h:19,
> >                  from ./arch/x86/include/asm/bug.h:86,
> >                  from ./include/linux/bug.h:5,
> >                  from ./include/linux/io.h:11,
> >                  from drivers/net/ethernet/qlogic/qed/qed_dev.c:35:
> > drivers/net/ethernet/qlogic/qed/qed_dev.c: In function 'qed_llh_add_mac_filter':
> > ./include/linux/printk.h:358:2: warning: 'abs_ppfid' may be used uninitialized
> > in this function [-Wmaybe-uninitialized]
> >   printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
> >   ^~~~~~
> > drivers/net/ethernet/qlogic/qed/qed_dev.c:983:17: note: 'abs_ppfid' was declared
> > here
> >   u8 filter_idx, abs_ppfid;
> >                  ^~~~~~~~~
> > 
> > ...under W=1+.
> > 
> > Fix this by initializing it with zero.
> > 
> > Fixes: 79284adeb99e ("qed: Add llh ppfid interface and 100g support for
> > offload protocols")
> > Signed-off-by: Alexander Lobakin <alobakin@...vell.com>
> > Signed-off-by: Igor Russkikh <irusskikh@...vell.com>
> > Signed-off-by: Michal Kalderon <michal.kalderon@...vell.com>
> 
> Please don't wrap Fixes tags:

Aww, second time in a row I fail on this. Sorry, will send v2
soon.

> Fixes tag: Fixes: 79284adeb99e ("qed: Add llh ppfid interface and 100g support for
> Has these problem(s):
> 	- Subject has leading but no trailing parentheses
> 	- Subject has leading but no trailing quotes

Al

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ