Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp225006lqb; Tue, 4 Jun 2024 09:28:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXryQ0AdABLq70sB5hWKDSJVO07aiqD6zP1ieV6eBPnb/vB+uiizhCSEtyTQhidLfHZmZmDDaBMoqqajW16rJuZxkA4NAeVlq1XV3ic8g== X-Google-Smtp-Source: AGHT+IE+r1FRxsJ4aw0Q7bYsVP9sxLWLSixnszWZBuJrjgDi5+7Wxvy9i/6cb7wokTdLHKTDELnc X-Received: by 2002:a05:6a00:2e1a:b0:6f6:7bd1:d032 with SMTP id d2e1a72fcca58-702477bb60emr11701282b3a.7.1717518532985; Tue, 04 Jun 2024 09:28:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717518532; cv=pass; d=google.com; s=arc-20160816; b=DgZSGWjxKz2VwW+dLB4YTxeYgrGZyv/ML09UlFjwZllMs0UIYM+msQ5VSJIt/top8Y jIwtFiPSlXb3vBWjRb5mAOHtqj14T7ZlMvn5+PudC1DO2+WL4ui8bJ2YsWRaywWDQNM9 6tMraQG+cthB3tFspJlE1Zd1XydvH8G64eotKXedK8lCnz9okuauFk8xVR3E+6PeFg9X OU00Ypj2jaMV1nynydbzZlqVQ5B2uGPdqeaZqFpTGW9EQnb4GHCLpqphmry1qB+Jxo4z 9kQtzZxAz3BODHTBw7FvvOJqOGyNhMf/2V1dzCvfxjSj8TYQO27/VESY8bGBFiuuIBhf 4VvA== 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=6A1xw4J0IUPg7SO7M+BUOH09LSvxyBzOFVXbwnVyho0=; fh=4aFqpUnIqMDOrwy+UmOMpnRfEf8T6kx8IgvViz56Qe4=; b=RZ4vGhmVD3xunE4n+ajlmkeKSiZSv3yCOqyZ3M0c05Soz0J5ESNG+3E4WK07zjY7H3 GRtt8DInqNtQFmiGuMDkrMHFVPEMZ5b7LSziX/M1bredWGDREEvhNuUW53kOBIrl14ZN d0ayWJQ0iqa5EoRxe6K+Mq8IIu+adFKYRaK+PAOPyenrblAfjNB091fELwPimiuem+zD MYX69f7/ZnyEEi5HOWatmPz9i1dDM5R3hYIgU9w/Zlglf2EQh3ApiPJgwrzKxjr+0w+8 HNbv0E8PW4NzqXvqDj9Hah5mpUh5kOoXGQikakr7ItRrpakGlDHz84cRWvnA/4EiuiFS cH4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bhEVfBTv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201054-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201054-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-70242e6750fsi8497395b3a.180.2024.06.04.09.28.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 09:28:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201054-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bhEVfBTv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201054-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201054-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1E7A5285B50 for ; Tue, 4 Jun 2024 16:18:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1CB314882B; Tue, 4 Jun 2024 16:18:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bhEVfBTv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 12CCE143C7B; Tue, 4 Jun 2024 16:18:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717517921; cv=none; b=qk2ClEpmyWRU/q1PcXH5QHy8o4S+MctX028KK7h1ZOqgBqvKRiOLMXn5ZfRxalHy79nKphAcWl7KrY7AQYGltk8p+Cw+U++EeneCE5Zb0KlaR5bHoW8bG++LeGOysuX3Mle76inxoBgOmpCzFytZK6lrCqussDJJ+LHZ+s3k2zE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717517921; c=relaxed/simple; bh=bE1vdHtIjSqwigCaLdryxWybdC+nY5atBDg6IDsGPHc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jDtSAhgh5yE+QKAXgdd+ZkD5CO4+6DWZnKnsfHjqXweQB2I5ode3QVP+OZq6gnbXRZoTIRup0G9OwNbYSq9W1zFTjshrRnC23sR85YN+RmY3Nz3j92/BfOslj9iFwzZt8L0E/+wOod7LAMesX+gaMKuCyzwBuV802WQBx5sA6BM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bhEVfBTv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 092E4C32786; Tue, 4 Jun 2024 16:18:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717517920; bh=bE1vdHtIjSqwigCaLdryxWybdC+nY5atBDg6IDsGPHc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bhEVfBTvB89ICwH5kSGyU+pleoJh1UIenKoqhcNlXMpaRnyCpfs/VUD1SN68E+hij QgA3qyEB068crCIK8AtSPuulcKGShjxkaRKryZjzmyMEIZi0TRUCfPM1tdRGU50u1x AtQlGltWp1zvO4lFsyWqRt5t5kWxuuPFaZfZD4CnCi4j42z8v73LCvsDYLQ4y0v1eE H1p+poDml21jEVERJAtULu3WKvdxeQymsrHWu/TRAwwckSdutPYyBCDTCImjOecubP xXty3JGR2EX1zPl0RD+DrpHOyOhjLWTOeD29jO5Ze8ZEEaz2VwCXAQkxh8va+EW7zz rVxYvdNQu0u1g== Date: Tue, 4 Jun 2024 17:18:32 +0100 From: Mark Brown To: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= 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 , =?iso-8859-1?Q?G=FCnther?= 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: <53c0e2e5-46c9-4e49-8ec4-64ef58e6331c@sirena.org.uk> 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> <20240604.KaT6shae5eip@digikod.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="d/oZ8G2r6TlAFN6b" Content-Disposition: inline In-Reply-To: <20240604.KaT6shae5eip@digikod.net> X-Cookie: Is it clean in other dimensions? --d/oZ8G2r6TlAFN6b Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 04, 2024 at 06:06:48PM +0200, Micka=EBl Sala=FCn wrote: > 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... You can just invoke the top level kselftests Makefile but between things being flaky and runtime requirements there's a bunch of noise there. KernelCI covers a bunch of it and would be my go to, I've got a good chunk of the selftests that actually build and run reliably in my personal CI but it has no visible UI. Part of the issue here might be platform specifics, I'm seeing this on arm64. =20 > > > 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. Bisect did seem to point at this commit FWIW, I've not dug into any API differences or anything here. The immediate thing being replaced was a plain fork() though I see it was vfork() at some point before that, and I'd not have noticed if the individual testcases weren't hanging so the timeout was needed. > > 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. Great, thanks. --d/oZ8G2r6TlAFN6b Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmZfPlcACgkQJNaLcl1U h9DBngf+IjDxDtusJc/iSMVrkM3BxNZGYxiJwiwd29R9Z1J4+xF1epkd3KXzUhGK s7k2vCuJcyj3tj0CDKxLbC155dUIryEvIF8o9oJ5xY4z+l/8SSspGxm0Oly8fjZE T3vZLiWmWFyZV6pC9FhXryFLgnCCwmHgKXpMQoRDZGSkpq/DhxYTNAH1n94F2P6e vjEnCzuZb9YvH8ZEG7X5yiZs0Z6lUiVSFp4Uqf3AEFLZBl33JFREgnuYpuSsBo/p vo6UOKR/TkP61x02iuq5QiL0OtuW/pusrq1yDmAlILHzh6z5DYHgf/iNAumjKykx ZxQrgJtk5Fhc8P5nERw/c7Q07LjV/A== =Ezzq -----END PGP SIGNATURE----- --d/oZ8G2r6TlAFN6b--