Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp521419imw; Mon, 4 Jul 2022 14:07:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tSlZXAzLKg7FJoGANX4hsXyIH20S4MIGIsSriDChUASxnyXwvrI2hAfxl9wimFjLWSoyzg X-Received: by 2002:a17:902:9041:b0:16a:aef:7b84 with SMTP id w1-20020a170902904100b0016a0aef7b84mr38796745plz.124.1656968849747; Mon, 04 Jul 2022 14:07:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656968849; cv=none; d=google.com; s=arc-20160816; b=MqQqeT24ENp8wdtWVlNdx/3jKq1DYVteK3kDxZfYDOiAlkQlAY+79Vobb2QaX+3M2o Ws6dm5cswiQ3JST1ls9bZcsRaXLWwszwB0vifZI4nh2EX5VlkG1PzmMBfFSAqSNmY0Sv YxdDRJIyCVOiwwiXgFbaqIVzQwR19QuWyYZBWG43RDfqdkAAyQVGo4TYZkJLZeYBV0t9 d8glh1dBmlQjjoK/fYPaUi9OAQq83QJBmY8NJ4Oa03iLAtw89uSsRQyCrneTbJvxqUYi BpF88yyp2xylQttlQjC/fz87Ccn4Y+HC/KOZhmuYEYAJCpvyVkrdlJ4zBHoKCIPC2QZM 5f4g== 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=T4NEq+eMSGAkYEOA0B+r4pdVqAgo1X2D4OJSO7fEkNY=; b=QujPZkWchs/x0wXTUTn2muQNNeO4FlVZbx6spHliton4hORETTxNSjiUPkS9gk8bZ4 XjXz6H2vgIMtnvKYMhgQ417HDsDy0sICNYGlQ74Od42+izd1qVI1zB7MBNeG2ze7S8zk FolZ0yTXubyJIW7G/7RWgJwTtp8z4EschL0U56kVjpfZvk8uqSW9fUMl2zLhf5fxnlzG bHv7I3W79XyKqAhxLcZU0Gn1GNRtGxeJHihqHXMI4TBkxv5pTSVKbhr1FL0hB7MEHaXY d34Euy4PntTxNIls+pZilB5LhdLfBQnBXucQcdqLQbM7fkOl3e2+96K6j8JG/pE2V0jc t1ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=AQZXT4X2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a631f0f000000b003fbbafcb7ebsi46905592pgf.496.2022.07.04.14.07.18; Mon, 04 Jul 2022 14:07:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=AQZXT4X2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230513AbiGDVEs (ORCPT + 99 others); Mon, 4 Jul 2022 17:04:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbiGDVEr (ORCPT ); Mon, 4 Jul 2022 17:04:47 -0400 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 BC7ED55AB; Mon, 4 Jul 2022 14:04:45 -0700 (PDT) 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=T4NEq+eMSGAkYEOA0B+r4pdVqAgo1X2D4OJSO7fEkNY=; b=AQZXT4X26RLQ+tZazISD4HjcHj uY43HvoKZBqSRJnUKTH2W+dL9c2FSeIpL0aPm++Jao5qMRkopG7Jw78ME/C9ubLOhmUX+Xe7dSXYQ Y4FAtgFK9dsEA66ZijK/hRjM+EGhXfzM0WZiFkcx1oNYvhS6AJBKQc5wmRfGCUBsBMX/1JsDNApIz YBywIfgH9bOTV56kOM/DAJAd+721Hutx1uqwOZ01LB6wtndOMYcaI3ulgDRCfq9YpymEaNwddqg+d rieM3tFld/azhG0yquNoj12g5gKcvOdTmSk3OfOJ8i9qf1cUd7Sz2LDQqiSnIeNKzaW0yUC3aW2YX O9uT8OhQ==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.95 #2 (Red Hat Linux)) id 1o8TEm-0088kl-TL; Mon, 04 Jul 2022 21:04:09 +0000 Date: Mon, 4 Jul 2022 22:04:08 +0100 From: Al Viro To: Linus Torvalds Cc: Alexander Potapenko , Alexei Starovoitov , Andrew Morton , Andrey Konovalov , Andy Lutomirski , Arnd Bergmann , Borislav Petkov , Christoph Hellwig , Christoph Lameter , David Rientjes , Dmitry Vyukov , Eric Dumazet , Greg Kroah-Hartman , Herbert Xu , Ilya Leoshkevich , Ingo Molnar , Jens Axboe , Joonsoo Kim , Kees Cook , Marco Elver , Mark Rutland , Matthew Wilcox , "Michael S. Tsirkin" , Pekka Enberg , Peter Zijlstra , Petr Mladek , Steven Rostedt , Thomas Gleixner , Vasily Gorbik , Vegard Nossum , Vlastimil Babka , kasan-dev , Linux-MM , linux-arch , Linux Kernel Mailing List , Evgenii Stepanov , Nathan Chancellor , Nick Desaulniers , Segher Boessenkool , Vitaly Buka , linux-toolchains Subject: Re: [PATCH v4 43/45] namei: initialize parameters passed to step_into() Message-ID: References: <20220701142310.2188015-44-glider@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 04, 2022 at 01:51:16PM -0700, Linus Torvalds wrote: > On Mon, Jul 4, 2022 at 1:46 PM Al Viro wrote: > > > > Why is that a problem? It could have been moved to another parent, > > but so it could after we'd crossed to the mounted and we wouldn't have > > noticed (or cared). > > Yeah, see my other email. > > I agree that it might be a "we don't actually care" situation, where > all we care about that the name was valid at one point (when we picked > up that sequence point). So maybe we don't care about closing it. > > But even if so, I think it might warrant a comment, because I still > feel like we're basically "throwing away" our previous sequence point > information without ever checking it. > > Maybe all we ever care about is basically "this sequence point > protects the dentry inode pointer for the next lookup", and when it > comes to mount points that ends up being immaterial. There is a problem, actually, but it's in a different place... OK, let me try to write something resembling a formal proof and see what falls out.