Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2067552rdh; Sat, 25 Nov 2023 12:10:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHO5Gjb7NvUUAEPVfNoCC+u0/WL+MQaDkXmhIRNsbccDik8mcIV2kRJ7HDKZQz8aCiPDoQu X-Received: by 2002:a17:902:d502:b0:1cf:55c7:94c2 with SMTP id b2-20020a170902d50200b001cf55c794c2mr7651874plg.19.1700943032725; Sat, 25 Nov 2023 12:10:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700943032; cv=none; d=google.com; s=arc-20160816; b=YI6HyMJjn5g0ufCfJ2ETg8xJtPa9h//gvHp8pKMunNTjvi1plRliOX+PAtAyyZNRLc GS4odw6StBBlD9Bml47UCwjy6Wk8/4oFSY5aC7l+cDWkBbIZMdT+cooEPPCWJ9138KAa qSGNdUE9NJhWQyQXuYuhQ6uvqqlSsW5F+pXdQhRJMRK5G07ZUhOettWLn8kt8JruPTUt aCmt+HfXf5PrhnrHdNbbS/QTGW1EC/hi+URs/Paf5AIqSbm0pQgEP2WN05smGmQwB7D0 nsQXBevzIi9MNgISnPx9r9EiwbHbutyFL56kZ8iWZdUHsdp9xG9tbvl2BcI1uNeRA9EX XuSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Oif89apAGYgGnDl0vJMd7EqSUxKrNFIEx0+6HyACgJ8=; fh=W6BEtqt7iV8phMzKg0C2MCZmXBORzGPTeuIhW3f8iqY=; b=ZPdxA37nPyAZR47iaXhgMGBh5r05SmwApuDqsSNqh8fGUVmQg4rBrO1oU2o7Q1wdWz EWP19xyV/BrjX9OkVzuIGAintpJnqIn53pW8kXvtnpwNDZXa4XYm0G1hLenLDN6T56k4 MH5bBBR6wK/VajZg2nsCrhHEr2MGr9nQ5EZw8rVm9nCdKPuoo9eLEZQ32XBr9EThVxpq BUDsyBrcQewgsau+QL+eiFA1f35unWDVxqJ53Cc7H0dM9tJwJP9slWbfi1mm3ZVdVLH9 gWiZ8qkLW4TfvxxvRKicGMkoTW8C+DBMowexL61SN0jJAslAZ6yulnjn0yi/41PovK9p Mszw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=aRn1Xupi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id k4-20020a170902c40400b001c430af53b8si6919116plk.574.2023.11.25.12.10.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 12:10:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=aRn1Xupi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 546D88075157; Sat, 25 Nov 2023 12:10:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229511AbjKYUKO (ORCPT + 99 others); Sat, 25 Nov 2023 15:10:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjKYUKN (ORCPT ); Sat, 25 Nov 2023 15:10:13 -0500 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39D87E1; Sat, 25 Nov 2023 12:10:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Oif89apAGYgGnDl0vJMd7EqSUxKrNFIEx0+6HyACgJ8=; b=aRn1XupieKieAwUmxQOvJGQjKt t1hEjUhurIhjMcjA1qqBfMFvJOOENq58MfXV8eD+910i3kEz1M8et6gutiSMdySwzMg49yOrPa5cX 8pAYwlTuOv4VicS1DwmGZ6PeoQRnh/D3sHmfmL0n4NV4pDkEN7ra7EFsI+yYgtwaWKVzCN355h9++ Qwv+Nz+YtHl6Iwn+3AzrXKUJmcaQFDTu0pisiSWfBH9io43h931RUMsYVZVgeMoePc2vC21eOeXlI EKspJ+HV+t3YHaXBhr0zKmRo+mUS7sjMmTBWvLw50luyiPov4Q5XzrtwQpCmpBNbdx7avhmTrbDZR xNeeveBQ==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1r6yyl-003A29-2N; Sat, 25 Nov 2023 20:10:15 +0000 Date: Sat, 25 Nov 2023 20:10:15 +0000 From: Al Viro To: linux-fsdevel@vger.kernel.org Cc: Linus Torvalds , Mo Zou , Jan Kara , linux-kernel@vger.kernel.org Subject: [PATCHES v2][CFT] rename deadlock fixes Message-ID: <20231125201015.GA38156@ZenIV> References: <20231122193028.GE38156@ZenIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231122193028.GE38156@ZenIV> Sender: Al Viro X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sat, 25 Nov 2023 12:10:30 -0800 (PST) Updated variant forced-pushed into #work.rename; changes since v1: * rebased on top of #merged-selinux, to avoid a bisection hazard; selinuxfs used to abuse lock_rename() badly enough to trigger the checks in the last commit. Fixed in #merged-selinux (which consists of a commit already in selinux git tree), and rebase on top of that does not require any changes in the series. * (hopefully) fixed the markup in directory-locking.rst. I would really appreciate if somebody familiar with reST took a look at that. * fixed another part of directory-locking.rst, not touched in v1 - the proof that operations will not introduce loops if none had been present should've been updated when RENAME_EXCHANGE got introduced; it hadn't been. Rewritten. Same branch, same overall description, individual patches in followups.