Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp211097lqb; Tue, 4 Jun 2024 09:07:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVaj9jMrffsFeWG6yxBqN+uPyKP8avGzoIrElahnXRAjN13UB+bImkgjYp+FiPhV3vGrtNwPRqz3Wy0DNGLcNdONEHaXjL19SgfoZ/wiw== X-Google-Smtp-Source: AGHT+IGQwU2WgpS4WKl8zg0s5tG8KHbZQgtBLr6k5SCiELgIXP/Ldbdqdjbqth4sUrBQu5kVwgAW X-Received: by 2002:a05:620a:60f1:b0:792:b9e7:2f1d with SMTP id af79cd13be357-794f5c8793emr1254602285a.21.1717517265912; Tue, 04 Jun 2024 09:07:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717517265; cv=pass; d=google.com; s=arc-20160816; b=kkLRsyfsyac9VdcdRlhDyk4OxP+wx/P9iZPwq2Nfz88+0x0+VscAWoHG92vodoGidD eVV9VgqNnyaG8iz7vZuGV+w5enT3vDt/11jEhFBqlqA3eWCMWhwVfr+2BsnJ85biooJc z6Hxu5btu9+Fk3Ur/JYVGK7YGLKgczpJ+pcIcEB8ygyB+gqSEdWNcXS+tErC+neb5GE+ WcE4//Y7H3a3Erc3o0XzFunCMs6ejchc7P6YYSX5WDSf/CepcGUybhV5nWZsl8bOpmpp 3r06vqgs9GNAJ+GTkzBQeWWZIl5nHUzrAMD0e0YwZwlnI/J9Lm3P9a0nsf0DFxbujfUj OofQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=aNLMmrtRqyR3S0obQrH4DObn3P8MphMPMTJP3cciKvM=; fh=CKbik9MQo9aDws/JHjYDGYBAsL+yoysfs8JYL2qf2OY=; b=D692uHilfWPPyFRcoXDR1BmFMQOhY0lacBOZ1OL80yO8wcTC0w9IdL7sTnE406zA// L8NiEJPO3jY+YCJbwuAW3NinYci2M7mn/h34JMXNOK5arvvIQ7Xwrcvtkp1y8MXJI89o rTPfYPSPfzofW8Vx3IlKHIxnOA4KDiQ/U1NYLOMmgQRWmNDBgMzwHJ/opQlyel94qGQh 3dob5lt8ABJXyIBhkvL+S7400q1LghYQUE6D4fjM9RY+TJBfWvzTR1UO0imHV383JBQw 1B/Eqxb0/UDBb37WyfdoUt7S0x2CkG3zaCtM0+yXwU/Qg4/uVqPOBWzj/Ns/Jc6vKHOB 1JJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=hFtnqX57; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-201041-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201041-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-79501d24904si273971285a.25.2024.06.04.09.07.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 09:07:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201041-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=hFtnqX57; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-201041-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201041-linux.lists.archive=gmail.com@vger.kernel.org" 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 9F3561C22A1A for ; Tue, 4 Jun 2024 16:07:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07E33148853; Tue, 4 Jun 2024 16:07:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b="hFtnqX57" Received: from smtp-bc0f.mail.infomaniak.ch (smtp-bc0f.mail.infomaniak.ch [45.157.188.15]) (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 DD2B51487DF for ; Tue, 4 Jun 2024 16:07:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.157.188.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717517226; cv=none; b=dnRYgcB9V559cSxtq5yPI3P+Sg3uBt1JeeMDzLAplEu3a+XvQWoX5VY5CDfmo4Dfjjtdt5hJC21mkYmUiROryqQxY3FAVtAIxivwvORLgXmluALO2U8GbBMkAeYHD8IgTNclc6A/1h+rLmxN9Nm3+WuN7Ocy3QW2zNJO5xmK0cs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717517226; c=relaxed/simple; bh=LiSw4cTkRlKkl50Td/1EOWuYousa7uj5W+u2v+62BuQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=scU4YaDR0zRJepYovtYNzbBiNAeeKBy22UojSO4gqlb0LqZJvtTamg+Hd1O6WAMmA6zNuj3Rj95VIVim2m+7Zi2Y8hNBYZ9J+jnVttWBy1lGalyHwdQ/DQlEvaECdw1gHYWNdAMBVinBL01WY3ayujUwPq/khFmC5IAK/THFrKQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net; spf=pass smtp.mailfrom=digikod.net; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b=hFtnqX57; arc=none smtp.client-ip=45.157.188.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=digikod.net Received: from smtp-4-0001.mail.infomaniak.ch (smtp-4-0001.mail.infomaniak.ch [10.7.10.108]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4VtwTB71FQzR2Y; Tue, 4 Jun 2024 18:06:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digikod.net; s=20191114; t=1717517214; bh=aNLMmrtRqyR3S0obQrH4DObn3P8MphMPMTJP3cciKvM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hFtnqX57SJl/4Fh9aQvCi1KoonGg5N4DjhRPZByVGizbDmtLtvsZMh03LYRvUKPzh oluqoBSNi6W59lxCYFr6Va/1Ifx551otm6KY9D1p5DEAHJdc3nW+DCr57SHC9r3grY pCgBICWchLUQPM8ecx8uhp9WxlYZ68yjuYOOyKQc= Received: from unknown by smtp-4-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4VtwT80YykzC0N; Tue, 4 Jun 2024 18:06:51 +0200 (CEST) Date: Tue, 4 Jun 2024 18:06:48 +0200 From: =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= To: Mark Brown Cc: Christian Brauner , Greg Kroah-Hartman , Jakub Kicinski , Kees Cook , Linus Torvalds , Sasha Levin , Sean Christopherson , Shengyu Li , Shuah Khan , Shuah Khan , Bagas Sanjaya , Brendan Higgins , David Gow , "David S . Miller" , Florian Fainelli , =?utf-8?Q?G=C3=BCnther?= Noack , Jon Hunter , Ron Economos , Ronald Warsow , Stephen Rothwell , Will Drewry , kernel test robot , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v7 04/10] selftests/harness: Fix interleaved scheduling leading to race conditions Message-ID: <20240604.KaT6shae5eip@digikod.net> References: <20240511171445.904356-1-mic@digikod.net> <20240511171445.904356-5-mic@digikod.net> <9341d4db-5e21-418c-bf9e-9ae2da7877e1@sirena.org.uk> <187423fb-ec78-4318-9da0-5b27df62b71f@sirena.org.uk> <9eb1e48e-b273-475a-9740-52deedf11ee2@sirena.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <9eb1e48e-b273-475a-9740-52deedf11ee2@sirena.org.uk> X-Infomaniak-Routing: alpha On Mon, Jun 03, 2024 at 06:22:32PM +0100, Mark Brown wrote: > On Mon, Jun 03, 2024 at 05:27:52PM +0100, Mark Brown wrote: > > On Mon, May 27, 2024 at 08:07:40PM +0100, Mark Brown wrote: > > > > This is now in mainline and appears to be causing several tests (at > > > least the ptrace vmaccess global_attach test on arm64, possibly also > > > some of the epoll tests) that previously were timed out by the harness > > > to to hang instead. A bisect seems to point at this patch in > > > particular, there was a bunch of discussion of the fallout of these > > > patches but I'm afraid I lost track of it, is there something in flight > > > for this? -next is affected as well from the looks of it. Thanks for the heads up. I warned about not being able to test everything when fixing kselftest last time, but nobody show up. Is there an easy way to run most kselftests? We really need a (more accessible) CI... > > > FWIW I'm still seeing this on -rc2... > > AFAICT this is due to the switch to using clone3() with CLONE_VFORK I guess it started with the previous vfork() that was later replaced with CLONE_VFORK. > to start the test which means we never even call alarm() to set up the > timeout for the test, let alone have the signal for it delivered. I'm a > confused about how this could ever work, with clone_vfork() the parent > shouldn't run until the child execs (which won't happen here) or exits. > Since we don't call alarm() until after we started the child we never > actually get that far, but even if we reorder things we'll not get the > signal for the alarm if the child messes up since the parent is > suspended. > > I'm not clear what the original race being fixed here was but it seems > like we should revert this since the timeout functionality is pretty > important? It took me a while to fix all the previous issues and it would be much easier to just fix this issue too. I'm working on it.