Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp221374lqp; Thu, 4 Apr 2024 11:08:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2RDl1OtR1R+0osVxSgxyYgpmyOKrCIXQrVAq2vOffqbIppIFJA6kkBYh1aawTyp2VXIX3QhjLC+p74cEYEPZmfXr1kuhyXA26O0T8lw== X-Google-Smtp-Source: AGHT+IFArO6W7hS5nPQ1ksj4HlEtWSdKgMFosrdWhK+QFYUkZ9FolkKTxgpetYDuxLqgFIkVzHJO X-Received: by 2002:a50:d55d:0:b0:56d:f99f:a600 with SMTP id f29-20020a50d55d000000b0056df99fa600mr2346503edj.17.1712254128584; Thu, 04 Apr 2024 11:08:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712254128; cv=pass; d=google.com; s=arc-20160816; b=sh5UA7nEsZ5OoNTIOvtUII57Ng+pr4aGqLpXPOJaphXnmyX52LTnVh34exChFC/T4I sQTQG7RlGuWnGSnZMAJbBegpSWebiZEJv2jS70HI+R5iBnQfHGgKrzsOW6EcFhNDIOvy 24Ry2hyOU8ZHxBs2r6SXWJDXiX4BzHlnaUH4w0lFwFTH5gE/hZmjuBrAQtIIjjE9+YFG BKQs0VrQQzurGHMl7zK2Svh6j5h+pbrPbR6hw8Xx4RzCB7hGp+5vWQpuTOJDfBMYY/OI zstL6V5z2h3Sy1FhFHONhuBss8DSoj4/qWjsZGAHhXHdaYungDxajpruFFig9KFufz5C oaaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=tkMiv2B4K7kFjJ2XUNPtFrHanpcstv972bKvZlxjA74=; fh=OuAojZ9XtyzR6STIF2qTI9iuNn5xasdqzotJ7hmY3kQ=; b=ckBpAi5fWPmSOGC/FmIJLNqZD3AtLtVQqI+59I1BcyAcpPGTlFeXzKtUsQXF9ZHIdM fI1phwAFkSZHJsdBTCyI6pSBQQUqzC+H/+pRffSHh84dal9Qr4oUlinJh3mEJhVnr8jx AVrludVJIX7g3COM9xSlN3zpjvl1T/iHDZSrWnOTf4VpxOIFxNYsvvSmAQr32OVGfCa1 dfD9Qh1k1dZqJRg+G3Kqw0kNCOks0vgcpWBoED4YzyZx7hyPLJnaFMOhSxo91l0ljYGl mP+6k3sODTY2cKbiBLZXYkmb6wSAZ+yDTaD0MXG5KImEK3RF6XymJx10g+GRqDStGMo5 2c9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=IKN17SMS; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-131937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131937-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v25-20020a509559000000b0056e03d53c48si2223992eda.291.2024.04.04.11.08.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 11:08:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=IKN17SMS; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-131937-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131937-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0D2C11F2C940 for ; Thu, 4 Apr 2024 18:08:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C57212FB2B; Thu, 4 Apr 2024 18:08:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="IKN17SMS"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fxB5JykP" 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 08A5912FB10; Thu, 4 Apr 2024 18:08:41 +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=1712254123; cv=none; b=N9/KeZdj7uqib6zRMy5IusS2JhfxV02zoxT1nmzTvZx9PiXlG6CXICqqohMbUu6gi6pbBcRASxQi/7zH2qXEgfQzm8qyfL0EbvvbhP9wK9vLO+gnR6316Kob2pALlNkYg+RsrPrzswhRqIIaqVbSJ3y9SmyxwzzahvvOo2sjPLQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712254123; c=relaxed/simple; bh=tkMiv2B4K7kFjJ2XUNPtFrHanpcstv972bKvZlxjA74=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=NUZOO0s0a7LZ2Mioqd6vZ/OPXlktyBDhqolYOkmt1AvG9nBZg/dbpl7gZcf8dPdIBMyLjCLdAx+hwlGFP42npHQRCqMT59kszPqi0IxeC3R4J/mXcKjdBUhwjibU68Rs4+BMfbigOm4afaeeTnnGo95ASqzrIiQ6vl98FV7V9UQ= 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=IKN17SMS; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=fxB5JykP; 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 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1712254120; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tkMiv2B4K7kFjJ2XUNPtFrHanpcstv972bKvZlxjA74=; b=IKN17SMSQlnLIgXy4XcmNogo7m7DTD8DLnPDMszy0CRD0ssfFAiY135HjEzNX4QxK/F+ev DtGEcwVnnhew1Ad6CP4+0sQUcn4Sd9rRRXpNfBUdQyDr9ciMaJHKlvTSo5/CzXSF2xZ6lD uknxZ0tehvxsGlY6T2ZG0PguAq7jam/rNkYupA736F1b7rlsoPft0dDZTo/zGkHUwDqvd/ 5KH+oqO+tmELIPdT7zPyCLPBeieHIApdKQ6nFcrcFpZsevfYSs/0JvYAmxlrByZ9uPMF4m tVVuFNHGVDf7hysRNtqeZRVl6ALFieEm1+i0Vc74mHa3fL1JrJoId1+wqF68HQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712254120; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tkMiv2B4K7kFjJ2XUNPtFrHanpcstv972bKvZlxjA74=; b=fxB5JykPkIfiapBWgjbkLF+Pafh4KbXqiRhWbLtcBha2jxzZnCQgrNFoU5ffThGqYA1C0Z Z/e8nH329LHE3sAw== To: Oleg Nesterov Cc: John Stultz , Marco Elver , Peter Zijlstra , Ingo Molnar , "Eric W. Biederman" , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Dmitry Vyukov , kasan-dev@googlegroups.com, Edward Liaw , Carlos Llamas , Greg Kroah-Hartman Subject: Re: [PATCH v6 1/2] posix-timers: Prefer delivery of signals to the current thread In-Reply-To: <20240404145408.GD7153@redhat.com> References: <87sf02bgez.ffs@tglx> <87r0fmbe65.ffs@tglx> <87o7aqb6uw.ffs@tglx> <87frw2axv0.ffs@tglx> <20240404145408.GD7153@redhat.com> Date: Thu, 04 Apr 2024 20:08:39 +0200 Message-ID: <87le5t9f14.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Thu, Apr 04 2024 at 16:54, Oleg Nesterov wrote: > On 04/04, Thomas Gleixner wrote: >> >> IOW, we cannot test this reliably at all with the current approach. > > Agreed! > > So how about a REALLY SIMPLE test-case below? > > Lacks error checking, should be updated to match tools/testing/selftests. > > Without commit bcb7ee79029dca assert(sig_cnt > SIG_CNT) fails, the very > 1st tick wakes the leader up. > > With that commit it doesn't fail. Clever!