From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796301685; b=UFBdAfZiryKZTfey3fmKKJCgkiKb21dLz3mqSnig6EEeJJQa8gb+hpWsraM2Kvq2kNRI UqlCyG/b6CYu4qe0QC7Ops7SaPmf3+PfVPs72UASGFI01Jo6Lxtsd/RPz+oAgGOUtGv60 Vp8mlbhiM4zEoRPwrG4+Nd3OW9QzmKp+3aJ+rsI3x8TVGUbP5r6L7KphiZB3g4XSGzk85 VUdbigcSDvuwvIEQP61ZHUNDcumHbfthk7Rlhk70QJux65VZa+WfNuxYomALM4nsML6sW mpkXoljnkk3Y9ibVuOROFI2bj7rbwBIEF/T3i8oUwjXhhimpS/YGmcG6tlh33hm+9Dg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796301685; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=7wrocvnpn74ydHwFkcF9x/aVR01ggdK31Z1xO8iKl98=; b=bcoKJqKAa/5MydipmcyTGw6tHoK0Jq6rbwEa+KlCJQtnbk4UHQ8Bhvh/reMSAItNF3Zx yln1WAusoDopZ0svq6Ve2oN2D+AjG6wfZQsI+19JYU7njV/hMgySgLzsBRSaeY4uM4JPd rz6iV3AsntaYnBS2T6DUVmWik2CnUH+4JazURz8fQPYFx/auYClb+hHE2k62c09OaQaPN VAVMgSF3z+7TIj4+GT8h+7vA4hAY29XIHRMZLX8R7+0jFf0vSAQ7Tjm1GG5e5dYyg+MqV 17vtSvGBSQOnv3PMDTxoL1+Bunls/uOALXVSGr0LhhWL0w2aX4dDZ5oMitmweNlfMLA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DuXGTZI4; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2F96606A322 for ; Thu, 3 Dec 2026 12:41:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DuXGTZI4 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 515B41F000C1; Thu, 3 Dec 2026 12:41:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796301685; bh=7wrocvnpn74ydHwFkcF9x/aVR01ggdK31Z1xO8iKl98=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=DuXGTZI4wgX6Ux/LbCzn6MyJh8L2+VotG7iBmrNwXIRzVFAk3cMxwjFtKLyke10YR WcYj7xX9JjICqHMFoY28GClu6Zzi1VTz9wDYIcocff+o+m5x/7s3aWmivzGRTTE1h1 BFnWYwWo3SaPbsLbH6eLYP0NQxCLSN8kAvuH9jkfyGtMeuHs2Uo89FGk5Qr/3QZNDL BUV54/8896AZ5Qz6tlEJsHuzf5CQ0TDXOR4wZGvSvDQ5qdPeg2Us29eaU0461ZtYTl h9wB/qu3nbD2IkVjbcPP+JLHixanHN+/ZKBXEG+8h/GI/2buSNFsqVOtqk/hiv2YZI 6X31h56O3tMvA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH can-next v5 03/24] can: enable memcg accounting for user triggered allocations Reply-To: sashiko-reviews@lists.linux.dev To: "Oliver Hartkopp" , linux-can@vger.kernel.org Cc: "Marc Kleine-Budde" , "Vincent Mailhol" , "Oleksij Rempel" In-Reply-To: <20261203-getsockopt-memcg-isotp-v5-3-bbe89b3d3b71@hartkopp.net> References: <20261203-getsockopt-memcg-isotp-v5-0-bbe89b3d3b71@hartkopp.net> <20261203-getsockopt-memcg-isotp-v5-3-bbe89b3d3b71@hartkopp.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 12:41:25 +0000 X-Mailing-List: linux-can@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] can: commit message gives outdated rationale for sk_alloc() in can_create() -- commit e603d95422f672b96579fa75c342a7334df5a58a Author: Oliver Hartkopp can: enable memcg accounting for user triggered allocations This commit enables memcg accounting for user-triggered allocations in the CAN subsystem, including sockets, receivers, per-netns structures, BCM operations, raw/j1939 filters, and large isotp TX buffers. Link: https://lore.kernel.org/linux-can/350df96b-5f69-490e-b39e-ed6e9bca475= 4@hartkopp.net/ > The CAN socket structures are allocated with GFP_KERNEL_ACCOUNT in > sk_alloc() instead of creating dedicated slab caches with > proto_register(), as the CAN protocols copy socket options directly > from their socket structures to user space, which would require > usercopy whitelists for these caches. [Severity: Low] Is this rationale still accurate after the earlier commits in this series? Commit "can: raw: read socket options under conf_lock in raw_getsockopt()" and commit "can: isotp: read socket options under conf_lock in isotp_getsockopt()" moved both getsockopt() paths to copy via local buffers, and j1939_sk_getsockopt() already does the same. The remaining in-tree direct usercopy touching a CAN socket structure is isotp_sendmsg() copying TX payload into the inline so->tx.sbuf buffer in struct isotp_sock (plus any out-of-tree can_proto_register() callers). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-getsockopt= -memcg-isotp-v5-0-bbe89b3d3b71@hartkopp.net?part=3D3