From nobody Tue Sep 29 06:08:57 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 49BFB44C652; Tue, 11 Aug 2026 16:14:10 +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=1786464852; cv=none; b=ahVvwR4OBqXliyiN4l7vCQNnEph0mZdZdVxDYnwSTdQUIBXjaL+CGO4fYyi+T87J3xmXP4ElKoq0ZSrV3N0lbcUnF87oEeP/jaIXQDYmmOBdTpeUmwnxX7pEid+kpeLp04fXEvT/1FRMz0JjKblJC1hr/Yet11rKPu6tTKL7qQE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786464852; c=relaxed/simple; bh=RsJHDXVimP7L6MIyGdfKFloKjC13gpThWanBayMw+ug=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=GFrQFGhPhl9A65UK7lriy0qOgpbUU9KNV6f4Kb7Oq688AfrIwBeL+G83ZXDfH9gMkorHIQByOrJoAT1Xn3eZVbJTB0IQFyG6vjD8pHgLZp6ptDLUsnx65DHZpYBuz4k5XMXIgBTYuUvqphpc26pZMdBWYRolPndHTCQeRiXR3dg= 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=08ANNEO5; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=usFvZTgH; 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="08ANNEO5"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="usFvZTgH" Date: Tue, 11 Aug 2026 16:14:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786464847; 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=gsVL+0tx7xs6j/ln8vKuJls8ew7KRHJPBAjSnVqlCWY=; b=08ANNEO567d2QLU+uLr8DV/1M0uSLMLAIjwxLCWqI0/JsZhpH3OEBZy1bfvvAiFcVZkltL 9Mbpwa7bQbgip+KIqrjyyMTAdkd9pXCv0A3qpTE23ru8SyuFraKI06HSX9DGxXX6y5A34/ nnXwg3cqVMRGOTzpHdag+mG2bdAswBqw0s5SZTjmuy8ynXAL+GCCW15zzNkGlKecHs2xRw weWPsArX8Y7sj2TLowjZL4jlMQ7iH+b8Zy3Iu4KL8nHtLK727VnKpZ48iNfTOHTKBWuOhA fzfzndaIfYmB5xRTQuvXb0b2EnG0MPPcKjQtnWgHrS2hghIZ6IR2HatHuHjqbg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786464847; 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=gsVL+0tx7xs6j/ln8vKuJls8ew7KRHJPBAjSnVqlCWY=; b=usFvZTgHA01w8eVmqlUJf9KzTjnZBrQV4DikldMwd2K/vya1+XtIlhlqGuu/dpf7PYFDQW s4EroefOQeY/dECQ== 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] selftests: timers: nanosleep: Explicitly handle timer_delete() failure Cc: thomas.weissschuh@linutronix.de, Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260803-auxclock-nanosleep-prep-v2-12-910cbd485390@linutronix.de> References: <20260803-auxclock-nanosleep-prep-v2-12-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: <178646484644.442315.4157006640784161776.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: f2ff28a52255f04ab0de16a7d298e35360852890 Gitweb: https://git.kernel.org/tip/f2ff28a52255f04ab0de16a7d298e3536= 0852890 Author: Thomas Wei=C3=9Fschuh (Schneider Electric) AuthorDate: Mon, 03 Aug 2026 12:04:43 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 11 Aug 2026 18:11:21 +02:00 selftests: timers: nanosleep: Explicitly handle timer_delete() failure An upcoming patch will remove the early exit on failure of a single testcase. If a test fails because a timeout timer could not be deleted, then that timeout timer might interfere with the following tettcases. Exit the whole test case with a clear error message in this case. Other failures are not problematic: * If timer_settime() fails, a harmless unarmed timer is left around. * The SIGALRM handler reconfigured for each call to nanosleep_test_remaining() anyways. Signed-off-by: Thomas Wei=C3=9Fschuh (Schneider Electric) Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260803-auxclock-nanosleep-prep-v2-12-910cb= d485390@linutronix.de --- tools/testing/selftests/timers/nanosleep.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/timers/nanosleep.c b/tools/testing/sel= ftests/timers/nanosleep.c index 5037481..dd899dc 100644 --- a/tools/testing/selftests/timers/nanosleep.c +++ b/tools/testing/selftests/timers/nanosleep.c @@ -111,11 +111,14 @@ static int nanosleep_test_remaining(int clockid) =20 rqtp.tv_nsec =3D NSEC_PER_SEC / 2; ret =3D clock_nanosleep(clockid, 0, &rqtp, &rmtp); - if (ret !=3D EINTR) - return KSFT_FAIL; =20 - ret =3D timer_delete(timer); - if (ret) + if (timer_delete(timer)) { + ksft_exit_fail_msg("Unable to delete the timeout timer for %s. " + "This might interfere with following testcases.\n", + clock_name(clockid)); + } + + if (ret !=3D EINTR) return KSFT_FAIL; =20 sa.sa_handler =3D SIG_DFL;