Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1574490lqa; Mon, 29 Apr 2024 12:19:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNgtjYe75DmgFqpsa11YfCw5Ku99k+aI4N40sAxEpKTnrsmxEfimmvuZp08+EvAgcTk5Mnrik7G3JBn5eRNZnEkg/ikK0nWiexcd2Riw== X-Google-Smtp-Source: AGHT+IFP8fu8C0f8w/AXFq4gjPzueLoEezd5W4NP8Z5sncPYMwccfOiOCRAphOg1cokqijt0vSMK X-Received: by 2002:ac8:5f4b:0:b0:43a:ffa8:4a99 with SMTP id y11-20020ac85f4b000000b0043affa84a99mr2681228qta.38.1714418345732; Mon, 29 Apr 2024 12:19:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714418345; cv=pass; d=google.com; s=arc-20160816; b=RVXdnb8uhkKDtxCNGGYq4+pf9h5evGAeAsasWHS0js2eGOFdlWStYyLTk/pbpYdfF/ sUTlI62ZSSgrmUMJts309qs5qjMxyuRg4w/b3+IYsmcQKFl0YH6YgHQlYRCjhKhZ9Rcv vIWXWFDPYgbYGv5aBkzWENuxBng4r6i0ffxAdWx7aMufowarjaHkessq1XHzzD8/vTo0 mtuUfN0ukoaq+XQP6vNwXNxAMUOMV3EM7Bjq38PhZDOsFBAbWUXuAgbYdhqBQkWWfrMr lf87xqLvJNl+X9lhUTvaX14LLog9fYhJ6EtAbG0nv06gQKu6+cT8xfl9Vaj/XgFtR/Jf noJg== 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=sTCGAyj1DWU+vCdgehQWVx3al61yNjusTLctcFaTuy8=; fh=AP73vUGjaExtE7TG3j81IgaaeIIND7369+o3FmDlHbI=; b=P9IrBXTlyF9uNymvAfWRLHSHCi3yj1f0ddxWZb9f/sf+izHn/MrnKU7rqqKMr/KOM1 R366ICKgWt3kcvm3LSQubB9/SN+8fjI5dxlVKxMm5MoeMameRk5CvUl1e+0pIKRMEo1R J5ZjbcldU2JMpjkcJxaXjtxrmMaNTI1XvHlt+5c1zDAlo+HZbXbM0/JTgfICmvnRGxnn BnU62cWgcABbCrFBhrPzrfEVVUKEnrg52yFI9g+6OAWnDyL0GXEt55iC0qVdzny60e6J 9gr63Ge15dQ3DcjkJO4Ml4AIY/JYqLCNZaqiOz+t6uUKSD1+bzkVeb/IXrgpE4YqBeW7 10Iw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=XmkR207c; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-162897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162897-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 ha7-20020a05622a2b0700b0043538d98246si28106441qtb.401.2024.04.29.12.19.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 12:19:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162897-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=XmkR207c; arc=pass (i=1 spf=pass spfdomain=digikod.net dkim=pass dkdomain=digikod.net); spf=pass (google.com: domain of linux-kernel+bounces-162897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162897-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 740181C211C2 for ; Mon, 29 Apr 2024 19:19:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C90513AD38; Mon, 29 Apr 2024 19:19:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b="XmkR207c" Received: from smtp-bc0c.mail.infomaniak.ch (smtp-bc0c.mail.infomaniak.ch [45.157.188.12]) (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 639F413AA45 for ; Mon, 29 Apr 2024 19:18:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.157.188.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714418339; cv=none; b=GJX54AxiXVx2iPfibU3C/wxOvqFLH2BR3WFxpRUt/fgkwESva5X29fevoW5ea4NmL7fGPp+rSRAtJlu6z4utIs459QRu3FGuSobm0DDk11j8mD8p1usDfTplKIXM+x/40Hp82WRZeoWiXyjqaH9S6vglIYgzQdmB/+d/T0B+FEs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714418339; c=relaxed/simple; bh=rJgKKRzmF2JN7UHlVGkVK78Xzd3bmyE6CF3mTysODzM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mg/HNSED4An302lJaO3xcCbBX6XQ9zCCNoVE5GTBD2Vb+//T+MefTOBp0ifKcpkw+LnZPefYvTOrRo5RNGtoaFziv5nMPD0RD3urY9EgQ8jhjBrxdknkK1tBT3u3djpqOOc/sgeT2prlDDpN3hW5UKdWI1o2LVKmciFV5xdUWMU= 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=XmkR207c; arc=none smtp.client-ip=45.157.188.12 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-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4VStRJ0rXgzRfx; Mon, 29 Apr 2024 21:18:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1714418332; bh=rJgKKRzmF2JN7UHlVGkVK78Xzd3bmyE6CF3mTysODzM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XmkR207cTzdvhuM7ib5xxNLMcuNznAau20zPLCHzu2c+/RwCTQmPDHThukU9dtGN7 /i/MaIt43BmAXHeA2/zERg3CORptxmTx432yIQ0uf5aH8JgcQpQ3/hjXvF8A91Pr9R zxt3qexP0imMh550Mt2/LYYpFSWN5EkJW3oyCSOA= Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4VStRH17SvzSjs; Mon, 29 Apr 2024 21:18:51 +0200 (CEST) Date: Mon, 29 Apr 2024 21:18:50 +0200 From: =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= To: Jakub Kicinski Cc: Kees Cook , Christian Brauner , Mark Brown , Shengyu Li , Shuah Khan , "David S . Miller" , =?utf-8?Q?G=C3=BCnther?= 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: <20240429.Eitho4foo5he@digikod.net> References: <20240429130931.2394118-1-mic@digikod.net> <20240429130931.2394118-5-mic@digikod.net> <202404290852.C327596A@keescook> <20240429101647.756a1ac7@kernel.org> 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: <20240429101647.756a1ac7@kernel.org> X-Infomaniak-Routing: alpha On Mon, Apr 29, 2024 at 10:16:47AM -0700, Jakub Kicinski wrote: > 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 Indeed, I'll fix that.