Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp185373iof; Wed, 8 Jun 2022 18:57:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdKpgHXFsrI+j4OauYkFjE6QDfm7Ob03i8OxCjNAAvCU8jCnUwo51gOhUB4lvcLY0Rt9D/ X-Received: by 2002:a63:28c:0:b0:3c1:6f72:7288 with SMTP id 134-20020a63028c000000b003c16f727288mr32184367pgc.564.1654739850007; Wed, 08 Jun 2022 18:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654739849; cv=none; d=google.com; s=arc-20160816; b=YigfqUxDt3egMZtwPVkIz8ix5PvgYzKmeEPRttFkSHMrmzFR5o0oMyDyB4TOc7eHiv DSHhrLtrYzuTSmbbwj92NpNkH75tXWIM3bqTMU/arDfYuVugM+r3vqzWUiNUog43IhOz qMRMnTLRyHb1F+JGcKwURpuHGKOxNPLi2oN4vQs+xkKh/3EmCBb0LKTGoso2xbn0LW0S Pn7P1DzWHPXRkCs+UyNTGk0BAxSGKetrmnUz6JhX3xQR4eUF7OAhlps9dxHuKU6kjlde 9K8gZ/cIckOpmU46Ns8nXDeFuJUROtbBg5jkKu4zLhtaCWW+EVcPpIaL1nJPguO/JqLL aQzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NfMuADiFFvnqQyO3r24ufd7TKgEd1X5aHVOraAOXhgk=; b=mFa7nR4QyuAqECv+Aq+i5aff5L5uuMnZRubkH+Gr/Kkudp9Ck6UFze2lj3o7lfKzkr 8tV3zMHUQi5oinJIOnQQbrZ3vWdMZToteySwUtBzdcQWwT23I5+2T6BiG6moFJbMM1zM m5lkVP6dzjyjf322BJN4z9+/wpRBFq0pEmuhGmTvb020qIyklrD6gqlwaB7iiwJDl6IS aZ5F6fkcUHY9TrbpBrh81EDUR/G7wFY/idkORRQrZdlLALbK3U21brQdLScD06o5WfJJ jBxolvpSMkTUzwJLou69Tqqp4L4DJxSLAKtnuS18VMS1pJmh0l15ahmHq6h5rgj7hUc7 ZbGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=NR+nKQke; 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 185-20020a6206c2000000b005189b83cdbcsi28444746pfg.61.2022.06.08.18.57.16; Wed, 08 Jun 2022 18:57:29 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=NR+nKQke; 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 S232850AbiFIBWm (ORCPT + 99 others); Wed, 8 Jun 2022 21:22:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbiFIBWk (ORCPT ); Wed, 8 Jun 2022 21:22:40 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B87B2BE19 for ; Wed, 8 Jun 2022 18:22:37 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id q1so44634948ejz.9 for ; Wed, 08 Jun 2022 18:22:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NfMuADiFFvnqQyO3r24ufd7TKgEd1X5aHVOraAOXhgk=; b=NR+nKQkeYzC9xA1U3BKfQCA9PuaPmbs8u2UPCtdg9YDYgGVsw1Dg2966hthVHnKni3 /98YV3cjD2fYcieuXtT3Q1VYXiLfNXjnXaTn2GSmd288P1m1khn/qNfwvdDEby4WVMAi E3QnRNgsE1YNz4VmvdCTgYX1GTsiaiWCGJ5i0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NfMuADiFFvnqQyO3r24ufd7TKgEd1X5aHVOraAOXhgk=; b=nMcvvDzMLECbdoXzMHbRZ5UsFMzHYP+CMVsULWzvzF2Mg1FBwtYj6gqc6OMw1xM0A/ lDtChytZs120MhjlM0SLPxPnSpetzpNUSfbCtB25rfmA4o51X+6IBqJXIXSxMAfKsUt9 RNnyDBOQWqQSlLR/YbnNkX2F+xnPcgXw2lYdRknSrOr/PasikhASOF1aSr6DiIDINLjS aPH+pObixRfBDYgb4MyM6MC1AZlvSHkRF9tyVvttzqPXoyjzIAUYQfvQ5d4zXoLPdAuj /U1uyGBgHz+Xqyl/9oJRRqJC3bc++LDmaiprqSx3t7xSc06zw8u3dNivSOIH9Aekwhxo sYYg== X-Gm-Message-State: AOAM531DZXf7PFCAsesxHbHFkYGzpr4IoUjDsfzVal95moGuquiXFW+8 E7HYhol5G75xvYYvwjYg5vz0Ki9K2YSQKE3v X-Received: by 2002:a17:907:2d8a:b0:6f5:df90:45c4 with SMTP id gt10-20020a1709072d8a00b006f5df9045c4mr33041753ejc.662.1654737756021; Wed, 08 Jun 2022 18:22:36 -0700 (PDT) Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com. [209.85.128.49]) by smtp.gmail.com with ESMTPSA id e2-20020a1709062d4200b006fec2097d53sm9973886eji.118.2022.06.08.18.22.34 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jun 2022 18:22:34 -0700 (PDT) Received: by mail-wm1-f49.google.com with SMTP id 67-20020a1c1946000000b00397382b44f4so11908393wmz.2 for ; Wed, 08 Jun 2022 18:22:34 -0700 (PDT) X-Received: by 2002:a05:600c:4f0e:b0:397:6b94:7469 with SMTP id l14-20020a05600c4f0e00b003976b947469mr693188wmq.145.1654737754130; Wed, 08 Jun 2022 18:22:34 -0700 (PDT) MIME-Version: 1.0 References: <20220422134308.1613610-1-svens@linux.ibm.com> <202204221052.85D0C427@keescook> <202206081404.F98F5FC53E@keescook> In-Reply-To: From: Linus Torvalds Date: Wed, 8 Jun 2022 18:22:18 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] s390: disable -Warray-bounds To: Kees Cook Cc: Philipp Zabel , Shawn Guo , Sascha Hauer , Fabio Estevam , David Howells , Sven Schnelle , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 On Wed, Jun 8, 2022 at 5:39 PM Kees Cook wrote: > > I'll take a look; thanks! Should I send them back as a pull request? That would be good. > Yeah. Happily, this has already been solved, but it looks like David didn't do a pull yet for it? > > https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=fscache-next Good. > For gcc's UBSAN_SHIFT (I typoed this in my first reply) bug, netdev has been moving it to W=1 builds on a per-source basis for the moment: > > https://git.kernel.org/linus/e95032988053c17baf6c7e27024f5103a19a5f4a Ugh. That's sad. Since now the gcc-12 misfeature ends up biting everybody else too. > Perhaps these could be even more carefully limited to GCC 12 only, using the Kconfig you suggested? Yeah, I'd rather just say "gcc-12 gets this thing entirely wrong, let's disable it there" than disable it for compilers that get it right. In fact, I'd rather have that global "gcc-12 is broken, disable it", than marking "this file shouldn't get checked" kind of logic. It's wrong blaming the C code, when the compiler is doing bad sh*t. Linus