Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1920126rdh; Sat, 28 Oct 2023 12:38:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMsYWUO+jRB19Qou/7qNMJzllObxASdDJ/jrGjnJfChhZJ0CylSxIQdBR8gAWTjUUy3vHp X-Received: by 2002:aca:100a:0:b0:3a7:44da:d5e4 with SMTP id 10-20020aca100a000000b003a744dad5e4mr6171057oiq.51.1698521904692; Sat, 28 Oct 2023 12:38:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698521904; cv=none; d=google.com; s=arc-20160816; b=oJ01nTJSgTJ8ZNZ4RPMyA/+pihQQy+dzdJybTfFqe4Hl04lpEtVbk78e3ebrah1cSy +t9qItu3K9H/+Y63kykeqIo+pAZbJJb4u/U3eA7iDTh8PS9qpYQMhk5SyEOm1Pd2/ijs dUKdBHzUAdv/shVlAat71/eRWarBM0VcA7Jx3046JL0C7tf9O/B7YPX85urUijrYPWYs sfeuaVYzhN/PbxbGMRs5k9r1tETQ/BMPU4ut8UKWJkqc8OlmMnE/LtryihWPDF+jr1xX STNSgdB1wS7tynbayO9z+2mkj5PATvkyvd+q+C1lgx5xIWmpqK/lPqA25mAxVDCBjFqU LqvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=QpCO1QyuJaAC5PC83erH8OzlntE7Ib+SBP/9JsGIOdU=; fh=KW4ScrQPbEQSr7u0nhI0cKhItemXAa+9wSHlpLdxaL0=; b=D2qttzdNrs+shvwXnDK0c6vad/guXL8+EN7DgKcdxrPUujgQs3gg05w+mbgZ/o0g7E TCD4WGmOEyKc4wx+pbI0CF9ekGfMNvLDJTBnYPF6nNc/E1raaEpqLbDo3oglu2LtfdPG +MbyFkVFY3dAIbdq/WbgJnWxu571vPEi2oYgYc/Svu5LSli93Mdwu1EhiENMKHReGmVj a8IF8GLZv/Wjh+flBsx60leUrFox+4j6fiNdDcjG2yoFFzTRsZjwHS7EmcGAcWFcl/2u Pp5RsSzeB9fQtTB4p/gnqV9O1EIN3J53zlA5U8HmV3kK7AbpWw8ZxqWNe5o5SToMKzlm yzFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@equiv.tech header.s=mx header.b=RyRi1L8Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=equiv.tech Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id w67-20020a636246000000b00578a2da998asi1206496pgb.304.2023.10.28.12.38.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 12:38:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@equiv.tech header.s=mx header.b=RyRi1L8Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=equiv.tech Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 2CAF5809ACAA; Sat, 28 Oct 2023 12:38:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229446AbjJ1TiH (ORCPT + 99 others); Sat, 28 Oct 2023 15:38:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229714AbjJ1TiD (ORCPT ); Sat, 28 Oct 2023 15:38:03 -0400 X-Greylist: delayed 301 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 28 Oct 2023 12:38:00 PDT Received: from rs227.mailgun.us (rs227.mailgun.us [209.61.151.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DB70EB for ; Sat, 28 Oct 2023 12:38:00 -0700 (PDT) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=equiv.tech; q=dns/txt; s=mx; t=1698521879; x=1698529079; h=In-Reply-To: Content-Type: MIME-Version: References: Message-ID: Subject: Subject: Cc: To: To: From: From: Date: Sender: Sender; bh=QpCO1QyuJaAC5PC83erH8OzlntE7Ib+SBP/9JsGIOdU=; b=RyRi1L8YV4voHNNvygx8lmSvTKneaJX/AUti4fYE0W/yb8SuI2kqWMfXgsamLjsghm67T9Gupwbcqw+K/HMBy/sd4143+zaA730bbt2AcnvcVzc4IHHtK9H4zX2AzlL83Rwv4cYRdvcMxeGfwFnxlMRx09mNWzmJCcbPPaYYWFh/xf6PEECKPejSXxD1uI11DBNPCIaXd/SnM6F+ilUP1c0FajNHuuyeHUlV3JYK21cZMfps2nRpWKhxzIlrvtydBfhJViQLIJ74eRr1J94VwZ7Wa8YYLqwPknaM0SBzfVHvRY8IUjS9SZcDaNdKKwT+OQdSiIyo/HSGRALJ12wEYg== X-Mailgun-Sending-Ip: 209.61.151.227 X-Mailgun-Sid: WyI4ZWI3MiIsImxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmciLCI5M2Q1YWIiXQ== Received: from mail.equiv.tech (equiv.tech [142.93.28.83]) by 60615d1b0698 with SMTP id 653d61ea0459d77ac9eb68a0 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sat, 28 Oct 2023 19:32:58 GMT Sender: james@equiv.tech Date: Sat, 28 Oct 2023 12:32:57 -0700 From: James Seo To: Kees Cook Cc: "Martin K. Petersen" , Borislav Petkov , Ranjan Kumar , Sathya Prakash , Sreekanth Reddy , Suganath Prabu Subramani , "James E.J. Bottomley" , "Gustavo A. R. Silva" , MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 00/12] scsi: mpt3sas: Use flexible arrays and do a few cleanups Message-ID: References: <20230806170604.16143-1-james@equiv.tech> <202310101748.5E39C3A@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <202310101748.5E39C3A@keescook> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sat, 28 Oct 2023 12:38:22 -0700 (PDT) On Tue, Oct 10, 2023 at 05:49:38PM -0700, Kees Cook wrote: > On Thu, Aug 24, 2023 at 11:00:57PM -0400, Martin K. Petersen wrote: >> >>> Commit df8fc4e934c1 ("kbuild: Enable -fstrict-flex-arrays=3") has >>> resulted in the only arrays that UBSAN_BOUNDS considers unbounded >>> being trailing arrays declared with [] as the last member of a struct. >>> Unbounded trailing arrays declared with [1] are common in mpt3sas, >>> which is causing spurious warnings to appear in some situations, e.g. >>> when more than one physical disk is connected: >> >> Broadcom: Please review/test. Thanks! > > Another thread ping. Is anyone at broadcom around? I'd really like to > see this series (or some form of it) land to avoid all these runtime > warnings... > > -- > Kees Cook Looks like this series was accepted for -rc1. Thanks! One last thread ping for the Broadcom folks, just in case. -James Seo