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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220520095010.0f85db7f@kernel.org>
Date:   Fri, 20 May 2022 09:50:10 -0700
From:   Jakub Kicinski <kuba@...nel.org>
To:     David Laight <David.Laight@...LAB.COM>
Cc:     "davem@...emloft.net" <davem@...emloft.net>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "edumazet@...gle.com" <edumazet@...gle.com>,
        "pabeni@...hat.com" <pabeni@...hat.com>,
        "jesse.brandeburg@...el.com" <jesse.brandeburg@...el.com>,
        "anthony.l.nguyen@...el.com" <anthony.l.nguyen@...el.com>
Subject: Re: [PATCH net-next] eth: ice: silence the GCC 12 array-bounds
 warning

On Fri, 20 May 2022 12:58:35 +0000 David Laight wrote:
> > +# FIXME: temporarily silence -Warray-bounds on non W=1 builds
> > +ifndef KBUILD_EXTRA_WARN
> > +CFLAGS_ice_switch.o += $(call cc-disable-warning, array-bounds)
> > +endif
> > --
> > 2.34.3  
> 
> Is it possible to just add:
> 
> CFLAGS_ice_switch.o += $(disable-Warray-bounds)
> 
> and then ensure that disable-Warray-bounds is defined
> (and expanded) by the time it is actually expanded?
> This might be before or after the makefile is expanded.
> But it would mean that the work is only done once.
> I've an idea that 'call cc-disable-warning' is non-trivial.

Happy to do whatever's recommended but the $(disable-Warray-bounds)
does not work, I still see the warning.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ