Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp18027lql; Fri, 12 Apr 2024 02:07:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCZaj6KC7/gW4hSZyjBSRVUgFJhzpxWyblVbKKb0UHJ2kMDKaJafLooK3K8Fy0g6Tz67DwT8p9V7IP8L+VTqOpT77MCAWYOtyPbXiqbw== X-Google-Smtp-Source: AGHT+IE6F7cxXu+LuKoE/paYU3I34sn6wOm0d0W9l0B2yxP29m8h5umfEQ4ABtPE7j7JbEgEMYb4 X-Received: by 2002:a05:6870:f10c:b0:22e:a3f8:38bc with SMTP id k12-20020a056870f10c00b0022ea3f838bcmr2112616oac.22.1712912842925; Fri, 12 Apr 2024 02:07:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712912842; cv=pass; d=google.com; s=arc-20160816; b=Diq909x/e/EbjAgfIb8r8ldt5bSrGEiPMV8XX6IRXhCraywSTCZjy9ZzWOLXGHyXJ+ /6gPN7khoKtzoLTopM6a8dFL2EbYUwA4wQg9BrpmT9BcjCQ/7wlHu3RTNjkV9n66+2hg nY4CSonqy9uEys1jdW0f5T/MIfT/a6EPyvlg2oHqtEDnPzO4VNcBM180F24gqYqu0bFg VnCdVh/8ZhJMMhChVB6LgRUTPngRAxTP90KOH7NDkSWmPCkF1+Nj+5Esrx8c4oTXLw8R chJNHSXIpweKZOcI/mcjK0qmZulQ9H8i9B4zTP/mRVKwyNU/sF3AAZr4ulT1Y/PMu1gN A6wQ== 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=KpMoLyMwbgQzeN9tPqmWLR8rm/lIrqoJqFrMq5cIGAk=; fh=v/Vpg8xiH6QHIs/OJ/GuYg6BuflYf7hH8ddbncAUA4o=; b=oFFYinBNkGQILcw7qLItMU9aoH0chyLFEGgYQxtDwoRSxpOLLdYofeOB0XZfSAVOd9 OVgFVm5f7W1sE0efziZ/hNDMF3TBdWEC2GS3EoYoC4vyVuVh5dOEyxn6/ANcAF9GSVLv c4LaRm0aC2ntPbzubOeaWLTDSnpqO2M118BjAL6pl/7I6hwKmoOGPwk4AYf+Qpy2yCMd I3LohFxsvCkaICIHzTvPfYITOOBAq9Csi4kFhjz27aQKKmbBYUcdK8gk08N/dNn0wpcH uv7BMnabR+qmYj6QTiSopU4pd0is+CWyjQGtdA1rdkTuiokZhrzW8qA1pCx2duVo+yH3 ZfEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mrGHyAgq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-142328-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142328-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 h9-20020aa79f49000000b006edca539524si2940665pfr.269.2024.04.12.02.07.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 02:07:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142328-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=mrGHyAgq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-142328-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142328-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 74208289295 for ; Fri, 12 Apr 2024 09:05:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72CBA54909; Fri, 12 Apr 2024 08:56:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mrGHyAgq" 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 923CF5465D; Fri, 12 Apr 2024 08:56:20 +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=1712912181; cv=none; b=fjjCy6BXnYcLm+74Uh8zZ6oVmsv5gJrmZ8ynW7M5+koBWDWaGVgmf5uk1ir/GfNqIdSn5VBpjVnV9DjznozEPY7sY4vcFXVR3Qk515dHEkyF/2/FdQ/GlBsQk/mWB2zWupMCwwzvo/QwhQuBG1wy0cT6WxqTp7C9ukvDKy/XPo0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712912181; c=relaxed/simple; bh=/VwKN2hy8yRBMxRAHW+2C5momHBRbHcRDyWc7uaVzjI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LrcVqXwZ987k62aqdzx5anHjLv1b2sc3V5h3dOFH/8sIfN5YdXrh5v1PgCy7ykev48J2hhhVAtPUDqwaqRvUG1PCyZbg0A5DS2Ztie7tVne2z3Bmh9DrlDPMGdw10KjLBzoOW4WJnSN6uK3SvEfHEojzHZ08IxX+ve1lUohi8J8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mrGHyAgq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A065C113CC; Fri, 12 Apr 2024 08:56:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712912180; bh=/VwKN2hy8yRBMxRAHW+2C5momHBRbHcRDyWc7uaVzjI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mrGHyAgqxEr0L+ZbsXI3zhBCzrogewHTHc4QEX0YswovqORrIMcDsMykZqQ+QHIJV g9PeLDTc4Lmp1Qr08YJzfke2lau9ixHweNLHaJv4sKlkNkllOzeAQ2YnVb5SIfPLmX NSB3K1yubH4UEOi7iUdH1TW46/TG0aePd1GLUuOizuvS4KAfpk6j3YwZwHHfO6mJMR sgwBAZlSoURzm7xEbf6oeOvxqBoLjMWDwhMRlALL/ajPRS+pP/bqR9nhUNK3wsmXzP hsn9hqClj7p5hXAVRZhE7/I5hkeD6F717Jzdz/XV7muTf3ZHJHOG3J1/GqbytuPmAB PJR3jWNr+vg6g== Date: Fri, 12 Apr 2024 10:56:14 +0200 From: Christian Brauner To: Linus Torvalds Cc: Alexander Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lutomirski , Peter Anvin Subject: Re: [PATCH] vfs: relax linkat() AT_EMPTY_PATH - aka flink() - requirements Message-ID: <20240412-orangen-liedchen-8b662d023db0@brauner> References: <20240411001012.12513-1-torvalds@linux-foundation.org> <20240411-alben-kocht-219170e9dc99@brauner> <20240411-adressieren-preschen-9ed276614069@brauner> 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: On Thu, Apr 11, 2024 at 09:21:27AM -0700, Linus Torvalds wrote: > On Thu, 11 Apr 2024 at 05:25, Christian Brauner wrote: > > > > Btw, I think we should try to avoid putting this into path_init() and > > confine this to linkat() itself imho. The way I tried to do it was by > > presetting a root for filename_lookup(); means we also don't need a > > LOOKUP_* flag for this as this is mostly a linkat thing. > > So I had the exact reverse reaction to your patch - I felt that using Fun. I really disliked the idea of having to somehow wrangle this into lookup itself and that the root argument just happened to not be used for non-kernel internal use-cases yet. But I'm not married to this so fine by me.