Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1346209rdb; Wed, 20 Sep 2023 06:52:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHSG/IUnwWhIgN0V5SPQQZ93PTRPpSIvaqoQ/Htm3npjaDTb2QX0vbf06aYzpO8hpAzwF9R X-Received: by 2002:a05:6a00:b54:b0:68e:487c:c4b7 with SMTP id p20-20020a056a000b5400b0068e487cc4b7mr2793476pfo.11.1695217937350; Wed, 20 Sep 2023 06:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695217937; cv=none; d=google.com; s=arc-20160816; b=RFPj1DMB4Bh0SRlyQ02g526Y8JZxLhtBur9qAjqTJKkxtYJq+Lgk6IorvDRCA2u5fd 5GL/Y+5MtpkKO/RAA5jpG03DIkJogWUZBWHZHUylOOcM/hh2E4BUCBm4hICFRuQZ8OC8 YHMPeF3VjJLKh1i5AbpYiwjyCB2OlZOVtwxdkj/SWCLyAvuKhopbGhe1x60e0oJvlueF s52e/GneF71IlGYHfYWcnkUzHQrreSD6zu9uDaiy//KFlxhbExfkdmhK1LEzvWhPLXxG VXR3MkUvwzj3St4XOImjo4dIgxhRj3bIzScKdb3VJVkIj+pC2klKU8kSki+/3TQgUvCO Kv0w== 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=FcYO4MljSzw0MGKyWqgRUwo8L8YLEefpBgIbqihmTpQ=; fh=xvLIIjrCKtxGrcmIRryI8L3jLajytLK96nxJTOpsY3w=; b=hD8IL55ZofBZqP5FRuFjxDCm/D8qlXam5eitLILNFyaZ6ZGLfuIONsP6Sb9u7zgzRG G4iLJKeEacv9E+nk7odj3mH/xLRYpinwGLK3m09KNjbDn2iPpVMYExna60Ov7mss27dq cSwkN5HE/98YeqOObKFwp7xfgdPZmPa9mkfZXcW6OhqoaPC/QBnMzijwp3hE7yccz1AW mNhoDHGjFif/e9cZtC2UXmByLRoxlLDa1fgPO+vx1PuM7H+AoDUM4BK29Zu6FcWL+hY1 fnpZCysj1P37mcFoi1rnJSIxLw8WVepAe3qyqVl7X8U87uLfMaNBaiyPEmT3d4th9ZCQ 8cdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HYPx5Cw7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id z6-20020aa78886000000b0068fbac77dd0si11931756pfe.226.2023.09.20.06.52.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 06:52:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HYPx5Cw7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 369A5832C9FB; Wed, 20 Sep 2023 06:38:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233993AbjITNi0 (ORCPT + 99 others); Wed, 20 Sep 2023 09:38:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234884AbjITNiX (ORCPT ); Wed, 20 Sep 2023 09:38:23 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 713E8C9; Wed, 20 Sep 2023 06:38:18 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D8A0C433C7; Wed, 20 Sep 2023 13:38:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695217098; bh=MyCAno+Typ3Yr4BLMU6h3QlWS7zHWSznNBq20IG/hZ4=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=HYPx5Cw7siByQfRBmkfiJTGU5/KSdXUe/j1JzXgKgppFCoVKP66HFQzjd64sQeJpc VlHht7kihGKDlwmVgvwOeI4Z1X3SLXX60sr+PTYw3cw1qgfWyT4+ePPLS3MNMmY7NU 9soxYAvvyL1QEBhiiWll89mC77slQPV6UyRtE9SrijgovvPAYz+vS8PlMqm9xCqq02 b2jmvtLACPXjFQlLOS5BqrP4WmNeF22abOfpBlKaAas9tzlO2amypxoy/fpok91LE2 7VT9HJbRgHkABUBGS4HCjU73momCRPHXRQV6OiqXRqxWHb6YbrjhGDK6cKfmYv/NTZ gLwxMUIHkc+2A== 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: <20230915200955.never.871-kees@kernel.org> References: <20230915200955.never.871-kees@kernel.org> Subject: Re: (subset) [PATCH] leds: el15203000: Annotate struct el15203000 with __counted_by Message-Id: <169521709594.3441150.12806820197236573672.b4-ty@kernel.org> Date: Wed, 20 Sep 2023 14:38:15 +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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 20 Sep 2023 06:38:32 -0700 (PDT) On Fri, 15 Sep 2023 13:09:56 -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 el15203000. > > [...] Applied, thanks! [1/1] leds: el15203000: Annotate struct el15203000 with __counted_by commit: 1d6d5c03fabeb5e5bb7fd7ac3319a8c5471be9e8 -- Lee Jones [李琼斯]