Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1807651rdd; Thu, 11 Jan 2024 09:46:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IF19mFqTcOU1PhSR8Os32SXK0bJp0ZN8LQcbCZIe4gSjdOq4sI3yXLsINeWl2PVtfBsuXWG X-Received: by 2002:a17:90b:146:b0:28d:6f5:bc92 with SMTP id em6-20020a17090b014600b0028d06f5bc92mr147003pjb.4.1704995161678; Thu, 11 Jan 2024 09:46:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704995161; cv=none; d=google.com; s=arc-20160816; b=NsJ55BXeeBIIhmHRChA3Mp934/+IlbFbReI+Edqmkhxm4ld8AOj+jLVNommlYP9IYi YNX3pjTr0lT/mb7MdY18mYXGMU38224EBOPP2HYFckm7xI8bIw/ayeEEwF23dQRESurc 6ECtH6D6bAj1AEQGX1Y8J0897u0Hz8jeP2d1WENI6DiDW2HwwLuBevA9dffvob1xO8Ws Netcn4+bOAqCjUIiIyALnNZzMvXTciHExAUP3qH2vLcIDkouOKfAqzg7DlD82nLVli1C dYDAEB7LA5ipbixz3css4JXmtiDKCcNWzOHWrs6IGhofByvkzVuAf4bwASvTA9lEM7Dx fBCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=PhCoVrdbtNk6IQHDSfgyH6zuFvjv3tDoIQvmJczMbPo=; fh=3kO2JIme55MkqTiixzf0iGQIFrSEgMY6BpKF61c7A/Q=; b=BEfWWHe+uHv+2lCNEByHBS++faEqfk+shwn9guNm/KG0uv8SpiQcqhQMqv6IwSXjx8 V8rUzhKJBfOeaWOu+FTbxEc3nKq9ATW/+TudvIySE+8GLOaQUmy2e+JCcJUx94NMPD7T JsHw0Oc3lFA2o34l3gUdKUMUF632XyMbPYG4S4CuW/X2m46ip9bge7YjeDrjAkcO8STS nVkeOMxifgHt9Ns2R9h5XhFyYfONaYE/BgVAQoJlp7wecrh342WUx8s0RHxPdwYUOZcq 7oTfdpkdB1BjOQGtFf2+vHwAi5USRPHw0QgfPCNTyXd5KZsIb9ffLhXdiG0Hw4me2y49 sVHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="edm5ent/"; spf=pass (google.com: domain of linux-kernel+bounces-23941-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23941-linux.lists.archive=gmail.com@vger.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 q1-20020a17090aa00100b0028b67355609si1530610pjp.136.2024.01.11.09.46.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 09:46:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23941-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=@linux-foundation.org header.s=google header.b="edm5ent/"; spf=pass (google.com: domain of linux-kernel+bounces-23941-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23941-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 464C82869EC for ; Thu, 11 Jan 2024 17:38:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 537BD52F7A; Thu, 11 Jan 2024 17:38:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="edm5ent/" Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 07EBC52F60 for ; Thu, 11 Jan 2024 17:38:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a271a28aeb4so615173866b.2 for ; Thu, 11 Jan 2024 09:38:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1704994679; x=1705599479; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PhCoVrdbtNk6IQHDSfgyH6zuFvjv3tDoIQvmJczMbPo=; b=edm5ent/Kbxede2bjOrwi1elFYaRI9CKDyiziDIVPuTB03QItwV4JpPX1RMjdClDy3 ZewKtY1XcecuETybU+2Qf7SqUSx/YuFJXXOAMLWch3FEqwjAomc6bsVHQGePGWtuH6D7 ic+mEv1xxj/P9i3q5XrxnvkFxVEuqujdvZBR8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704994679; x=1705599479; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PhCoVrdbtNk6IQHDSfgyH6zuFvjv3tDoIQvmJczMbPo=; b=YM7yu9Z9N0eC/kSC6dAQIDXYcJytMvoZhgDhUIDWh+Rp7eRnjgI6XGmM1KqldGV1nw fa4sL+2SBQNM+BBpthrCJGM1QV3rtrOUIzOle9fXWJw0ogLKTLP2/dq+E7n7PzWxJq0z ZVrvhnK/W64XBjhxw23qCtoUpjI9/8YVodLp+h/nZKQSxnGAWxFlZWRN5jM5PfxNGoNg k84yO8WUWxwQ55pZsJ0Z3u0p2xSzVnBRLCoycw54WWjnabKosZV5PfA/CWUw8mNimrHN MsQ8qOqUgs3U5JVbE5LnGkiAevsaAHYPGJGw0v7zR04A2P/aXa6vlBdY8Pg9WAW6eDjp UhNA== X-Gm-Message-State: AOJu0Yw8vIIOEC3Aad6i92qJ6sbZpF2jlsYZTYaV+8RtdzbLyEj7XCW5 9lSqgKjMuNduIfAro+hIXTE5skC6ks7TNd3Z5TmUOiy3htfHKukB X-Received: by 2002:a17:906:26d9:b0:a23:8918:2399 with SMTP id u25-20020a17090626d900b00a2389182399mr9153ejc.130.1704994678957; Thu, 11 Jan 2024 09:37:58 -0800 (PST) Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com. [209.85.208.45]) by smtp.gmail.com with ESMTPSA id rv25-20020a17090710d900b00a26c8c70069sm823565ejb.48.2024.01.11.09.37.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jan 2024 09:37:58 -0800 (PST) Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-55569b59f81so6912148a12.1 for ; Thu, 11 Jan 2024 09:37:58 -0800 (PST) X-Received: by 2002:a17:906:cb83:b0:a28:b7e2:15b4 with SMTP id mf3-20020a170906cb8300b00a28b7e215b4mr5546ejb.88.1704994678124; Thu, 11 Jan 2024 09:37:58 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <202401081028.0E908F9E0A@keescook> <20240111094711.GT1674809@ZenIV> In-Reply-To: <20240111094711.GT1674809@ZenIV> From: Linus Torvalds Date: Thu, 11 Jan 2024 09:37:41 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] execve updates for v6.8-rc1 To: Al Viro Cc: Josh Triplett , Kees Cook , Kees Cook , linux-kernel@vger.kernel.org, Alexey Dobriyan Content-Type: text/plain; charset="UTF-8" On Thu, 11 Jan 2024 at 01:47, Al Viro wrote: > > Two things, both related to ->atomic_open(): Yeah, I was staring at the atomic_open() cases, and just thought that we could allocate the filp early for that. It wouldn't matter for normal filesystems, so from a performance standpoint it would be ok. My handwavy thinking was that we'd remove 'filp' from the arguments we pass around, and instead make it be a member of 'struct nameidata', and then the different codepaths could decide that "now I need the filp, so I'll instantiate it". But then I looked more at the code, and it seemed to get quite messy, quite fast. Linus