Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1896221ybl; Thu, 30 Jan 2020 07:56:29 -0800 (PST) X-Google-Smtp-Source: APXvYqzGE5wZ1QGrxXYCK67OyESt9YEuy8ju7o4iXmxtj449ly4Bbp6sDg5iEUvGtXnuoyy01YZe X-Received: by 2002:aca:6749:: with SMTP id b9mr3171616oiy.13.1580399789657; Thu, 30 Jan 2020 07:56:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580399789; cv=none; d=google.com; s=arc-20160816; b=djN/2MdFCXQdWI77YDzdjdQG+Fsx1kavXJ3BAo8x+acAkmrpe4qnotrCjLSBEcgECy IkULzw9BJq4HPdx+2rt/H1UlBWJf/K5kSI7+CTU2PHoD/3ZNui+Ie1yXTTbQZVwgOMkO 9se5NNtzOK6tCalxPhUp37YxFebgfsVFJJSTRqqJoZHma3ZMF/XKh1ETtjNKypAEhAne YIei5tuZR0RqfTpAhsvi1bnYJ3YS7oxfFhoFqZ0MrmBRRlppwjtnxvXbIoZh4i63pL+H Gr5SyvspKqpw9I9OWOpv1FBncdd4hDRutO45wPfHbHOWE0lQdYEgtSgsxmi9HSXTppys 6HcQ== 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; bh=b3t6FlRX7ObihaYG5AIIbu5mFDfxZ0UqAgCzhDpdQSs=; b=SrQm7zoK5iJsGhk54xNdRURr0F1sSxceAT/l7Hhdrsgo+yYtkW4WkbQwGI4e/v4cHk kFgbHky05Wl/HNLochoLXNFqcugTnszoueXS8sPAjVjPbRinWQo3Rn5G8WPlWNm/21BY NBhXi3T+/O2+B7DTR6nv3/rblZ9skk+TWY5lu0RytcYEXHXYL2N3JoFR4D3679zHEjbt EGfJF1tHXqUufZfS9IhYyiJLbi9bDJourAL7ZqlUDOxtxSlp40QBVu1QPq1wn7KMHeBi n4kk6S2mqd9pGHjlM5ZxZT2jES6bUjaTuVhLHNA7WShluWu5HUrlu4ELX1+4+BJrx95n MkAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g17si3277343otr.261.2020.01.30.07.56.16; Thu, 30 Jan 2020 07:56:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727247AbgA3PzW (ORCPT + 99 others); Thu, 30 Jan 2020 10:55:22 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:55916 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727158AbgA3PzW (ORCPT ); Thu, 30 Jan 2020 10:55:22 -0500 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1ixCA3-004pJX-Vl; Thu, 30 Jan 2020 15:55:20 +0000 Date: Thu, 30 Jan 2020 15:55:19 +0000 From: Al Viro To: Christian Brauner Cc: linux-fsdevel@vger.kernel.org, Linus Torvalds , linux-kernel@vger.kernel.org, Aleksa Sarai , David Howells , Eric Biederman Subject: Re: [PATCH 04/17] follow_automount() doesn't need the entire nameidata Message-ID: <20200130155519.GC23230@ZenIV.linux.org.uk> References: <20200119031423.GV8904@ZenIV.linux.org.uk> <20200119031738.2681033-1-viro@ZenIV.linux.org.uk> <20200119031738.2681033-4-viro@ZenIV.linux.org.uk> <20200130144520.hnf2yk5tjalxfddn@wittgenstein> <20200130153825.GA23230@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200130153825.GA23230@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 30, 2020 at 03:38:25PM +0000, Al Viro wrote: > On Thu, Jan 30, 2020 at 03:45:20PM +0100, Christian Brauner wrote: > > > - nd->total_link_count++; > > > - if (nd->total_link_count >= 40) > > > + if (count && *count++ >= 40) > > > > He, side-effects galore. :) > > Isn't this incrementing the address but you want to increment the > > counter? > > Seems like this should be > > > > if (count && (*count)++ >= 40) > > Nice catch; incidentally, it means that usual testsuites (xfstests, > LTP) are missing the automount loop detection. Hmm... Fix folded and pushed (the series in #next.namei now, on top of #work.openat2 + #fixes)