Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1343550rdb; Wed, 20 Sep 2023 06:47:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwNXfQI87gkNGJnq3C1zIohn3DgweASvMiyEPl+VPTjBwI/PSyJpCl7eie4/gNiYdh2mwn X-Received: by 2002:a17:902:7786:b0:1bd:da96:dc70 with SMTP id o6-20020a170902778600b001bdda96dc70mr1961023pll.49.1695217651332; Wed, 20 Sep 2023 06:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695217651; cv=none; d=google.com; s=arc-20160816; b=tJslP0FQ7pBKBpeoAxWIUGtbRoxfREsTBC5t3sDRSspcCmSjpct9jlgFXfh9XpUCOK aLa3NIbz4URinGZWQ0SvGqfrywvJ/+yNIfh324nsS7Md1yuXYGaxPzbHaHzftc1EbExe 4IdO87cLC+rHjLIg6xqNp/oAKoENEWE9Y+UiR5HLE8r6Ys7lAnxbL4E5lp9lVp+QKN0K e9WVvQRjT8av4RMjvq/zvKmaDQsf1DTOIG2lkWgbTQUucxgw8Vah+xl5pCfrJZLHngTd 5GfrWiBCky2ox1KZKxgYFH7MPiwrJnYdh3M3HKkrYk+vm/IDiAHs6LcffdLZ2HYrgsTS qwzA== 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=tpYnjLQD4A2jC9FcoIOUhx0DqrZozSWiEMdg5ZDXXw0=; fh=xvLIIjrCKtxGrcmIRryI8L3jLajytLK96nxJTOpsY3w=; b=04taEhsVQYgoEoROpua6sdCrDXJawF0vQjjZaPeHy88GBFhPwnTGtrWwCtIIMf4mom AbIpcZ1ktoDL3/jw60afEl2NG7+tQeefKo3s6b6tDMy8riyftcm/s+kbGJmgU5XKI9Ek stdh7ztgNbEMimBS9oDbrhVPVOUeE97FCXCX4+/rkhMj6cqRlgrmKGCGq+Qoi+WcgD1/ x2Qx5F5h8gkglVGmcwIWfRd/ZpfmPU/km3jLCS45EM+EbrkkPzRhZrUVksGKI+biVasc PF8O2929t3yvhiAQAmwOUed2n0Kq+YkOboBMm+PWarWtdbBNNs5hMicyn8TueIEDEKu2 onEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RFeQnBCv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id q20-20020a170902e31400b001c0953d0055si6899250plc.262.2023.09.20.06.47.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 06:47:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RFeQnBCv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 8BD6B8022974; Wed, 20 Sep 2023 06:36:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234875AbjITNgN (ORCPT + 99 others); Wed, 20 Sep 2023 09:36:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234686AbjITNgL (ORCPT ); Wed, 20 Sep 2023 09:36:11 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BEC19E; Wed, 20 Sep 2023 06:36:06 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C18C1C433C7; Wed, 20 Sep 2023 13:36:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695216965; bh=ZxkDaX0Z2lxf8j4cvuVarbFGbN+WP1U04C+ayh/pOro=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=RFeQnBCv2wx9+qW//lEh5zRLWduWtBK1fhB1YMNTtVOA55nrez/NvJrThIFR1veat kWzWF3o0x9wi17/xFQLD/E603t1PafK67N4FCqaim8Xwo8JIP/EJTxKUiPGc589TzS HRPLFFCZGSri9Cs+20bB7rM1IsWdvBiQcdhHqXTXv0RVZSq9LzweX23GOSwqTnlrNC 0wL0y+JSF7qFHb81eaRHi0fhsE3QN/evL9IpjWPd/mgB+p3VA4PpZvxds1NdfBEwgP 5dHBc9S8pf8whTX3YBI+KJRxknwF1dmCKoT3TU5hAj9ji33RTr7lPmXhgq4teHCGas T5hmYA+oRF0aA== 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: <20230915200948.never.728-kees@kernel.org> References: <20230915200948.never.728-kees@kernel.org> Subject: Re: (subset) [PATCH] leds: cr0014114: Annotate struct cr0014114 with __counted_by Message-Id: <169521696355.3440140.11697535957050657885.b4-ty@kernel.org> Date: Wed, 20 Sep 2023 14:36:03 +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=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 20 Sep 2023 06:36:13 -0700 (PDT) On Fri, 15 Sep 2023 13:09:48 -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 cr0014114. > > [...] Applied, thanks! [1/1] leds: cr0014114: Annotate struct cr0014114 with __counted_by commit: dfd75548c30c4a27bcc4c81aed0287d2e8b62add -- Lee Jones [李琼斯]