Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1111648lqj; Mon, 3 Jun 2024 10:23:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMCttIJLGXdYLln5pICadiNr4Q8onVYJ/IHnZ/n8ujDcN3eXWkEY6Lm7yOPk9/+bAFr7d9k4tOoZijPRfJxMleJBNtqOCQHPwtEqPSUQ== X-Google-Smtp-Source: AGHT+IEn3WVCVIojCLFXCzErG0lWClLVzi8+N3w4MJ9MUCxfiL9qCkPOG589BC8mhO6rWWjNFOj1 X-Received: by 2002:a05:620a:564d:b0:792:c66d:51d3 with SMTP id af79cd13be357-794f5ebf275mr1082961685a.68.1717435390118; Mon, 03 Jun 2024 10:23:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717435390; cv=pass; d=google.com; s=arc-20160816; b=U918UDPdG6u4bOnmrlEHMQlWLNTcUzCjYHOd4WX/vBC6s88IItPMG6WhCwNIksO+wK 7BlZn3hx65y2KsXSCGSLIdHILldEFuNQCwivo6PIDQizCaMSVn85TpVFeNEv/ncoZX1u eD2oczy10nnn++wcXLQQ82RpbLDs5niyry+69vj4jlBhRGbYKRw+aymuVtAl9BFJl4PY EJGCmL+cw6IFjxrFbF15jMt7jBLoyLLwNmuPRAFNFSpJVkOF3myAd/ukLXy+QEgBSQfF iVDorIt6CJUdSo2bNSZbMXJcwpEoLk8r2lOINJNIAghphCPF7BS3uj3HQJ5Puloj+P1i qPSw== 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=kplrqPwHXe4YzGDbeKhJWllIFrmAASk5khjEFr43Qhg=; fh=4aFqpUnIqMDOrwy+UmOMpnRfEf8T6kx8IgvViz56Qe4=; b=l2C8XkjFuHbmeknVv8UDSNwPy0i3+n3N/2dkoTgASnLYWAlBaTFeL+GMoLCZO7kWZa n7+oQ9mOJxwEwp6EHodbm0NooFDzRtvSDJjUkXj/ERdEmZ8R++EawGd29oDZpvLenKms Ji9W5+toNnTmAGKI68W5Cr78t4TlWrM8bAWgNwiJYVwWviFGc5PHSyZSpyhzaI2////F k2ZouamG1Ajq62s2TshkPZV4NyCjh8ErnFr41MpbDsEdmKsnMRxNmAIMCXQX6LZ90mcB kJXWr38iAUVW5UfwTDM/bvdRL9ovKrp9PEzXOVXoC59LoRjtp4+DDLozz09EM3j69H0K gQXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ShGdTUIW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199504-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199504-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f30631bcsi884695685a.348.2024.06.03.10.23.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 10:23:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199504-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=@kernel.org header.s=k20201202 header.b=ShGdTUIW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199504-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199504-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 784FF1C22231 for ; Mon, 3 Jun 2024 17:22:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE9A7137772; Mon, 3 Jun 2024 17:22:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ShGdTUIW" 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 BE80C1366; Mon, 3 Jun 2024 17:22: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=1717435360; cv=none; b=DWtorLhX/bCEnlAnjHI0COvSlOKrdLtetpcivTxXu7Wu61y466X76zaP1GSftJh3bh6Jf/dLrupyvnYNzOpJm2uTQC42sKDCpx3B31xAKcExUU2CYOhfZuALGuMzljOqSuXDS4Bm2/Cp6mu0apOKX2y8yqGhWHaoHubtjEmWWTQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717435360; c=relaxed/simple; bh=PAcBig0jr2i/6jcLdHClnRIG0MzC33BZQfOwMSR1CeY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ua7Vu2pnTaNp7oV+s+RiWP6mr1ZMuGrufafjK7/ic6ubQoGII/YKes5+diJMQ6zaQSQoNHXArzOuBc6CGKshGicy4nhmR0z8EjSGNhrP9wlbctm3SCZ2vtno1jxycOpzjrVh9EgCWAD9GN5NU97F+PT/aUuIgwoQYkkQvvMIMSw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ShGdTUIW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E2BCC2BD10; Mon, 3 Jun 2024 17:22:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717435360; bh=PAcBig0jr2i/6jcLdHClnRIG0MzC33BZQfOwMSR1CeY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ShGdTUIWtmzffiVjGvECIt5B2x/fwBnoKj6QesSZaUgfY9ZNM4xxYh+FB/v5gNubB Y6hlpiaX2JT+xl4m9pwrbdO+z9xe1ENN75Wgi/WWNVRWe+LN8IZNjJQuF6umoh2kKN DaaN2G5lLIXuOoVucv4Rap3sKiGmv7ehqOZG5q4V8RzX3oZgf2J0nut/frhmfVi/Ny LQctRCkYzDWzYub9hJAGYVrK7+vXbb8jfPN6EDYBbO+4v6/tHW2RBDI5MmrJiDkk+Y L83CD+yokh0imQYenPefjX+kpnycLECwQ0cJuh9I7ZAG1kvwyXNhhE+XaOj1uMftcN yfaxAgcuhkzzA== Date: Mon, 3 Jun 2024 18:22: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: <9eb1e48e-b273-475a-9740-52deedf11ee2@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> 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="46cg5PHekJwEmoXH" Content-Disposition: inline In-Reply-To: <187423fb-ec78-4318-9da0-5b27df62b71f@sirena.org.uk> X-Cookie: Don't let your status become too quo! --46cg5PHekJwEmoXH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. > FWIW I'm still seeing this on -rc2... AFAICT this is due to the switch to using clone3() 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? --46cg5PHekJwEmoXH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmZd+9cACgkQJNaLcl1U h9Dq9Qf/ayW5k2h3cIM8VUJF25GNHiI9zuUbaWYwfO31cGn2pVzpron7bMjMPquc mSEU7tXShn2QIvp2ihL+DGLgAWH8YPqoE6U47ifgpIU2CNHJhd6kqdqr8gBSqqoh qJ6UnxIlpcMRaudyTcBD+6Jp5riheZnt7Fhaiysdlrp0ba8ByRGktZQ6aRWCy0tp pRTY1U/MdKZ7dJ7jfNx2fKsmpgZnesoMnCjDePEc4/UqOatbJ8Yug9F1+CgmKM8J YPNU9qRl7KqV+1J/FAbSN1Ncla7G24E5xZHk+wlg2+YVfEGSuOqETgviczCbglPs u3axeb+jU57c8gYgrDhSASu5UN5IMw== =SmQ4 -----END PGP SIGNATURE----- --46cg5PHekJwEmoXH--