From nobody Tue Sep 29 06:08:43 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 4D5A8455178; Tue, 11 Aug 2026 16:14:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786464864; cv=none; b=oEkpOUkXMl6l542WjmA1zl9YHOQmPTllEOCTTIfhXT9NM0OEWgn0ezVBoBK3ZefIqE5RezDIlxFn5O4fP4xSayCsFdrs8iOJN0z2wCguWkC+cXlkhHpFDJ74mRF0AN+oqUDq2xXIJnO4Sj93zHFAU9e5FPso7+I5s5YJ0LdQ3UA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786464864; c=relaxed/simple; bh=R8hnxXZPufX3MwI50Fs/uxAgLjIvdDSqzsd44GETV3c=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=kKdzcrgpiqr9FPCUQBuVDYCJY/9//kkhb33oNUzVrMDTlpeHMx2W/DQj93uFdR78+gTHhwaFCa7lV6P3mokVOSYlkBWDL204vCYifNCtPSmx1kj67LNic9uPMqGce+QYoEFATE+KgeNQECZ7Du5p7Vr1lbxOoRCLdN8hkflQOjg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=aU2f1UzM; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=o50geTcE; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="aU2f1UzM"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="o50geTcE" Date: Tue, 11 Aug 2026 16:14:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786464861; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mUH5VJWaGcWuJFiGe8qEk1Rv/Jq/i8ytdsNmVM3I4xw=; b=aU2f1UzMlCXqixeIIbeWQmzKYuGXSlCMx02MZX+t3JB3nvvQYp7RENool+qJZMCu5Yk2t1 vQ3yltKY5Ia3bm8QZPWa/PymrMPZyN16K/Jsvp49E1gnCADrk84YLZPcqhsABa7NAxTqKk ZKSRJRtSq35ZA4TpGCyvvwAEfh0Re3q7WuW/4sRMucVfKQbUwldqd/zxIksG29ynuQ5zAm iLl5JsRQ7vNrOXFug084eCN6rxfiMKDkyG017govvEXaAOUWUrwfzrFcQM6wsO4ZjDGr0s oFg3c1tImA3Zpt4BvwoB0giZW+VWmN9BAx9BVuvP0s1DWB3l9rFVG6NEnBspcA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786464861; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mUH5VJWaGcWuJFiGe8qEk1Rv/Jq/i8ytdsNmVM3I4xw=; b=o50geTcEftbUZo8z3e/SU+K+yyTG17amfqwWf2hZSIGX7Pk6OL07zLy2XrzOlkDfXe5W34 U1YJH/BBjMJx70AA== From: tip-bot2 for Thomas =?utf-8?q?Wei=C3=9Fschuh_=28Schneider_Electric=29?= Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] hrtimer: Add a lockdep assertion to hrtimer_update_base() Cc: thomas.weissschuh@linutronix.de, Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260803-auxclock-nanosleep-prep-v2-3-910cbd485390@linutronix.de> References: <20260803-auxclock-nanosleep-prep-v2-3-910cbd485390@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178646485996.442315.14530151761337307167.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the timers/core branch of tip: Commit-ID: d2e6ee3ecb76464e7146c1b4774383fee4b48146 Gitweb: https://git.kernel.org/tip/d2e6ee3ecb76464e7146c1b4774383fee= 4b48146 Author: Thomas Wei=C3=9Fschuh (Schneider Electric) AuthorDate: Mon, 03 Aug 2026 12:04:34 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 11 Aug 2026 18:11:20 +02:00 hrtimer: Add a lockdep assertion to hrtimer_update_base() Document and verify that the hrtimer_cpu_base::lock is held at this point. Signed-off-by: Thomas Wei=C3=9Fschuh (Schneider Electric) Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260803-auxclock-nanosleep-prep-v2-3-910cbd= 485390@linutronix.de --- kernel/time/hrtimer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index 540561d..530d612 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -677,6 +677,8 @@ static ktime_t hrtimer_update_next_event(struct hrtimer= _cpu_base *cpu_base) =20 static inline ktime_t hrtimer_update_base(struct hrtimer_cpu_base *base) { + lockdep_assert_held(&base->lock); + ktime_t *offs_real =3D &base->clock_base[HRTIMER_BASE_REALTIME].offset; ktime_t *offs_boot =3D &base->clock_base[HRTIMER_BASE_BOOTTIME].offset; ktime_t *offs_tai =3D &base->clock_base[HRTIMER_BASE_TAI].offset;