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 8BC8F302165 for ; Wed, 12 Nov 2025 10:26:30 +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=1762943190; cv=none; b=iSfoRE4iZYPL70pPoxsEO/8mGeAQGC0qFlyQmP8Pjw8DSVWaIce6kPWaJol2a7Q2GvQrdYbLES/TeGgwwHQeEA0wGOHOtopX9mQpFVtVSUjfN8ExQnYwW8je9E91kfxj/nbgy7sGGBlS8EUfQQgaehcvOkH8BsRgpCuzCpN9xOU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762943190; c=relaxed/simple; bh=by+y9NS3ubbPKk1ke0itkxhsebEYcop0Vt1DrN186Ng=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ATZKX6GFWcBwjil7YL2uRyjypKiwp6TTIN4RU+oC93SDZAH6GTkXaU12Av/cO2JBd8yghAuX/8+OQ9qbcPKmEKukqFLocu0HvNdatPL9Cm2+tXegTYCbCCnLBjX4k1isWy6b61FfJfUe1oCMTPkXfa3JiWrL/UlLFH1O0Bff9sA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sjU9krO7; 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="sjU9krO7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED5A1C19423; Wed, 12 Nov 2025 10:26:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762943190; bh=by+y9NS3ubbPKk1ke0itkxhsebEYcop0Vt1DrN186Ng=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sjU9krO7ssd+/wz+Vuz+GwjJJLGYVO3xRrA6vMy658WIqVqvMzvVuxlO3DBe30hKK Lfn9ReiBhRpG3reiXkezm/69PLVzZzrnSLoR4FK73CgbWhnF5UzAvjTI3z/tvMWGji OmEX3qPHKpsOE2pmaXfKqk6U2xEF8KMgvFeppe4Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40163: sched/deadline: Stop dl_server before CPU goes offline Date: Wed, 12 Nov 2025 19:26:29 +0900 Message-ID: <2025111227-CVE-2025-40163-55e0@gregkh> X-Mailer: git-send-email 2.51.2 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=2944; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lleyAr8zAEskq13UNwceYxQyBYdj3kTM45/GxCliMmo=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkiCZcnlZouUThkq53AlWZkcJ09U+LBSoFGE5Pj3zSLV pwSnzy5I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaisodhfr5aSYhUWD5DuPRv /j0/dvb3WXpPYFgw2Sj7wZ75Hia6QnvObTXQ/cb9WPAJAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: sched/deadline: Stop dl_server before CPU goes offline IBM CI tool reported kernel warning[1] when running a CPU removal operation through drmgr[2]. i.e "drmgr -c cpu -r -q 1" WARNING: CPU: 0 PID: 0 at kernel/sched/cpudeadline.c:219 cpudl_set+0x58/0x170 NIP [c0000000002b6ed8] cpudl_set+0x58/0x170 LR [c0000000002b7cb8] dl_server_timer+0x168/0x2a0 Call Trace: [c000000002c2f8c0] init_stack+0x78c0/0x8000 (unreliable) [c0000000002b7cb8] dl_server_timer+0x168/0x2a0 [c00000000034df84] __hrtimer_run_queues+0x1a4/0x390 [c00000000034f624] hrtimer_interrupt+0x124/0x300 [c00000000002a230] timer_interrupt+0x140/0x320 Git bisects to: commit 4ae8d9aa9f9d ("sched/deadline: Fix dl_server getting stuck") This happens since: - dl_server hrtimer gets enqueued close to cpu offline, when kthread_park enqueues a fair task. - CPU goes offline and drmgr removes it from cpu_present_mask. - hrtimer fires and warning is hit. Fix it by stopping the dl_server before CPU is marked dead. [1]: https://lore.kernel.org/all/8218e149-7718-4432-9312-f97297c352b9@linux.ibm.com/ [2]: https://github.com/ibm-power-utilities/powerpc-utils/tree/next/src/drmgr [sshegde: wrote the changelog and tested it] The Linux kernel CVE team has assigned CVE-2025-40163 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit 4ae8d9aa9f9dc7137ea5e564d79c5aa5af1bc45c and fixed in 6.17.5 with commit ab6c0f158508bb16d483add70b73a73f95651c33 Issue introduced in 6.17 with commit 4ae8d9aa9f9dc7137ea5e564d79c5aa5af1bc45c and fixed in 6.18-rc2 with commit ee6e44dfe6e50b4a5df853d933a96bdff5309e6e 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-2025-40163 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: kernel/sched/core.c kernel/sched/deadline.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/ab6c0f158508bb16d483add70b73a73f95651c33 https://git.kernel.org/stable/c/ee6e44dfe6e50b4a5df853d933a96bdff5309e6e