Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4048595pxb; Tue, 2 Nov 2021 03:13:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweFmPwnWRtXu2Dw7O6G/fLMNzlbC/r+Qw1laKhjTI3VBRJeXNh7G9/ERV3+7i54VuaDdX3 X-Received: by 2002:a5d:8792:: with SMTP id f18mr24568596ion.52.1635848005488; Tue, 02 Nov 2021 03:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635848005; cv=none; d=google.com; s=arc-20160816; b=APfYz3X2fiOmgQR3SywYWFfpILtHYYRWFqUyZ/S7lAG/J8UiGI2ZELSu/fNVL3WaGF f+Bi2rQM1+Z0z3C/V7Cjz0z6+he+ivxMopmcoUJQTTdII1Ia6NdPRnRpRu6yhpTc3xwv 6dO9naEjDtgEExjMQr4XknJ040tcQl2mYPC/nG2Jt9rlpaO1sB/V9Z9WnEqqVvmM3jpt 9XQW/7IirmRKGNc2H9Geyam4QlL1b5I2+Hh6Qm3qfrshx8o7jmIq3GPvB/AAd1dXxK5W sryYhztAydcxrnFS1efnZQUyCy1eRrNIlXHEwlaVgVXy2szuKzdv4cOOShSVPenqsAKW hHyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=bwUNf4hxTtHZLCK2K58tLYJvhbnhKkzbJf8LFbLGHUY=; b=w/UQkW+iCZgkaLmi03LS2WibvxAKMyGaTzhkc0hnp7QnczPsIocBkAZ3U0NLj1J4HZ nZxPmLqFCj08LoIeEPjSZgQCzFq0IE+EaLYNvWmUUla48KLgqhmzgNWnu3jxkaG8Sgu8 g+LHJDadpPpwr0JZRlEk9JbNqmfkRX++5TJkGdu1E9I9boga52AF7aSp1Dzih9k5qctU DsF58uehHZBt9kOX7fkihMGahrzkIsBYmmviWjAu68OWk7dX77UohDh0IUUWRT4rykcZ pW3ysbQhc2cK8DyK36SGnUkzpAjWvmt7G+GgYcyNOSQIF9s7OAcmYHVZo0e7rSrZ8gmG uCgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r18si28440907iov.50.2021.11.02.03.13.12; Tue, 02 Nov 2021 03:13:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230407AbhKBKNw (ORCPT + 99 others); Tue, 2 Nov 2021 06:13:52 -0400 Received: from www62.your-server.de ([213.133.104.62]:41558 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbhKBKNr (ORCPT ); Tue, 2 Nov 2021 06:13:47 -0400 Received: from sslproxy03.your-server.de ([88.198.220.132]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1mhqkx-0002J9-Fg; Tue, 02 Nov 2021 11:11:03 +0100 Received: from [85.1.206.226] (helo=linux.home) by sslproxy03.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhqkx-0004qK-6K; Tue, 02 Nov 2021 11:11:03 +0100 Subject: Re: [PATCH bpf-next v3 2/4] libfs: support RENAME_EXCHANGE in simple_rename() To: Miklos Szeredi , Lorenz Bauer Cc: Al Viro , Alexei Starovoitov , Andrii Nakryiko , Miklos Szeredi , Greg Kroah-Hartman , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, network dev , bpf , Christian Brauner References: <20211028094724.59043-1-lmb@cloudflare.com> <20211028094724.59043-3-lmb@cloudflare.com> From: Daniel Borkmann Message-ID: <7988de27-1718-60c1-ec03-9343d2cc460f@iogearbox.net> Date: Tue, 2 Nov 2021 11:11:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.3/26341/Tue Nov 2 09:18:13 2021) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/2/21 10:25 AM, Miklos Szeredi wrote: > On Thu, 28 Oct 2021 at 11:48, Lorenz Bauer wrote: >> >> Allow atomic exchange via RENAME_EXCHANGE when using simple_rename. >> This affects binderfs, ramfs, hubetlbfs and bpffs. > > Ramfs and hugetlbfs are generic enough; those seem safe. > > Binderfs: I have no idea what this does; binderfs_rename() should > probably error out on RENAME_EXCHANGE for now, or an explicit ack from > the maintainers. Thanks for the review, Miklos! Adding Christian to Cc wrt binderfs ... full context for all patches: https://lore.kernel.org/bpf/20211028094724.59043-1-lmb@cloudflare.com/ > Bpffs is your baby... > > Thanks, > Miklos >