Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1344721rdb; Wed, 20 Sep 2023 06:49:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHSFRj32gD8AElxGa427afzJ3usxIGLgAgobIJX/3UYXHlHIAH0lV3LjX4/J6OGbuU2mahD X-Received: by 2002:a05:6a00:2e20:b0:690:c887:8cd8 with SMTP id fc32-20020a056a002e2000b00690c8878cd8mr3263254pfb.32.1695217775492; Wed, 20 Sep 2023 06:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695217775; cv=none; d=google.com; s=arc-20160816; b=XQe1+8wYKJTHmVtaFb0eR/h1ZVZc1df7BLd6A0dYNoO/7JXMXuqV8kGSAr/2Hg4hRp RquZnOJQE0urGiGHm+QpEH21w+Rb+BTQjG/OcMJK/DBKHhvaGZ5meK9X9HkuvbsyOiOC GvYq7KX4qseYiLDsaKdT9ytFgcx5FerRDY3nf/yZe/oA833MGvgI+irU263jram+C3ht FLq4ktD8upapbeXgif9k3TSfo3ozesjuZgCKit9xGz3NP3hT+iBQnkRUaFdiH48jLspl mq9djWpzRnXODGocwZ8Whfm9Vy5cOBxLhFf1rPce4qSdHquLmtQs+GpXMAhJMZ7935Kl cRwQ== 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=C9P+0ThnhHInVRDyI3tBhJxnuerml6KdyQF2HavktsY=; fh=xvLIIjrCKtxGrcmIRryI8L3jLajytLK96nxJTOpsY3w=; b=XJCPXWEgk0wJVAuAMTENkXvnaIGaaEjClRagB35Zhxze8X+n7rtE/JwIrbJNiNecYs mvwPPsvkmgdCFl34kjNfEeBoIhyojL9ka6hnqyrMTmivTCWXXBh6ghE5S2yT+V9z+AzM 2FVQ8E1f1morlA1vkLn487zlbDc8lU1gBsS89y1OZ9THgywS1zAiOefbIn9U6Ovb1Xhl qgMVhpHSaUPsi6Dse70V1tdk7Cexr9LSR0HoW6tpYFN7JjX7qARgAQZLPsZy6O+7QJ6V imLv60R24Vhl4b+8Kw5UfPLAS4J8xtHz1ZtSxPHtO697uaQjDnZsDNj+o6PZwogMC6c5 WDFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PoUwz4Fh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id i135-20020a636d8d000000b0057749f3cbe1si1229739pgc.673.2023.09.20.06.49.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 06:49:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PoUwz4Fh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id F058E83524C8; Wed, 20 Sep 2023 06:40:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234946AbjITNkE (ORCPT + 99 others); Wed, 20 Sep 2023 09:40:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236133AbjITNkC (ORCPT ); Wed, 20 Sep 2023 09:40:02 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19AC1A9; Wed, 20 Sep 2023 06:39:57 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFFC9C433C8; Wed, 20 Sep 2023 13:39:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695217196; bh=Z6ejmmjRTjZqLnbvfZ8oZxem+kdH68CzZ5r8tDSPkVA=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=PoUwz4Fh01i0saDu8+MZ160+t4E0BW+Kol97RGoAA7DHTezdDsrSPp5MD7uy4sd1l ThDbzIakglaWQ6GdDPV0NoH8o/EqV1yGAxaq5eRowqotGOz4crQehkoSZt3620c2wZ 2MK69ykqngfoIdNC4qTHijpVSmyWqmzKR6hllz0Pl3ORhTTC0zmvc8FFYe6cv6sQnA 5CqTqmul+EnIMz5WqkBoGVKZilx65+HJ0I+h9OuauPSHOuQaDcsB8Q252jwWVIkAO0 D0MBDEjSWCEG0lfvMGDK41Z1O7QdHF88jPEsiiG61VjS3BsP6o45U60dN1zzp4Uu3T mpCo3Gi6ZAEVA== From: Lee Jones To: Pavel Machek , Kees Cook Cc: Lee Jones , linux-leds@vger.kernel.org, Nathan Chancellor , Nick Desaulniers , Tom Rix , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-hardening@vger.kernel.org In-Reply-To: <20230915201010.never.399-kees@kernel.org> References: <20230915201010.never.399-kees@kernel.org> Subject: Re: (subset) [PATCH] leds: lm3697: Annotate struct lm3697 with __counted_by Message-Id: <169521719452.3442331.11802360098056654412.b4-ty@kernel.org> Date: Wed, 20 Sep 2023 14:39:54 +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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 20 Sep 2023 06:40:14 -0700 (PDT) On Fri, 15 Sep 2023 13:10:10 -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 lm3697. > > [...] Applied, thanks! [1/1] leds: lm3697: Annotate struct lm3697 with __counted_by commit: 1a210f7d060854f541be9a613bf942849fd5c0b5 -- Lee Jones [李琼斯]