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 7638415D5B7 for ; Fri, 13 Sep 2024 05:31:44 +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=1726205504; cv=none; b=Z7Z5j5DEuwUF+IY7CCwtTV3gt/Lcp1Ow5JinHkHXGwUcr0K4cj0REBsFPShIXh19hbqMFzRFz+i840yQcZUsUBLG+BK7o2qKwM6Xgr9oFjlz9WKHt6/prVYvJw9R8uhmnz+aiJeJXpz2p6nKLT0sRr/nYnC/PHA01TM8L5XO6Eg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726205504; c=relaxed/simple; bh=wThibHChuuRAS+ErngSxUXdxwWHV62bCgqmDzjiMN+Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lg0l9n6tpvA/Fzo7wJ8HLsAU4eiH6/lV1iOGgm+mP90OgXhPsyxq/mPXkHjT1uTMOi0KFCFDSH5B8QlcYNXe9bCNXcwZSU8HO8K98fywVLyAdoyM5qFUoHWFyGOG6q6pmZePKdyT9TjKA2l6p8rBX2As2k8pN8cCF5rs2zhMpKE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xy4hCz7I; 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="xy4hCz7I" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFB9BC4CEC0; Fri, 13 Sep 2024 05:31:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726205504; bh=wThibHChuuRAS+ErngSxUXdxwWHV62bCgqmDzjiMN+Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xy4hCz7IfgjYdQdFDaL76yYrhxM5M3g0XbDEslYmTr5gb7IGNYWs/OAyNMaanK9iP lfnoxYEvPkv1hsUTj94Z3OnFJ/Qdbz1t7cfR1NVC9tVGz6VaCu2phcOrKFGVvaHpKU JCmKSfdyhKzPw3PWqrvByjmWJKVAUAS7Oq8qDIvU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46699: drm/v3d: Disable preemption while updating GPU stats Date: Fri, 13 Sep 2024 07:31:00 +0200 Message-ID: <2024091341-CVE-2024-46699-b1cf@gregkh> X-Mailer: git-send-email 2.46.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=2302; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wThibHChuuRAS+ErngSxUXdxwWHV62bCgqmDzjiMN+Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmPzzG+NG5YW/FM/Z2QltzFu233pz9qd1dekDR7YWHeu 7iyz4eTO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiykcZFlw4zlY057i0dI7I qa9XPyyPzApXimCYK5tzXurUYynpT4z/XXr31AorKzOsAwA= 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/v3d: Disable preemption while updating GPU stats We forgot to disable preemption around the write_seqcount_begin/end() pair while updating GPU stats: [ ] WARNING: CPU: 2 PID: 12 at include/linux/seqlock.h:221 __seqprop_assert.isra.0+0x128/0x150 [v3d] [ ] Workqueue: v3d_bin drm_sched_run_job_work [gpu_sched] <...snip...> [ ] Call trace: [ ] __seqprop_assert.isra.0+0x128/0x150 [v3d] [ ] v3d_job_start_stats.isra.0+0x90/0x218 [v3d] [ ] v3d_bin_job_run+0x23c/0x388 [v3d] [ ] drm_sched_run_job_work+0x520/0x6d0 [gpu_sched] [ ] process_one_work+0x62c/0xb48 [ ] worker_thread+0x468/0x5b0 [ ] kthread+0x1c4/0x1e0 [ ] ret_from_fork+0x10/0x20 Fix it. The Linux kernel CVE team has assigned CVE-2024-46699 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 6abe93b621ab and fixed in 6.10.8 with commit 1e93467ef203 Issue introduced in 6.10 with commit 6abe93b621ab and fixed in 6.11-rc6 with commit 9d824c7fce58 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-46699 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/v3d/v3d_sched.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/1e93467ef20308da5a94cde548ee17d523e8ba7b https://git.kernel.org/stable/c/9d824c7fce58f59982228aa85b0376b113cdfa35