From mboxrd@z Thu Jan 1 00:00:00 1970 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 5285C410D10; Wed, 4 Feb 2026 14:53:19 +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=1770216799; cv=none; b=mkVuk2RJQaB6cUvWHYqutK+Qs9dcepb3a4/ao4vKCkyNVqyMrw1bQTR+YldA/HdsV8W0vw9LZWnSImzvNOkSoia0j0y8lKAHmScTy1UNfyHun+3muxZHhI4VgbCYwRjJCOBpx2ijLNCK3KTniJMJslarr4KKahzDdQqY/HEzs5s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216799; c=relaxed/simple; bh=FTMcjKgQA2RRBlqGa7VrNed7hsMUAe7PrFYW63UXwCk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=S7hwd7Hee35quqpLIF8mQLTz7nw8uakpkwmLgw2Zkuv9B6ELPVsBjeeTdfoLC5j9rQcvAcjgSu5xNVBCrXSM90kjUTt5qVcKq1G6WYUnk/vmEaWRx+FsSzsGdsQliQNi+Gu8dL48rqmv5d183t955P9103m8Ol3HValNQh2xlpQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WPgGI/3V; 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="WPgGI/3V" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5989C4CEF7; Wed, 4 Feb 2026 14:53:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770216799; bh=FTMcjKgQA2RRBlqGa7VrNed7hsMUAe7PrFYW63UXwCk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WPgGI/3V3vzbWNrmxrZBe7qsoyTb8R2I98YC6P7Y9qx9zntSgE4awbGnfeajiJipX eax8+XcD/uKVoWLxbILtLGf3fGD/vuEo01Os6fo7xR2woFnPRPUEa/c8m9ZA8VHxKn UmaOp+llAtfVPFHTznygnacNjKd3BvbWA0zlT86c= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Thomas Gleixner Subject: [PATCH 5.15 035/206] hrtimer: Fix softirq base check in update_needs_ipi() Date: Wed, 4 Feb 2026 15:37:46 +0100 Message-ID: <20260204143859.473006048@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143858.193781818@linuxfoundation.org> References: <20260204143858.193781818@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Weißschuh commit 05dc4a9fc8b36d4c99d76bbc02aa9ec0132de4c2 upstream. The 'clockid' field is not the correct way to check for a softirq base. Fix the check to correctly compare the base type instead of the clockid. Fixes: 1e7f7fbcd40c ("hrtimer: Avoid more SMP function calls in clock_was_set()") Signed-off-by: Thomas Weißschuh Signed-off-by: Thomas Gleixner Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260107-hrtimer-clock-base-check-v1-1-afb5dbce94a1@linutronix.de Signed-off-by: Greg Kroah-Hartman --- kernel/time/hrtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -903,7 +903,7 @@ static bool update_needs_ipi(struct hrti return true; /* Extra check for softirq clock bases */ - if (base->clockid < HRTIMER_BASE_MONOTONIC_SOFT) + if (base->index < HRTIMER_BASE_MONOTONIC_SOFT) continue; if (cpu_base->softirq_activated) continue;