Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3094335lqp; Mon, 25 Mar 2024 21:19:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXui2ONfCQ8DSw7pdcHMkwZqihQ2MV1eqdf0d0OJE+YdFDyezqeSgFJV0JNg7s8PW7NlHTLrqUPtkBGhj0/gIUqsvO49Jvwm0AueyrGNg== X-Google-Smtp-Source: AGHT+IFEQqziBu/FzWnE7l9u3ludV+wreo6WP0IEkG4cJgPS8snksTBWkpyXbwwC/kqrf6MhK0Z/ X-Received: by 2002:a17:902:c40c:b0:1e0:c3b5:196 with SMTP id k12-20020a170902c40c00b001e0c3b50196mr498129plk.20.1711426795890; Mon, 25 Mar 2024 21:19:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711426795; cv=pass; d=google.com; s=arc-20160816; b=S0w1/eiECJ6x8LH7cuxU5LaJR8/h8j4+3i/7gQYQ60SY8ovAZS+h+D2dzbrME8Do4O WWdq3GUes1064MoCNWk3COlC2/FWlBrT1xiIa38DZbqSlMbN5kK9I7RGpIWkqrUuli4u ynW94OgIuWF/ezj3RVA1byaCVHUYp2lDCvV48G0pNsm4nfWlP7UrTEBV3l4mnLhtuTws mJs4NXv6h2jhKJgNGOFoHi7Vg7e+pjt7+rlBSHMbe+78sfm+tYZnT4M3MLAT16FHTNWh Afa8xfVRl2KBbPMlvrjDmVC53+Wf4xQCxrca5Sk3jHqvz/j3dm3yuRWff33bH76jMTlU Ob4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:feedback-id:dkim-signature :dkim-signature; bh=TT6J81xAiZUuDsQWd9ABaj4hlEzDlXvyJDw3uKeZE4E=; fh=9TXCOFVlj0+9o8BrobYCIW8j6Xh40qLFDzbWo1FywjM=; b=Gdahljb8F+GJwVOHUFFc0R6G8wj7HQH7BXlG795N7Z5htpcxiR6PKlHg2UrEthd1PS ceADz1hzW1v7mncVa7oSTaXkDbxjswamhObgS0w469O8en/C447lPtsYzThFQeyexpVb kEg0keBVJLu1tKVFABwU0ZVJNO5YrEXJn2Cx2PA3h1HV1waYJN+iWqw7RaLVn7mHqrPZ 6b4gvxyKoSaL9fQQZw081PhCmOZn7Jff1L1Gt1C1au5hpSKCa86u9rlhowKm5B/kYAsm fPD9DgMQnJj4aS9pDJysmPkTSdQemBCBoIygzd/C6qI0ik7QOjV2aKZSLzvqKOpJBCnW VYvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm2 header.b=d0XGAgRn; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ofr96o99; arc=pass (i=1 spf=pass spfdomain=sakamocchi.jp dkim=pass dkdomain=sakamocchi.jp dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=sakamocchi.jp); spf=pass (google.com: domain of linux-kernel+bounces-118356-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g20-20020a632014000000b005e49f54a865si8662187pgg.29.2024.03.25.21.19.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 21:19:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118356-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm2 header.b=d0XGAgRn; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ofr96o99; arc=pass (i=1 spf=pass spfdomain=sakamocchi.jp dkim=pass dkdomain=sakamocchi.jp dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=sakamocchi.jp); spf=pass (google.com: domain of linux-kernel+bounces-118356-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 82A972C1C47 for ; Tue, 26 Mar 2024 04:19:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D780412AAC0; Tue, 26 Mar 2024 04:19:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="d0XGAgRn"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ofr96o99" Received: from wfhigh4-smtp.messagingengine.com (wfhigh4-smtp.messagingengine.com [64.147.123.155]) (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 6318D21353; Tue, 26 Mar 2024 04:19:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.155 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711426789; cv=none; b=NaruWN7mWZ5M56mBoVfNcwhaAv7HECyZg5Q4K18wU1tURtrrCUpmKGhYUPyN+tRPRVE029sOQvKX+DQKFhCfotO+4sjZ6Y4D94okHocyJILu+WCBUCsjbocJLpIHDScHDOzgtuwzsbL33twOVnGEOdNe90fSlaQwQpNccBsOFQo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711426789; c=relaxed/simple; bh=9QLdc2K63VnoKqFkK5mVPbkfNcY0gFA7MHCGI4J+NHY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=H0gIu8sOZLLy+Za0janknr+rYc7BrFxccBY1X7j7rF8/Myua5b9xRKQEC0nKynd3WCy6WbEsxRlSGDScWe7fbN/nD/QICHNzNyByNWDCEO9JQN96iQW/5njZWKv5bBzacbnMLFo0DqKYpa6PISTopm7lc11j9sXmsFV4hUTKm1I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sakamocchi.jp; spf=pass smtp.mailfrom=sakamocchi.jp; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b=d0XGAgRn; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=ofr96o99; arc=none smtp.client-ip=64.147.123.155 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sakamocchi.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sakamocchi.jp Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.west.internal (Postfix) with ESMTP id 30BAF18000B9; Tue, 26 Mar 2024 00:19:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 26 Mar 2024 00:19:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1711426785; x= 1711513185; bh=TT6J81xAiZUuDsQWd9ABaj4hlEzDlXvyJDw3uKeZE4E=; b=d 0XGAgRnUX/SpXskLPOgDm46idTKhNSW8mQ2EmXy2f7AvQ9tZfPAsWymBmn+QlEE2 IllDpgcXbQnRffR/mu+3MYRSET+8MnkFeemg+C5gye6XCQWSulycctKArNLyqCKs 8dvpsAmxoUDTyCu14m91Hg6MNPol6wiAEtx8d+LbdXY5Z+oqpxACtiLx2GqpV9r6 6d3DRkGrhrtnzE3WnkdXaIvyifhoEKPw0qM3F6QP/iloPNHx58ISuj/48FCnnNQi u/3S1rzeOWJP7LjcOlAeHzs4PCntdxSfiV2fRXydicX95jonnFDvjZ6VlgtR6tFH ocJmE/d2DFux0I+HdR8uQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1711426785; x=1711513185; bh=TT6J81xAiZUuDsQWd9ABaj4hlEzD lXvyJDw3uKeZE4E=; b=ofr96o99qsHLVlNXCAZyd3LU9JEseKIHMv7eC1RMVS5e +EDWxzZmh4NB0MUFJGQa6n4npCwoUMr01D8ZOT9reorLlV2NAPPemkiR4SiNLTvF LT1V89Q+Krpu1+eOmxwqeIuNrX9dHVTyMOat7hMDvBjiiN+SpKdpMhebtZywy98G CW5e7mBoP4SY6VU8OJdpwgyyNhW/cGMRfCIXMx4VNdy6EGWT3ufgpWtsQMs9aCRz ZZ3Hbi7VK/1A1Ga7Sd93PZcGkTTQvMdZpbXYUBfWXQYQW5m04GGALYbkqHXf9Efs Z65ssIdOaQ2iSuMpru1qoiNeb3z9CUWck61fODzA1w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudduvddgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpefvrghkrghshhhiucfurghkrghmohhtohcuoehoqdhtrghk rghshhhisehsrghkrghmohgttghhihdrjhhpqeenucggtffrrghtthgvrhhnpeehhffhte etgfekvdeiueffveevueeftdelhfejieeitedvleeftdfgfeeuudekueenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehoqdhtrghkrghshhhise hsrghkrghmohgttghhihdrjhhp X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 Mar 2024 00:19:43 -0400 (EDT) Date: Tue, 26 Mar 2024 13:19:41 +0900 From: Takashi Sakamoto To: "Gustavo A. R. Silva" Cc: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH][next] firewire: Annotate struct fw_iso_packet with __counted_by() Message-ID: <20240326041941.GA122990@workstation.local> Mail-Followup-To: "Gustavo A. R. Silva" , linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi, On Mon, Mar 25, 2024 at 07:56:10PM -0600, Gustavo A. R. Silva 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 via CONFIG_UBSAN_BOUNDS (for > array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family > functions). > > Signed-off-by: Gustavo A. R. Silva > --- > include/linux/firewire.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Applied to for-next branch, since it demands no code changes to the other subsystem. Thanks Takashi Sakamoto