Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4010511pxb; Tue, 2 Nov 2021 02:26:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwif0hAIPYifuxDgkC2rMFlZtaSIaSYNK8G0llhp/i+7CtzDFKo9WTbyyB3UJ1YCb85ghAd X-Received: by 2002:a6b:e319:: with SMTP id u25mr23428917ioc.37.1635845209493; Tue, 02 Nov 2021 02:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635845209; cv=none; d=google.com; s=arc-20160816; b=hBN2R/UxYqiQPoFsON2418+HGtWhbKiYS9JLd9fZhW5dZFjOAzQv9iL07ocXlLD7OQ Plg2u9/gV4zudng6tzf/y8Y2OPkT9YRGjkL5bCLLBUgJY8j+bYWBZ2wvjbtoQ1X67/y6 aKbzsSGxeLxBtgKiCM4uwzgpSKM1Fuw/6EO+l80p8L/ZWMD2jP54EollYohlE618peiZ ftqXcCnonncfOoadxdYCJl2VjbTUzRx3WNbCjPoLlf4H3v9QmNELzUefdanJycyTTUtp 6E+C2A4dPmmaaVJY7bHtjPsQs4uk1Hbb5APgmHUeT2g7zA4XUdtZe3RlYSMx9nJX8KZ7 CBkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bKCG/LFDj+4qsdT7nWY5D/doheuBylJpyUPgqkYuXWc=; b=LQkB3lfi78o9AgJgDmgUAG1Fi/3WbWR9pFfqGwSjDHr5cAVpZe93dCgtaPIUg4JrJS bVlg9lRa7t9BhwiGXZSdRjwqv9GO+b4Pnbxjs8472CsIQs6ywi2WNNbHwyh/IQyWjizp PO0jgjPLrzAghX64P7uMET3/cDIMrqQapWk270gEdz8P8R8/YsxbrKZVcMf743pOOmPo 88FJ4AYWX/2N1QkYsRJJCn7DvMRlsvQZJO03QmDtUbeGutCppidnfhX+5q4wVgWqCkg/ 38+VW2ogYSoo5N6gfU2fW/Qp5fBAXoOr9XQJqX2jOWYGqz275/2jWIz5BFR2a4weFHZc euHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=GTE8kbQM; 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 y203si1260372iof.22.2021.11.02.02.26.37; Tue, 02 Nov 2021 02:26:49 -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; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=GTE8kbQM; 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 S230407AbhKBJ15 (ORCPT + 99 others); Tue, 2 Nov 2021 05:27:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230281AbhKBJ14 (ORCPT ); Tue, 2 Nov 2021 05:27:56 -0400 Received: from mail-ua1-x929.google.com (mail-ua1-x929.google.com [IPv6:2607:f8b0:4864:20::929]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1BE7C061766 for ; Tue, 2 Nov 2021 02:25:21 -0700 (PDT) Received: by mail-ua1-x929.google.com with SMTP id u9so36696320uac.8 for ; Tue, 02 Nov 2021 02:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bKCG/LFDj+4qsdT7nWY5D/doheuBylJpyUPgqkYuXWc=; b=GTE8kbQMAjMh6NHSeOps4yMX1nOZWv9N2mQ4w5/2N6wzHuI5dckZZxAdKeON99IRH1 VetIj57Fi97O9awBY0790HpX3wXxGYqNk4zocNFIcL7Fcpcs1YCT9FpRvccEEQJ5Ue1G jtZb4HRxPXSrbKqLsM1B70mKj4vkpqirJ/l7E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bKCG/LFDj+4qsdT7nWY5D/doheuBylJpyUPgqkYuXWc=; b=AzPjm3+sALsj9MFxDfXkQlY+kFVE3YuN49GaUYT4koIEEO/bnCQrgmI0v4e1KXMCaL EiC1hW1n2cqh2nJwWKWPsOwYQJjxTtwnpKj2zJ44ao8wsJAuuDYlQSQXioHCqsSfxazO JNE/ewAHUt8AH3AK4ivaQRBl2CRy4nSRg2o/OHQK5dpTpSMZW9TCewea4iXh10H6xvRn xJpx7EEyhhfzzrpQbb5nfP67e2ZNi3ntlUhYLb/Bo9MYnosbdIh0gGlcUEukccDNOyfx vSTiM8wwQuRC2nETB6n1yLG57EIHVg+CAztwa24vlLqGLqGc1SEn3cYgYlTAdxsQ6rBR VS0A== X-Gm-Message-State: AOAM532BeSPkXaE3eynoxcqnuF/7HQsJYATlhgjxUqdSDjb1c7HQEWOz 3zGfocdhcXYB3sOsxevAQvnWNCy8BT2L/aCJq6VnPg== X-Received: by 2002:a9f:234a:: with SMTP id 68mr35529397uae.13.1635845121065; Tue, 02 Nov 2021 02:25:21 -0700 (PDT) MIME-Version: 1.0 References: <20211028094724.59043-1-lmb@cloudflare.com> <20211028094724.59043-3-lmb@cloudflare.com> In-Reply-To: <20211028094724.59043-3-lmb@cloudflare.com> From: Miklos Szeredi Date: Tue, 2 Nov 2021 10:25:10 +0100 Message-ID: Subject: Re: [PATCH bpf-next v3 2/4] libfs: support RENAME_EXCHANGE in simple_rename() To: Lorenz Bauer Cc: Al Viro , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Miklos Szeredi , Greg Kroah-Hartman , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, network dev , bpf Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Bpffs is your baby... Thanks, Miklos