Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2885798lqz; Wed, 3 Apr 2024 11:16:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxEzgqRi86qpA5cAoIL1t/+5edokI0yd0eEH2u/duqexrpQz7zRz+w7dKOiY8qllPFwDj9e8lOsfFhuiIhUQvZRMVN1VT2jmH3QqnQ9g== X-Google-Smtp-Source: AGHT+IFeZZL077tE68sqOtapBmTNNal5TAyW/okZVCvC+W8C2ypZvvcjN5s6sWz7iwMf5XQpQbAc X-Received: by 2002:a05:6808:4498:b0:3c3:cb7e:8823 with SMTP id eq24-20020a056808449800b003c3cb7e8823mr328146oib.56.1712168194241; Wed, 03 Apr 2024 11:16:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712168194; cv=pass; d=google.com; s=arc-20160816; b=Rx+VWGzdXtGwYBRVvpyj3TCGZdfBKEtvfMTF+Yw8PtWKGYJEmdWzB0BFbrOnvbrJGT AK4S6AMu7TDfliuz9b5osR+YJmcODEJjNvAUHOjqGprLUG39ve4/Aj51uplC1Ka+NAju qa56vC4RWwNJ8vKsne/C+YpRK1/uzZoeMeH3sOvhM6g8A/aw/znolPfF09ra5IaQvktW MUfhM6fm2iXs1QNM7LaxoCk/kSQ5j8b9x8xPT/DCy6dE8RIYooVwZtbFpjpZra5m3aWo 5HdWFolEp4CzxvsXswKviTPTt5mtEJ/9pS3QPkwgiv8RCz+ErEr2fnajaTdn2SRt/NjZ HBHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=wNELuWdWa80XXRXdRCDWUU8putHnEOf7PvgbPFwUh3I=; fh=jLmCYxcxgMsCnZcD+pM+YAhDz6e1BI1cCHTnKEu3qGo=; b=ZcYqmhzDP5C5q1FgRsoVsySl4sYSKyxJeGzm3f+u5pGoNsLAv8sCLuraYKWiDgXwCY p80Zgoh1kKi3EP4nAG32GApapjxEX+D2mpVKnzgMcpnEvUhYQxYaTGyUKqtUGfoLYOR7 Ywf6bm6j5Vrt+D0v1auRYXu02KhZQjzlFa0XjfyFV2j7Ws0nID+PbUXJ4wO1jlJm8JKA OrLk90UiN6R/y/XNhzoFKZHZn9XHTY5XenBHiYG2gd8DljaPbd/PWg7A9rilwscQO2ZA UQmJWBFI8EhYaBk1b45WiLIgcbbzIDbcN45vYQyiv5i6ZV7XMRW9ANz3PNJLsQpptf+J mCVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=rGrjwiBa; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-130430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130430-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u10-20020a05622a010a00b004313db96962si15071672qtw.201.2024.04.03.11.16.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 11:16:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=rGrjwiBa; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-130430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130430-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EFAF31C21EB7 for ; Wed, 3 Apr 2024 18:16:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 14F44153572; Wed, 3 Apr 2024 18:16:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="rGrjwiBa" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADFD41534F2 for ; Wed, 3 Apr 2024 18:16:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712168188; cv=none; b=iDHVHWEbupJOsWewbjqR6HmA4PiEa6BHU0/by5nCinu2cpQgVhA6ekPqzJnMFU66/m2s4/L8SRndkLhMFuNgMS2iDzOl8WwIepXZT9DWWoea/TH1bvyBSpJcKblpNp+iF20o/l9Yltm1fnRaz8TqkOV98wREl7w0t9fjC9N4Fkc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712168188; c=relaxed/simple; bh=VFiK45j2Q+k25OG6ST/L3ExJ/1D7WWKaEd9JXrngPjI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=oSKV4Q8UNVlRf6Eqt4Hjv5i2kEmkRZcTsptnbhazjCK2sXbdIuE8QAnnltOMEYokLKLLzhB3ZP0QUj2fJBLi11JLNA16mVIys+Jlkf7fBf1GxwaPcwgRn31XtKhVcKLx4uaAjFRwzUgqfJxVdLqaXy+xLURe5zMQXOL3aL6invY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=rGrjwiBa; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-56e0c7f7ba3so2914a12.0 for ; Wed, 03 Apr 2024 11:16:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712168185; x=1712772985; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wNELuWdWa80XXRXdRCDWUU8putHnEOf7PvgbPFwUh3I=; b=rGrjwiBamwokjHSr0LoUryiPjR1nKxLARzz67P808l9jQ0HOgpcvi+wqRkEFN80JU4 ne6A6MOVWyFM2YNKc7Jqm9COE5RJ4oFlWmxc97Vpe9H9tNJaz5JFZi0Ab3ciswUvuzAF jJsNkx1QIiuRCFzJ0Kl7bU3rh1txCUtoxIK+Y0vatw6B4UFn0UjC+eJlBnp9nIDK1EGy 3dVyy+k9XTg7PMT/RABZeOBWYDNbn9+S+1CV2BVEyQNg55GKXup1urMZxdS7/3XF7OYp qEOAaBeL/7aO4xAq4Nh1Jp76tSIxyt70HoiiAQXUz+6e1+6HvXZyyISPRDtF20+HuEri aF5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712168185; x=1712772985; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wNELuWdWa80XXRXdRCDWUU8putHnEOf7PvgbPFwUh3I=; b=D7Cw9jT+yZjP1eUFcqnzF3uyv5OrN1l1mW9jhx975MUO0FOr0M7q3st4BAKyRoPh+M 6xOMyYXVymzhY3Nl/wucKipbtpzbXrHWqHFZHcvsB+toZCZEF6Tp+V44rmxZJl3NCAdy mxI5QRihQI+iFHTaqivsblZXprORHQFwj3bUx6tkZJ+aaYGULW9lixoJDsuPuUm5AtY/ X2kZzJd3opt6WyBVwxPpNQc82Yp3yM8rmD0FGjHO1TRB7Ief/qia3UHg0fF7/z++6+uc LMeLmRVD4SvTAi0N4WEatlJ0KQmNP779281qk0SpbebqFSWm3wKnB+rJNcxZD66+AOqv rNGQ== X-Forwarded-Encrypted: i=1; AJvYcCVZ4bQZ/62CDdv+kBVGhPkz9wwtkhhtMDP3KMXNXQ7STR+OOZne0jCnwEqQcXfu6aVRLElDuMIVz2P1FBvuy9UC2rHU0sfjxBZk+2sa X-Gm-Message-State: AOJu0YxKLTAwuVdf2vfiPgiM5faJjxmVeLF/ZDbxxwwF68SfVqHNDTm2 5C4jqO0/sP8flSwfDbgOYaLJmeOckVpuirODPl7OY88dxUhOCEA99n3DXDBHYwbzL5KoyTnoWth QPVH5aSygc4+S4fkvqSUItGEd9iQkPREpN98= X-Received: by 2002:aa7:d645:0:b0:56c:5a43:5a66 with SMTP id v5-20020aa7d645000000b0056c5a435a66mr236161edr.7.1712168184752; Wed, 03 Apr 2024 11:16:24 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <87sf02bgez.ffs@tglx> <87r0fmbe65.ffs@tglx> In-Reply-To: <87r0fmbe65.ffs@tglx> From: John Stultz Date: Wed, 3 Apr 2024 11:16:12 -0700 Message-ID: Subject: Re: [PATCH v6 1/2] posix-timers: Prefer delivery of signals to the current thread To: Thomas Gleixner Cc: Oleg Nesterov , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 3, 2024 at 9:32=E2=80=AFAM Thomas Gleixner = wrote: > Subject: selftests/timers/posix_timers: Make signal distribution test les= s fragile > From: Thomas Gleixner > > The signal distribution test has a tendency to hang for a long time as th= e > signal delivery is not really evenly distributed. In fact it might never = be > distributed across all threads ever in the way it is written. > > Address this by: > > 1) Adding a timeout which aborts the test > > 2) Letting the test threads exit once they got a signal instead of > running continuously. That ensures that the other threads will > have a chance to expire the timer and get the signal. > > 3) Adding a detection whether all signals arrvied at the main thread, > which allows to run the test on older kernels and emit 'SKIP'. > > While at it get rid of the pointless atomic operation on a the thread loc= al > variable in the signal handler. > > Signed-off-by: Thomas Gleixner Thanks for this, Thomas! Just FYI: testing with 6.1, the test no longer hangs, but I don't see the SKIP behavior. It just fails: not ok 6 check signal distribution # Totals: pass:5 fail:1 xfail:0 xpass:0 skip:0 error:0 I've not had time yet to dig into what's going on, but let me know if you need any further details. thanks -john