Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3895606A32C for ; Fri, 4 Dec 2026 15:00:56 +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=og+CUjiZ Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6B51B11302D; Fri, 4 Dec 2026 15:00:51 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id E4C39113014 for ; Fri, 4 Dec 2026 15:00:44 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 2F1CB618A7; Fri, 4 Dec 2026 15:00:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C73BA1F000C2; Fri, 4 Dec 2026 15:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796396443; bh=UgjY2GCnDOtHLxn+MxetSc/a1lLbxWbXH6lAifgH8Ew=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=og+CUjiZdeUX0FQHvagtw1mY7sUr/GajVV9QusmjgSGJYX75UchfPqOMWyu7U5NRw W7VnToxqjFZ+xRj+TZC/ah38Dxyw3RlExK18Pu9JjhSLjCcc6cCtFEvP1Et0jJtL54 oT9ICT2IYEWCdZeNBo+YgXv1rolCMuYUu+SzS3MVgi8cO4i3ey0E5B5OeN821rjDWE EIxAjRt5BwBnd9Ut36vOnaEpmgdsnisTHHGgC/JoOXdeu99ShnsCJd2rkjYY1AeQpt 65b3XqwmxWXCGH4OLzVL8SYsjkYh+Y4NLDyDzDkyW29ju6mfCFLWkmT9IIcp5zmFvZ v/3RDhJ2LQBVg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCHv2] drm/amdgpu: reject UALink peers outside the vPod active set To: "Mukul Joshi" , amd-gfx@lists.freedesktop.org In-Reply-To: <20261204144157.965052-1-mukul.joshi@amd.com> References: <20261204144157.965052-1-mukul.joshi@amd.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 15:00:43 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "amd-gfx" X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] drm/amdgpu: Fixes trailers cite non-ancestor SHAs and omit 2b4c5569d888 -- commit b5c8acd96109737ef58dfc89d5be3e7a729e1358 Author: Mukul Joshi > drm/amdgpu: reject UALink peers outside the vPod active set > > remote->peer[] is only set up for active vPod members other than this > GPU, but the import ioctl and HELLO processing only range-check the > accelerator id. An unused id makes connection setup run on a zeroed > peer: an uninitialized mutex and scheduler entity, and GPU address 0. > > Reject such ids in the import ioctl, connection setup and HELLO > processing. > > Fixes: 8c583a03f24c ("drm/amdgpu: Implement UALink handle import ioctl") > Fixes: aa574f2570d6 ("drm/amdgpu: Resync UALink ring wptr after reboot") > Signed-off-by: Mukul Joshi [Severity: Low] The two Fixes tags cite commits 8c583a03f24c ("drm/amdgpu: Implement UALink handle import ioctl") and aa574f2570d6 ("drm/amdgpu: Resync UALink ring wptr after reboot"), which are not in this tree's ancestry. In addition, 2b4c5569d888 ("drm/amdgpu: Add connection state management") originally introduced the unvalidated peer access in amdgpu_ualink_process_hello_msg() and amdgpu_ualink_setup_connection(). Should the trailers be updated to the merged commits in tree history: Fixes: 2b4c5569d888 ("drm/amdgpu: Add connection state management") Fixes: a9a7035e2ec9 ("drm/amdgpu: Implement UALink handle import ioctl") Fixes: 61c057105de5 ("drm/amdgpu: Resync UALink ring wptr after reboot") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204144157.9650= 52-1-mukul.joshi@amd.com?part=3D1