Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1453476lqa; Mon, 29 Apr 2024 08:52:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+ytCY/ND6PH128sAKUu/XBfEKCrH011tx60XPHaEDsfM4La+HnsAdYzb4nA9fYbofHxHGBryRYAgKrQ6yHIRfiwG+b5BEKRogJuf7sg== X-Google-Smtp-Source: AGHT+IEvZE2IN00+v+lVD+7jjTkZkzR45qD1KQvWD18aGvN5mYJYsCDni2cL9W7CGX8FuUkJ3Sii X-Received: by 2002:a05:6214:1308:b0:69b:16d5:a8ac with SMTP id pn8-20020a056214130800b0069b16d5a8acmr15105629qvb.4.1714405979575; Mon, 29 Apr 2024 08:52:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714405979; cv=pass; d=google.com; s=arc-20160816; b=OaqAZs86UX1adQFdWBqVIf35PEpb4nsT+2FZ2ZRqvcLNGtmsgUpGoRXtkBH5cAJ8ny Fc6uyZb/W9go+IxdkuzK4riX++od9+pzxtJj814bdzAjHaLjkRy2rPVQIuKPU6e9OeQl hl9kmjQYBIHQ3osDBQcGFRr9CQfNgA4e0yMQWobEDn35fDHHLX4mMi/+hJ7ns6w3jD8A gOmUwzWvQhE3h3BM45ARBM1M9xbilTz4L2i3JPEXXDkwd1hn3LxSQ2W58dOLaLsX1C9i vK7N2ghVlZ0jMT2ZYP3fiCB61hJ7Q83+pDxwaXr0PzSW9x8Dl72xl4WORUO8G+ACc/7j QMzw== 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=9lFVEj2ZOMp4v4mEsTFyGvr2pXAnpMOWy7SrvsDmidk=; fh=CvksI28gmoec1M1jgoD02+4/K+KQ5OpzPy2vK59T3Fs=; b=EZm7r1dPp8cPWA7a8bCDXRc9PK0QU859TtJIbY5ZY7FuK+iXC2pcNoiQGHWpi2NaLQ SIZveWoGPyHTh4vFU56TxIYP6JUBTfsjDnnvolQFMZpVy98OFhyVZVsjNdBqw+04UOkJ qNuDDn6RUlJyV4S3aGxlgqzB+2x9vweXHiqskxV74VL0b38NIBsGqw50/UbIrYXug7FE 58tVb926ZGFHT0qCuhvQnZh4O0rJQl7IkBIfvDixWPi0o94tUKQW2FsiqvNmXoUNJeG/ QfWPdbCEaLIhGAAI7CwRxUhRkBqueggBbwow0dygh5Lk8f9F7bvFfnr3gYsR7744lZIa 0Nyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Axq7vMu1; 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-162621-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q1-20020ad45741000000b006a0c9041b28si3783737qvx.32.2024.04.29.08.52.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 08:52:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162621-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=@chromium.org header.s=google header.b=Axq7vMu1; 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-162621-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162621-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4BDA21C215AE for ; Mon, 29 Apr 2024 15:52:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0996A82D7F; Mon, 29 Apr 2024 15:52:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Axq7vMu1" Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) (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 0179982883 for ; Mon, 29 Apr 2024 15:52:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714405976; cv=none; b=ifzh2ydpMLpfPZ+5J8b+MMZI6pI+L6fFWrzdLhIp+75oUD/kCrxgo8vt0NEq5egm8Hsk2NYpN+HxtbMClv4T5sGRnIlZ6aWasKpuQgmW07QziXeEis9qrzRFWAV0m7X7rLeUi/c7y8hHT9sbO7W1QXLxyHkL9JREhDo4uNj+7LI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714405976; c=relaxed/simple; bh=aqoYe7y596ceK+s22lTo4XTQ8iUewNNdVUJJ7YKSWzw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=t6+bKCFIE9rtXJOkFz7pdKztRtxg12AeSEY6lGuSAytaQ8eKrvETJYrKbYgQ3ybWWALpnwkwlMTaCtDa3H2g7YHsDh+cPp/v0Bv/nM1SFo6DNI9ASrCoLgKV9iWxMzmEO1Ti0bVHLJf0bOPDVs9wvKood67zSCniUwAoEnGir1k= 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=Axq7vMu1; arc=none smtp.client-ip=209.85.215.174 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-pg1-f174.google.com with SMTP id 41be03b00d2f7-5d8b887bb0cso3873638a12.2 for ; Mon, 29 Apr 2024 08:52:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714405973; x=1715010773; 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=9lFVEj2ZOMp4v4mEsTFyGvr2pXAnpMOWy7SrvsDmidk=; b=Axq7vMu1g1KVCC4WCL2wHEtdq3Uvm8NniZyXhKp4JN/gwfwKfhBSRR1EgG7sDdltw6 G5K6zuRF1yPWg/RBX4164DdOHpcWIOkQQKKLHR7D4XGmo4Dd1Y4DiWGqvm3bR3RbquWF 8TcXS6RdVfIC4cDOiT/2QqSCOchBi9GD221Kg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714405973; x=1715010773; 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=9lFVEj2ZOMp4v4mEsTFyGvr2pXAnpMOWy7SrvsDmidk=; b=mXx3mCvLWlrp74Gmc+4IoZBGU5SCVPYRLwRLOQyyczTE21ddX8oO9mWlSEus+9JmVw YZleWUhMDxbrYQpCRgE3k1w5yV9Qi1Dhw2xMIaxKyn94d4hlVgVBMFpzXXPKPiJQzffs PesxHsDprQu9hICB5afWCs44RFnZOAFUsDpDqVK7joR3aacL8mh3a7ij03cnTVJtFZsw L7WKv/OTmj+cps09In/m+54mmKbV5g4QCe+O1BVhik8KcbRp2ACvGbjEL6zV/A7TMpJ5 MnDWOcC5lk45sMMzcu3qfP8WnTACxlcJcr5fci6uFnxDA25zntlMUMniiStxu7TvFo/f FKgw== X-Forwarded-Encrypted: i=1; AJvYcCUCmQsQYcH1ttfBnkK+64+fx2VFpDppx6L/abY0WfPhNi468I6LgcamBD9TKOYyAahW9XiHlxpDZr/RIlPbLv1E78qapRNuN86sc0b0 X-Gm-Message-State: AOJu0Ywq4H49PgQ7HjNvfiMjuCo20Kj84Afuod8X6aDFIJXIHKZTnWin ypj5nZp5+1qAfWcgkxs+nxUMO7kE48X/vB5jSgiEu74N/vCwXBQBF3mzUmB/pw== X-Received: by 2002:a17:90b:1809:b0:2ad:3688:de80 with SMTP id lw9-20020a17090b180900b002ad3688de80mr11136934pjb.30.1714405973381; Mon, 29 Apr 2024 08:52:53 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id y3-20020a17090a390300b002a232e4f9ddsm21130064pjb.34.2024.04.29.08.52.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 08:52:52 -0700 (PDT) Date: Mon, 29 Apr 2024 08:52:50 -0700 From: Kees Cook To: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Cc: Christian Brauner , Jakub Kicinski , Mark Brown , Shengyu Li , Shuah Khan , "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, Shuah Khan Subject: Re: [PATCH v2 5/9] selftests/landlock: Do not allocate memory in fixture data Message-ID: <202404290852.29E4B471@keescook> References: <20240429130931.2394118-1-mic@digikod.net> <20240429130931.2394118-6-mic@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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240429130931.2394118-6-mic@digikod.net> On Mon, Apr 29, 2024 at 03:09:27PM +0200, Micka?l Sala?n wrote: > Do not allocate self->dir_path in the test process because this would > not be visible in the FIXTURE_TEARDOWN() process when relying on > fork()/clone3() instead of vfork(). > > This change is required for a following commit removing vfork() call to > not break the layout3_fs.* test cases. > > Cc: G?nther Noack > Cc: Kees Cook > Cc: Shuah Khan > Signed-off-by: Micka?l Sala?n Reviewed-by: Kees Cook -- Kees Cook