Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2171402lqa; Tue, 30 Apr 2024 09:52:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWIgaQXPH+0eJyOUag6gS4WiaWxG4f3nJsWWKiTClERMQ4AcmegPEm0KZQjMzkzT/BRGtVrfhJNu1GN4SJ6rDK6GNUhhVo1NjKeyegZ+g== X-Google-Smtp-Source: AGHT+IGDvKR2mwzN/9WS3DUjyBfOGMJQ5ucDG/5gxpJNo1cO15vPt9THm4UfwTDV08r/Vt7bSvc+ X-Received: by 2002:a05:6870:a10b:b0:22e:de21:e084 with SMTP id m11-20020a056870a10b00b0022ede21e084mr34170oae.9.1714495976614; Tue, 30 Apr 2024 09:52:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714495976; cv=pass; d=google.com; s=arc-20160816; b=tiR32USJc+iptQbmu5kWGNLTC1nr1aM2J6TEDU9Hk197bM5Ri2RluDMDJbogTFyjT/ HIYNm3+QjGWLNaoQf1IHDLxZbVCs3EcWgXXKG5ybxIptcF8vfW9unjiNa/U8EmVWn27k XUSxYmMqBdyVAKt0Yy3jpZxtfxJNrcn5ODDNXg2/BFLNq+R4wmirC0d5oET0HELP+CYZ lCHUnHTD2ec08lhCxX0vM62h2nSI4JFih9h9wSpahbYM6dd6cyVnCbqZ5S33hBxsk/yu ksLywfOBBT8Is/4N3VRkiO6vjIMqGZlTPKOdq7X4i9dc2dRPKHsnGKTIINUi1CAKwzJL dPjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tIrMLB4msMRuE/7a2kEwzm2wzpyZXm5c5jjcBesFl94=; fh=kWRmbyacNpJwMUxkA5Md1tgpqORX5JbHT6sx8VH8frU=; b=tCHR6PvQdqr1NTf00LJmmITU/j5JPjlBAk9zckUB3wGKBjlj7f0xTSuIKEEYclNRPq 6inRAVtILe/idfptORjKKQSO93oQiRWyy8ZahTW+F2e6FSjTRSYwnWrxYmUXU+NIAUKS kWkcXdi7P0Y+FqpIsl0CQ0nzEPYXjZVo+tRjyQNW2qi26ow1poJ1u2bNxtHBlXigrVfp qWyUPndza89+j3cboi8wZkNgd+SMrqo073TFEimIOaRyMpGoHwX1qTPDNpNemkJeFyDa Z17Rj72ACq4XFwrBmn3Vp7+9MCGLGX0wzGivGPLJ2gPQY78AOGKMYWoAH0x06QM6/W1L AwVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MwqJNSEx; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-164426-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164426-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l22-20020a63da56000000b005e83f479bbdsi21536558pgj.239.2024.04.30.09.52.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 09:52:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164426-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=@chromium.org header.s=google header.b=MwqJNSEx; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-164426-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164426-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 3B39B2870DE for ; Tue, 30 Apr 2024 16:50:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8468179965; Tue, 30 Apr 2024 16:50:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="MwqJNSEx" Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A20CE1EA74 for ; Tue, 30 Apr 2024 16:50:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714495815; cv=none; b=YIsPTFWZGlrnAtWPwUtgiQsySg5I3yIC/OIfI1MPJ04HpzmrF+Riri0JAC7uk2s8MfKKi2oShmk+dNj1YBtuOA9JmfNfXCXjsJ0cb9pw2OtWX5ZDB22/M/hsQMCVqqE4ZsHJ5D4fFjlfLvLAaAUOKt9mZHwOA7OU/T3MFu+4Ow8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714495815; c=relaxed/simple; bh=B9pKs/nyNrJf9S9E7C6a6HGmfe6zf+FJV6/BPMT48fg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JBrjcpPTr7Y1mTr3QunxwgW+l3BMsg/2Ots0uBtTdUwjuxKBol4rX9MpaaqwponGu/Hc7uY3a2c7j5rB3auwOuXL82n/4bXN5NXBTbBehjcNmh46pKQRNHpdbSGtOt04tdE7l20v7ExFhQNyD9duqVR73KcLF/Jai8Kye+0jt94= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=MwqJNSEx; arc=none smtp.client-ip=209.85.160.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-2390335b67cso1749417fac.0 for ; Tue, 30 Apr 2024 09:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714495813; x=1715100613; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=tIrMLB4msMRuE/7a2kEwzm2wzpyZXm5c5jjcBesFl94=; b=MwqJNSExZ5uNVylV+qzYSX6bi3e+demjBLsVZr9DW0+gQ3n9V8vTRUEEGtf3+mCu8G qXOMJWO/kQeWc5voSmF84tG1Fb227xzVQLw9v1zguLRwdpKoPh0aMAaqN0p68R0Tyo9O E4FC3lnbj+TPArb2e4KTbVQ4uuLdS6FmfHzvo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714495813; x=1715100613; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tIrMLB4msMRuE/7a2kEwzm2wzpyZXm5c5jjcBesFl94=; b=N/cBHFFwzJfJ+CqXFNLKp1yN89wgb+66TNVT5hBVtOZxfVIy92fDLCbIttrUDy+zCC V5q1kRZHB/cgh1/EILGKnsXfcQmOb6F0qIul0K8khqlhkYacYIwxuzj34PBbCtmfmi0d 4e5Y3/RTkDIn8E8SLZ8br/mjf4KpVVXzcvK3LND+9ualTDX71jYEI51IvRDWWzb6sHPT 9H4DOczmPHK2zeuIiH43hsDfpMJNE8e/U/+/hrZiu1zPro+q8Er2eKHKkf3RoUECC/jC 2uxLmcizpIaVwldWEwvvSsmcyNjiJ50Ae+Tf9UGxpqlj9rnDICciQqLgUdlLanQ8JQJb Q16Q== X-Forwarded-Encrypted: i=1; AJvYcCXLZGnOSvjeiChud64SQ7R+YP4MoSLL25oYyOS/g1rb9NSdUzof1cFbCuhHZnWWmSod0i6/QHplAs9yfppq2GaD/WrT/jSNnXuIoOqj X-Gm-Message-State: AOJu0YyDLAWlOa/57PH6e93ZznbrcuudmlDHx2iEznPjIHOW6nknLBO8 zhKqvw+QWngGKL8tMJOIXpjtKWUWdtpvJBs7RbWU7zSQfDT0XE2jS8ndkAXfJQ== X-Received: by 2002:a05:6870:8707:b0:229:6d0e:203b with SMTP id k7-20020a056870870700b002296d0e203bmr11449246oam.50.1714495812769; Tue, 30 Apr 2024 09:50:12 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id ge3-20020a056a00838300b006ecfc3a5f2dsm21255300pfb.46.2024.04.30.09.50.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 09:50:12 -0700 (PDT) Date: Tue, 30 Apr 2024 09:50:11 -0700 From: Kees Cook To: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Cc: Jakub Kicinski , Shuah Khan , Mark Brown , Christian Brauner , Shengyu Li , "David S . Miller" , =?iso-8859-1?Q?G=FCnther?= Noack , Will Drewry , kernel test robot , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v3 0/9] Fix Kselftest's vfork() side effects Message-ID: <202404300949.28CC6811C0@keescook> References: <20240429191911.2552580-1-mic@digikod.net> <20240430.eudae0Mahbie@digikod.net> <20240430081304.0cc6bd8d@kernel.org> <20240430.joh2lae1Ooch@digikod.net> 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 Content-Transfer-Encoding: 8bit In-Reply-To: <20240430.joh2lae1Ooch@digikod.net> On Tue, Apr 30, 2024 at 06:38:40PM +0200, Mickaël Salaün wrote: > On Tue, Apr 30, 2024 at 08:13:04AM -0700, Jakub Kicinski wrote: > > On Tue, 30 Apr 2024 15:54:38 +0200 Mickaël Salaün wrote: > > > Jakub, can you please review it? > > > > I looked thru it. I don't have the cycles to investigate and suggest > > a better approach but the sprinkling of mmaps(), if nothing else, feels > > a bit band-aid-y ????️ > > The only mmap that could have side effects on existing tests in the > _metadata one, but in fact it would reveal issues in tests, so at the > end I think it's a good thing. > > I'd like "self" to not be conditionally shared but that would require > changes in several tests. Let's keep that for another release. :) > > I also noticed that mmap() is already used in test_harness_run() with > results. Yeah, I was initially worried about adding this complexity, but at the end of the day it actually makes things more robust. I'm in favor of it. -Kees -- Kees Cook