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=1796434037; b=pVqgSbmkGPY6jZCGR/WxWEt2GmSQb+2q200EVNO0w+VLZVkNojONV4NnKKy4NHiKbNXR atKTceKf4yN6xz4K3vlKscZNM7CnmNfAfMg7q6MqvlkwRxmJAw+HIRX0mEYJuMiDfIgdf staWeDZ/7B2PXxZ4M0QKnMGIbfJUI2HPI3CGIqFsdByB2ABiey+YNGJZ5A8e25gWEVpcv 4jFD2H2D31ynXwwu5IODCXe5fzIinRNDR4CBb+gGHflSnzsS4ImNxxS41zp9KKnDp/LHA PdauHOI6SavmdNUv+Avh8fdAuyHUi9TiitguGHsEfJJlg3eze7/YbDkf+xivS8ipSZQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796434037; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=ELN7IBqVFmhv7xc+VQM6yNmkQ+A64e7LmcEnssoMy2I=; b=HDcQEpDM7E9c3F3937lqT2WrABnqe9mKf9uPlLKy2B1LMfyLIWM/RlgX/mxTSwf1yq4V DbCx2hPsheX19mpJgZ5Xn/q4V6cB5+1nwIVT8pliBIn1lD6p1E0UqmTRiSX8zb2Xf0b4k IV5rGCd+hZyxlzwJuq1A9L/sBYOJZlZ7uZ7qtbtheOPWjCxvic2H3Q+Rq1z7nM+7e4JrC uFk7OoxFvMDQfEcDrScD8qzFffCfowe6G/GzLHk4Ex2tvXM0jfCygWfl/xkt12TKcqNcM EhKmxVi3WgR185i/Zqdx3Qu/Wxia0c3/CwM5M4DCeLxhuVm4tNYvtIKED/o/7hueQVA== 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=jylNbEMW; 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 688F5606A322 for ; Sat, 5 Dec 2026 01:27:17 +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=jylNbEMW Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEB5F1F00A06; Sat, 5 Dec 2026 01:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796434037; bh=ELN7IBqVFmhv7xc+VQM6yNmkQ+A64e7LmcEnssoMy2I=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=jylNbEMWwBEBgYqZpfOsiudE4WEkNspiOMo/JCP1A06ynnUbiSn6KxQ/YQyuIVIlN /hc6H8S+udNRM99VWYBXbDJJAvUgW2Xxv5gebQuC8EHxoqFSt/UJpizOgRhF7OX6ZM rVALky8yT+ZR4IwTe8WOHpLuiaqn9xpbmct/RZsEiZQocyeCuiU0XSulyj0SUYIWoH 0JC164SP8gJhmarIjr4UNbgGf5idI7bvjfBZDnI9Nj+B9M11a26M9fnqbwuEE6c6sl U3lSdDRDoG2ajHQqRcWSow6LWNTkS6YF5c8GiHWerYQeXiV8nz3hInPef+jWdHU6cM 59NaDHJzPs1RQ== Subject: Re: [PATCH can-next v5 02/24] can: isotp: read socket options under conf_lock in isotp_getsockopt() From: netdev-bot+sashiko@kernel.org To: socketcan@hartkopp.net Cc: linux-can@vger.kernel.org, mkl@pengutronix.de, kuba@kernel.org Date: Sat, 05 Dec 2026 01:27:16 +0000 Message-ID: <179643403632.3142.14281935310569892500@kernel.org> In-Reply-To: <20261203-getsockopt-memcg-isotp-v5-2-bbe89b3d3b71@hartkopp.net> References: <20261203-getsockopt-memcg-isotp-v5-2-bbe89b3d3b71@hartkopp.net> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: linux-can@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The last paragraph of the commit message for "can: isotp: read socket options under conf_lock in isotp_getsockopt()" names a… -- can: isotp: read socket options under conf_lock in isotp_getsockopt() This commit changes isotp_getsockopt() so that it reads the CAN_ISOTP socket options into a local union while holding so->conf_lock. The values are then copied to user space after mutex_unlock(). This prevents a concurrent isotp_setsockopt() from producing a mix of old and new values in multi-field options. > The socket options have been read without a lock before commit > "can: isotp: use a private mutex instead of lock_sock()" as well, so > this is no fix. [Severity: Low] This isn't a bug, but could this reference include the commit hash? The cited commit is already in the tree as c781fc329528. It came in with the linux-can-fixes-for-7.4-20261124 merge. The usual format would be: commit c781fc329528 ("can: isotp: use a private mutex instead of lock_sock()") c781fc329528 itself cites commit 43c973a0887d ("can: raw, isotp: copy socket options outside of lock_sock()") in this format. -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261203-getsockopt-memcg-isotp-v5-0-bbe89b3d3b71%40hartkopp.net