Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1506754lqa; Mon, 29 Apr 2024 10:16:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7jkgulr4Aq+r/WZQh5Nbwss9ozKjHuFt8kExpjuG3v/FubzADfd+1xhqZygTABymJDPtTktwzoqZeLyfJQAhlxF4u/W+7RJkeJ4LvrQ== X-Google-Smtp-Source: AGHT+IHJHbazxq/fmyII1ky24hyQh+FYz0pa3svhDKCPhwSFNL6An5wlr3D4ev4xYC6hleqqAbVn X-Received: by 2002:a17:903:283:b0:1e6:34f9:f766 with SMTP id j3-20020a170903028300b001e634f9f766mr8782180plr.57.1714411017413; Mon, 29 Apr 2024 10:16:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714411017; cv=pass; d=google.com; s=arc-20160816; b=Xn5NmVIfGNleRYTZu9yUZ4g+Bt5j37Gj4BT6+36dGwB+83HoVrDlCDKyzwakcDGlwH 1c26sTea/txktPBPIYSt/d3cJ/NjtuNSJhEVYFoZMbCeSR4r/FHTiDLSk4dLeNgeAT8K Jd4SvKOWuhj6fwL6qeA6k/Kz8Svwi5J2WDJSr956LG9jTH1o+JpqjevcYtE5CCpMOYXB +kGFbO+Z5L7JUyuZ/lz5IFe/H0V+KQZf7gAZsY9yPX9OtAc+9bAhqIsecTwywWMgeHeT prJKV6zVhsG8Pkwbo0rf5ox+nSIolrdyIG27i0fiaiqCLJsO15bMPbTmlA+CfCVWMxPN 4zhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=I4VuXbyZEOHLFTMXUaqJknaHnEB8he9v8y9S9fuadu8=; fh=vI1TP+4YF6jsnaJsBk0R/g5/mGDH6DldMErrGGtMaf8=; b=IVLdNZ/EC7UUriWoxX0IknqBzJRujN49POqUrPEjqhQI6XFf6u2LhAaAUnPjVujBWK Ll3AYgxjXYp31RarA6poGCr8fYBTV/u4MBOwU+iqlAM2UiYIkjbfJrhC3luNem4YCRpD uz+2qEGhz4gx57geKvgZPO7qX6Aks1FpUenR4YsmPB/EVWxACz/c4hDwMBBy72vVSTaJ yF2Z7yBRO654DPUY8jDssglX8ynyX7DWVRTbGHbIk7vSOJuHOOlgs5C02kwVgTlSYoV5 /3dK2zB0ZwQJ+HXjLo00fPKZKvI/6FceXi7gKomoPHXTHNeyA9SC/j1KxtVLkcI+A2Bw ZyYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mUJtqOK1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-162738-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162738-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 e10-20020a17090301ca00b001e7d3e3dfd2si20284039plh.425.2024.04.29.10.16.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 10:16:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162738-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=mUJtqOK1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-162738-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162738-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 121E52831E4 for ; Mon, 29 Apr 2024 17:16:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87B6386641; Mon, 29 Apr 2024 17:16:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mUJtqOK1" 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 AB43683CBA; Mon, 29 Apr 2024 17:16:49 +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=1714411009; cv=none; b=DWDoVNBN50RGlvVRhx0dnoi1i6KC1k+Gu38n4pEjBDkgfhj+E+++xyYGE0Fj6fA8R/i1QpMSdb8wlK90k0kqHGKyB4xU9GIYA4T1bKYLGRrGRpZQGFn0tIndARF4cTm3wMS6Eupt0FU3lWZ4zCf3/tq98O3UDp2Q9t64YJSrBWc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714411009; c=relaxed/simple; bh=Jf99MEr0EpcNQAp05QOEx0Ed6w8E09DIYgzKMwWYMdI=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=phoYOXISRSMn0Ea87bqfp/asPpN0hWsjTJGSTf8kBvWwWsFCdjfP/k3J8x6qw2cgkhGlRyLYyRNkComGBBhLPF7EZ7f0JAdSiKu7Zd9t+RO8U3TJ2GLwF1msc4YPkuNnrcclEvugQF1rXMInzhJizMwY4rmZkGb1E/Khwbgq6xs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mUJtqOK1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8A6DC113CD; Mon, 29 Apr 2024 17:16:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714411009; bh=Jf99MEr0EpcNQAp05QOEx0Ed6w8E09DIYgzKMwWYMdI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mUJtqOK1t9bYyIOz16i4YaVlAB03uNUlv1ln53D5j8C0+THNP26tsWaytERDaM8bl sF+HbyO4U2QD0MU/QpCaZkoL7LJ6keopNVaReHU7RuG7ojYW5lTuH6eBX1jE0bdWry WFC+qAI/oHyK1d9HWAOMr9v2Q/b0E1rvFjNP8zfUk7XGSC6aeht1J6jah9WuSnHMVB nSWf2XEGpuR66IOUTIyS1PEap9vOw+NHORGWN6CdfYjSKkAr3Otsd/tn/spJUfyXvb 3wUAifAU8XmvX2WtrDRsBJn984bQMMtmx8izdAa53uD0mSqBcdcPP79n+Lt5A5oZva Zpx80WQrAgT8w== Date: Mon, 29 Apr 2024 10:16:47 -0700 From: Jakub Kicinski To: Kees Cook Cc: =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= , Christian Brauner , Mark Brown , Shengyu Li , Shuah Khan , "David S . Miller" , =?UTF-8?B?R8O8bnRoZXI=?= Noack , Will Drewry , kernel test robot , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v2 4/9] selftests/harness: Fix interleaved scheduling leading to race conditions Message-ID: <20240429101647.756a1ac7@kernel.org> In-Reply-To: <202404290852.C327596A@keescook> References: <20240429130931.2394118-1-mic@digikod.net> <20240429130931.2394118-5-mic@digikod.net> <202404290852.C327596A@keescook> 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=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 29 Apr 2024 08:52:36 -0700 Kees Cook wrote: > > +/* Wait for the child process to end but without sharing memory mapping. */ > > +static pid_t __attribute__((__unused__)) clone3_vfork(void) > > Why "unused"? Right, static inline is enough