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 874091F4730 for ; Mon, 21 Oct 2024 12:17:42 +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=1729513062; cv=none; b=TU4kZQgL3N1vJvgZalUGE/mTmU2gIrus7FcTNG1uEgToLxoJeQ/6Yc8fumU1RFplh2egg46H+vaaoLN5JP7lQU1jQII+IzUjZcel0CdwqTNPvVMq3xQO2jN+J76+uttonXeWcHVPutgc5mCgtoPir/Jo4jj/CpqW+tAPwOvPLtg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729513062; c=relaxed/simple; bh=pQpGjADbcr3O9J702JJKK15d/9xpu1QJsJRT7TklXuE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fPqpnKSfHH5WZAuXgduJj8ezeVO00Fip7x7vdSDXx6FIwAjHWmDs+ixXAOmAHgahntEfRKeEqdBiTR0jtWXW8meWdmTm6TTR9WHkwVyYWT3ZSx8AmNZcZHmQqzYCtDNaF0DbQszEnPFGPhqa5UFb4+RJ/mYyCj4ENvxNk6vZklA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EBgONq6X; 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="EBgONq6X" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04637C4CEE4; Mon, 21 Oct 2024 12:17:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729513062; bh=pQpGjADbcr3O9J702JJKK15d/9xpu1QJsJRT7TklXuE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EBgONq6X+8RhQGOJNqamHiBNVwLdQL4aDXA4R6PST2wu31GsZlQ1WMe2EY12I/tPa daPGGowC2yVPmMLCy+eyyjExESpSd2471qC9s8We1+A2REJbb66+fo05xNDZMHzHlh p27fek8tXWQT3DeYvL6CVCKZPShINLGAoxDaJPa8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47729: drm/xe: Use reserved copy engine for user binds on faulting devices Date: Mon, 21 Oct 2024 14:16:08 +0200 Message-ID: <2024102105-CVE-2024-47729-8985@gregkh> X-Mailer: git-send-email 2.47.0 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=2154; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pQpGjADbcr3O9J702JJKK15d/9xpu1QJsJRT7TklXuE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlibqw3xW4+vb2ek8P5j4P1+ivcVarpvUIXRXYIeT20W l3XZjejI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYy/R7DPLP//6qjVsQrt6Ub Rm99zZqysMAiiWF+3LWv2qWH97mvPLZU12q6cGOO3FQzAA== 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/xe: Use reserved copy engine for user binds on faulting devices User binds map to engines with can fault, faults depend on user binds completion, thus we can deadlock. Avoid this by using reserved copy engine for user binds on faulting devices. While we are here, normalize bind queue creation with a helper. v2: - Pass in extensions to bind queue creation (CI) v3: - s/resevered/reserved (Lucas) - Fix NULL hwe check (Jonathan) The Linux kernel CVE team has assigned CVE-2024-47729 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit dd08ebf6c352 and fixed in 6.11.2 with commit 439fc1e569c5 Issue introduced in 6.8 with commit dd08ebf6c352 and fixed in 6.12-rc1 with commit 852856e3b6f6 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-2024-47729 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/xe/xe_exec_queue.c drivers/gpu/drm/xe/xe_exec_queue.h drivers/gpu/drm/xe/xe_migrate.c drivers/gpu/drm/xe/xe_vm.c 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/439fc1e569c57669dbb842d0a77c7ba0a82a9f5d https://git.kernel.org/stable/c/852856e3b6f679c694dd5ec41e5a3c11aa46640b