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 EB71D143890 for ; Tue, 21 May 2024 15:07:46 +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=1716304067; cv=none; b=N9pY25TzQGuxE1mnRQiSuaTBQ+tKxAtOtuQm2/PkGvRraHizdNTYD+/FGlBg7DUM5kg9AyaX2HFzo0phRcsWTkUpfxTrqsZ8xLjk6kIs892Osic3S5wzsPMTmzhF77irXcJO5NJypjWSq8nk9WmicMq83Pxmhc6OFZbMY9skHyo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716304067; c=relaxed/simple; bh=j8Gdd5UE8JPzay9MB2j9QAbUjxPfAxHuwR1dgfc5qmY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ItZ57wCAw/fNn0ZLHGE3V0ibiOml2keWfBzKqst7Ozd3eWXX9A4rjon1/FwJXh7BeKU4M+BBStNKSMF+bmMKA/MrwJDCIVrsmIfzmRrOHyHoGU7G/mDVFl5Ygp5z43ZR1OpkTVuHeWr3EIxNQsZ6lLwMhMZwKn7XTKkOTFkzKRg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BgagzECl; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="BgagzECl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30E49C2BD11; Tue, 21 May 2024 15:07:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716304066; bh=j8Gdd5UE8JPzay9MB2j9QAbUjxPfAxHuwR1dgfc5qmY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=BgagzECl4YfGHui4kWc5BLqAlves+ccLt1ZteCI07umvFkosB+trLAE7roTZiFr4G HkpIzGb4h0I5puC60tMnl9imvCORCB0CsrP7ci5aWYtzv00W/YHnNpexAhAWc0fpc5 imi9J+tPYf2su0zYKZPE/ALi771JHO21HlEkxgdo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47410: drm/amdkfd: fix svm_migrate_fini warning Date: Tue, 21 May 2024 17:04:27 +0200 Message-ID: <2024052152-CVE-2021-47410-3b06@gregkh> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2638; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j8Gdd5UE8JPzay9MB2j9QAbUjxPfAxHuwR1dgfc5qmY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+22/MXa/hkLjJZ9MH67nq8tav+gx79b2adlZsWbm6f 47/m3rGjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIGzPDPHXJ6943ogzW+k7v S2VOvvdF786fdob5KfHyJ572nbJ8pCWtsKp4R4iB1xlxAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: fix svm_migrate_fini warning Device manager releases device-specific resources when a driver disconnects from a device, devm_memunmap_pages and devm_release_mem_region calls in svm_migrate_fini are redundant. It causes below warning trace after patch "drm/amdgpu: Split amdgpu_device_fini into early and late", so remove function svm_migrate_fini. BUG: https://gitlab.freedesktop.org/drm/amd/-/issues/1718 WARNING: CPU: 1 PID: 3646 at drivers/base/devres.c:795 devm_release_action+0x51/0x60 Call Trace: ? memunmap_pages+0x360/0x360 svm_migrate_fini+0x2d/0x60 [amdgpu] kgd2kfd_device_exit+0x23/0xa0 [amdgpu] amdgpu_amdkfd_device_fini_sw+0x1d/0x30 [amdgpu] amdgpu_device_fini_sw+0x45/0x290 [amdgpu] amdgpu_driver_release_kms+0x12/0x30 [amdgpu] drm_dev_release+0x20/0x40 [drm] release_nodes+0x196/0x1e0 device_release_driver_internal+0x104/0x1d0 driver_detach+0x47/0x90 bus_remove_driver+0x7a/0xd0 pci_unregister_driver+0x3d/0x90 amdgpu_exit+0x11/0x20 [amdgpu] The Linux kernel CVE team has assigned CVE-2021-47410 to this issue. Affected and fixed versions =========================== Fixed in 5.14.11 with commit ac7d732b24f4 Fixed in 5.15 with commit 197ae17722e9 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2021-47410 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/gpu/drm/amd/amdkfd/kfd_device.c drivers/gpu/drm/amd/amdkfd/kfd_migrate.c drivers/gpu/drm/amd/amdkfd/kfd_migrate.h Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/ac7d732b24f4061f8a732ada49b054ab38c63e15 https://git.kernel.org/stable/c/197ae17722e989942b36e33e044787877f158574