Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1058426rdb; Mon, 19 Feb 2024 03:01:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVS9/Zjl3UaP2J98qkvpHzziW8Nf64SUD5Xf2r/ZuNsjaP3DIOM2TiycLlaWNvM/Hsi/0KqJHNsIU5t0kRemcCErATkJKOTT9P+Qs0pgg== X-Google-Smtp-Source: AGHT+IHsMQwAtFmu8q/xacv65VElqGecr8EDFFldf2NQF3n1B1xwQGNx8532FOfN12CeFXlQwpcq X-Received: by 2002:a25:d6c4:0:b0:dc2:5553:ca12 with SMTP id n187-20020a25d6c4000000b00dc25553ca12mr10525570ybg.14.1708340468274; Mon, 19 Feb 2024 03:01:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708340468; cv=pass; d=google.com; s=arc-20160816; b=yo8gGiuJ9yRvWyu+ipfZ6yAjRLYiGhQ557LDghhD42gb0U5Ejbt61flWmdPpCc6QZQ 4r6f23Nb+3SUPASfCJ+zgi3s5ybqu6IaF3mpStw9cBzDAQyhiUvxdhfSxqwLe+AUxZb9 6BgpG3DnybTes7I2S9h0jUdVlbLWfW4S0cYdqlPHQLdyH7vaG8B7tl9T1Dk6srPwW76N XnzkMHMJzOmRnPjT4dKE/Ohp+mMrf/NXTK8PoDR97Ek6agD23mrYgM+gAKP0LIgplBkn jNph8qWgBK9m6ZiYuljO9FHpS0LKYP0uY34LOvUQwJa4ZZomtb0128rOIZoLfJyBjIS2 uT+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=wtY5OscEZkB4hsn56ucik/ST7GiofPJHdL3Qg+JqMwo=; fh=dProsRtYfO8/dKDdsIwR8v/N81kGUr8ffsthuT+S+ms=; b=D/2JxfC54lg0be/NR9fMCXy4qLxQa5A/oMsRatUus90+5bx0V1cMHJa/ZmoVKICVkq UFmhAvuB1XSUEPQ7rqAlJDruDr7ap9IQ+qx9qhL/G21KQJdP4Zf2tsUvS74GvQCaEOZg kxjoFMKbAD7t2QNTN+r1WM8AVeyQ8BsDV8uyga6A/sOVAMrc6NZ/iLb6W5Wj6L8LmTMU FCq4bmRsZl74Lhohq4kG9/EATcCoV+wi5w+AYXeov8qIttzPV5JuCUzfcc+McWdPdyi3 omXrW4octR8CncrwTOfNshNiL11J+IJ4PVitkOnJRzfvKmNqqlqSHgOiUy138mXhDQ9Y NHBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c9gYk8je; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71167-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c29-20020a05620a269d00b007871fec8208si6537481qkp.477.2024.02.19.03.01.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 03:01:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c9gYk8je; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71167-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0C3A71C217EA for ; Mon, 19 Feb 2024 11:01:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 523A02C6B2; Mon, 19 Feb 2024 11:00:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="c9gYk8je" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 609962C1AA; Mon, 19 Feb 2024 11:00:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708340426; cv=none; b=DZglIKlBaQtLe4X2xZFrRj2FOVfBFJmMAMOxISgx5vM+3TT6U0zUp3xfCkh4zBC+cTgeEr2yaLRlEgrtiCddjlUuqHsT1s294+teVyzsioDOkDwNutoacx984d01dktpRChPLZYtuDl9txLqGkHSCFiiHC2bZmXDnx4Fu/hFzq8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708340426; c=relaxed/simple; bh=uvA9+6Dw90IYg/Zyk244coxsLVp6cYV58Ros7J2iFVY=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=U/pwj2524sN3MQQuT7zcX8Pk9t1ZaKO37GdIwsD8GlBTt/lFCQ1vvioSpH+fT9orqX1jZft8dXoBJd8bG4opfvbwRVmnRZvwxbkYyHtAPvaMhYRr8wb/8hsJAY9RrdCn7Q4uJdQ7PFPHeP0PLVXALAiPC97DLwqSXR/sZP72Kc4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c9gYk8je; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id E03B8C43330; Mon, 19 Feb 2024 11:00:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708340425; bh=uvA9+6Dw90IYg/Zyk244coxsLVp6cYV58Ros7J2iFVY=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=c9gYk8jeBAlGoKZ43r7vGX6dsYF9PppEMzdgBg8Xb4YsjydCQ/kdDQUIp3ARocahj hik9ULU0JYZ8DnK0nXiFziLKVAAeKeYhhtEO3dGzBvRLF1BO/6pWXghZsIBMHBlmfd H84FyCAFAN3RTQMv0BbsqupHuz4edg24bvGfhIcrF6lElwqxQ5s2+rNTQ85boo9Y88 Nmmh9/99l05RB2F2Xo8mdjQjLluPEpAuQmHq6SsNGQixCuqa3UPKM/xmFd59H68sME XiRGKdRViYTJIcHYRkkRYIh3MpfKmd3X2tmObGGv1q4NxVLOHmsCj10eBGm0WWVim4 GZcdLhjyTP/ug== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id CCA59D990D8; Mon, 19 Feb 2024 11:00:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] net: sched: Annotate struct tc_pedit with __counted_by From: patchwork-bot+netdevbpf@kernel.org Message-Id: <170834042583.18215.251918949799805641.git-patchwork-notify@kernel.org> Date: Mon, 19 Feb 2024 11:00:25 +0000 References: <20240216232744.work.514-kees@kernel.org> In-Reply-To: <20240216232744.work.514-kees@kernel.org> To: Kees Cook Cc: kuba@kernel.org, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, gustavoars@kernel.org, netdev@vger.kernel.org, linux-hardening@vger.kernel.org, nathan@kernel.org, ndesaulniers@google.com, morbo@google.com, justinstitt@google.com, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Hello: This patch was applied to netdev/net-next.git (main) by David S. Miller : On Fri, 16 Feb 2024 15:27:44 -0800 you 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 tc_pedit. > Additionally, since the element count member must be set before accessing > the annotated flexible array member, move its initialization earlier. > > [...] Here is the summary with links: - net: sched: Annotate struct tc_pedit with __counted_by https://git.kernel.org/netdev/net-next/c/1e63e5a813fa You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html