Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3229546rdh; Thu, 28 Sep 2023 06:26:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFOin4fkGjoqX5GgdZRdphw440lHfs8G3oobYXszh+b5vXPzD+xjtiudbyJe2zf8o4+rK10 X-Received: by 2002:a17:903:2348:b0:1c6:2fc0:9626 with SMTP id c8-20020a170903234800b001c62fc09626mr1400535plh.6.1695907608209; Thu, 28 Sep 2023 06:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695907608; cv=none; d=google.com; s=arc-20160816; b=AVGM1l3nox4AnmXUPZV+8Q5tR2IqGqe2YwDxROuR4jGclqf74SaGOAZXzVPudvJM2t Hh44Lnj1fCCctXuPDIdKWyPUZ2EJRO8VOm7JolF3KPWYt/M7M5roSA+GYAf50llQsH8D S3h00Jmj697S90HrZSQw1beTK0W5/dw/+qr3/R7xIVEHxvCix7209NFlnEgDBs0pqahs UYHB8Nl8CkNrMsZvT4VZXXtFjbCgMnURt/LFxzv2TIKyd3iAuE0HPCzW6hinsA/IUbMe dKqDQM95V2OnkwQ7bHYjjbK8h6M5j2NEkJ18H1UO0UJwAAvns8FP/Fs2/TwP90s2iSrW x4MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=en/Ul32xwET7dNe618bEMtg5Lb46t+QWbCGGLAE+DcY=; fh=Tpec1/YshKkqdEjTUtTHPziCbTgMTkW6OLFPboS6cD8=; b=IFrUEkQlFmXU9kJHrT/kJNE2OBECXG6Wcl8vlR5bjXdmJS2x3gLzkpY2sD7hNqUutg 0zTMqx7WkrTTKCYrLo4jo6WdplAbdEnt12kuSHVqE56+P9W6a8CsIkkBmzfeUHmiYSmz B80hG5qPoSq8KzKpIc3mDA7p9y6IcD94SVgTQO31RKnq/5QnO9CoegadcJUGZyWaoUJR A4SB0WLx9n/5mHboalS3MHtKUB80LDwSKRiVHUfdcmLuYknehAqqephGVi3NK5/IDyqw ovTkrpXOlCfBHMM/8TFIsKn1R9FCc2PH/V26TSIvseDaDoh4r/wZoXDpQKEYcdiKI88Q 2TpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O3vMiUmh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id c13-20020a170903234d00b001c1fe58a1e8si10854468plh.576.2023.09.28.06.26.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 06:26:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O3vMiUmh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id BB57980FFDA6; Thu, 28 Sep 2023 06:19:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231774AbjI1NTG (ORCPT + 99 others); Thu, 28 Sep 2023 09:19:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231150AbjI1NTF (ORCPT ); Thu, 28 Sep 2023 09:19:05 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA10F198 for ; Thu, 28 Sep 2023 06:19:03 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09001C433C7; Thu, 28 Sep 2023 13:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695907143; bh=8l855paMpisQ8BnFgqzn2BgtFvGKMSSqtjp/a+DoKxU=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=O3vMiUmhJ7819yHIL0nzq4Rv2vjPxgb/Koexs7YvoV6IpB3qyhDFAfMZthbiSSWwM bdesJ+F0nR4Jce+s18QMncmTmm1hMQIyI5wSHK4B97mbn2kKXOfw1ll+YIWSD+RTO8 O6SV4swKZuYonJW5n0djQBU3xtjVIE6i1lfNe0eWbLqfsmZ4ToesncGn8J4Lhi/hxW 5FXPkc5EaUM9Pwew3WXQN1Hef+dzM6uqVZT7QguVdIOq52jQ67xyB4rws5KUVCYTs8 6XJRh3Zl8/tzSGJFYslkmz0Gfu00fK4TV/UOm8hWzPX7egmwzehy/uFb76SicWsoMs itQgBc0LIb/ew== From: Lee Jones To: Lee Jones , Kees Cook Cc: Nathan Chancellor , Nick Desaulniers , Tom Rix , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-hardening@vger.kernel.org In-Reply-To: <20230922175337.work.150-kees@kernel.org> References: <20230922175337.work.150-kees@kernel.org> Subject: Re: (subset) [PATCH] mfd: iqs62x: Annotate struct iqs62x_fw_blk with __counted_by Message-Id: <169590714175.1589941.812131543584091523.b4-ty@kernel.org> Date: Thu, 28 Sep 2023 14:19:01 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 28 Sep 2023 06:19:12 -0700 (PDT) On Fri, 22 Sep 2023 10:53:38 -0700, Kees Cook wrote: > Prepare for the coming implementation by GCC and Clang of the __counted_by > attribute. Flexible array members annotated with __counted_by can have > their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS > (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family > functions). > > As found with Coccinelle[1], add __counted_by for struct iqs62x_fw_blk. > > [...] Applied, thanks! [1/1] mfd: iqs62x: Annotate struct iqs62x_fw_blk with __counted_by commit: d25fad59146b4fb24f690bc0bedd32a299bc1541 -- Lee Jones [李琼斯]