Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp265641iol; Thu, 9 Jun 2022 03:32:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSN2BhNHXHdaaAIrFT+FNKxblfbOA7ZepBKYYXS7MF/BF01bM8E1eoa6FoQOvY7nqu6ptS X-Received: by 2002:a17:906:149:b0:712:c9:7981 with SMTP id 9-20020a170906014900b0071200c97981mr3664918ejh.218.1654770742071; Thu, 09 Jun 2022 03:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654770742; cv=none; d=google.com; s=arc-20160816; b=hODsEMv5vTVywFTrQg/jPS1LrdEykxe49aAaq2rZ4kRIuL5sn1c0LpowH/oJUQoF2o r5NSGgkyQ9fW2DkW173Vt2f+RCpsyvZbPpS/ppfFYcghGUUA9Z8Q88TWJfkqcteqmwOS Fl/yxnS6fjp/BmwAHSN5odW/6vnuHtWJ0uGNaQJW5fc9TY3+lBtN3uysYeOI4s/wFpzW NDKBJIL3dk3E7OY/UA4imk31oe2pMWCghMiTSDHKuMwfyA7aO6N0z2i0gv4FCIWrN/Pl oRri6BIiUDTSjxtBuuQkQ/NOSksDLkV+aQmUJ0lQ0ZJqIipbfX/mx3K3JbRzGWCIrABq EYUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=rwiUKVQYOmZGvZn01x9cCwK4NMhrZ+E8YN5KbxPO4Ok=; b=NovWlpvjWbFuYyOpt4rX/GgFiA8q0DOdAhNoSgQK2lqwc28/Wlc2y9Op8tLENqOuDs FVgcxXsKriRDGe9pxuq53mV9xQ/axqMvJwwOADNN6rt5kOUsEmSNUzaqn+WllhJpHDu8 f9cstMKqVwmh0RmSDiXcPbY7RqzrX3XY/9mEFlW5VAHzGUk0ZZSj1h3PS61slJczvfuK UUeos9gh5m7K1UAptn3daNrH09DakxUPjITUd/4U+N05EGChiUgmXCoKADD3coUsA0p8 4MwDBVThb5BRCvCsIxdozNe5IdUILJYhROzoBmyZ3vZ+fw+CWDlDI1yAhMm5+77CBTb/ 9ibA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o11-20020a170906974b00b00708423d4250si4470684ejy.228.2022.06.09.03.31.52; Thu, 09 Jun 2022 03:32:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234707AbiFIJ4c convert rfc822-to-8bit (ORCPT + 99 others); Thu, 9 Jun 2022 05:56:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230164AbiFIJ4a (ORCPT ); Thu, 9 Jun 2022 05:56:30 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1B6539F24B for ; Thu, 9 Jun 2022 02:56:29 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzEtl-0006P2-4j; Thu, 09 Jun 2022 11:56:17 +0200 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nzEtk-007M6H-ST; Thu, 09 Jun 2022 11:56:15 +0200 Received: from pza by lupine with local (Exim 4.94.2) (envelope-from ) id 1nzEti-0003tx-Q8; Thu, 09 Jun 2022 11:56:14 +0200 Message-ID: <236b39507da31d80a948fe308f515587e96c28de.camel@pengutronix.de> Subject: Re: [PATCH] s390: disable -Warray-bounds From: Philipp Zabel To: Linus Torvalds , Kees Cook , Shawn Guo , Sascha Hauer , Fabio Estevam , David Howells Cc: Sven Schnelle , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Linux Kernel Mailing List Date: Thu, 09 Jun 2022 11:56:14 +0200 In-Reply-To: References: <20220422134308.1613610-1-svens@linux.ibm.com> <202204221052.85D0C427@keescook> <202206081404.F98F5FC53E@keescook> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, On Mi, 2022-06-08 at 16:59 -0700, Linus Torvalds wrote: > On Wed, Jun 8, 2022 at 2:33 PM Kees Cook wrote: > > > > I and others have been working through a bunch of them, though yes, > > they're not all fixed yet. I've been trying to track it here[1], but > > many of those fixes are only in -next. > > Hmm. Even with that disabled, I get a few warnings I *really* would > want to get rid of. > > The one in ipuv3-crtc.c seems valid about "address used as boolean is > always true". > > The 'dangling-pointer' warning does seem interesting, but not when the > compiler does as bad a job as gcc seems to do. > > See the attached patch for > >  (a) make the s390 "use -Wno-array-bounds for gcc-12" be generic > >  (b) fix the ipuv3-crtc.c one. IMX people? Thank you, this fix clearly matches the original intention. Acked-by: Philipp Zabel The mistake had no adverse effect since the following condition doesn't actually dereference the NULL pointer, but given the compiler warning this Fixes: eb8c88808c83 ("drm/imx: add deferred plane disabling") regards Philipp