Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1922586ybe; Tue, 3 Sep 2019 05:38:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYs3estTSSpj9GGdP4oDy8UWcO/Y9F37L+cYdTbIJro4Z2833lypRZVDnf3YW0FjZeJ1t/ X-Received: by 2002:a62:28c:: with SMTP id 134mr40861404pfc.194.1567514339402; Tue, 03 Sep 2019 05:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567514339; cv=none; d=google.com; s=arc-20160816; b=MR1roC/P7nJFV3BSJsHYu7+CbmiDacNSFZDcyfYVFdjvt5m0mVX+zIaGHU60C6L4gp iL6CEglwvoIRnFaZqJyb5vNDo63mPuLG5l2NilL1X/8yodEwLbf8hBgty29YpOJPAjFK wFTNllLfEBeOBIYZ+fvU+AuGHXe5UmuuVXwxow0nss/LjaB+Qucoc2hwenhBuHDrMFqT vuzRpcDvDLBtdmUTx8dJT5I/xgvNjJZU3tV0JxrkhMj7XQ+wI+qB0jo15QtjV2/KKKEC sJvWGevlXX4SPneou5eQ10HiQPvaKJXi9svvy4XwRbpInvsBIe2YUMLmtaBWxRoqgCOs 5h+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=urlWiXN4WBp6MQ6mmfNkbJSfP3AtyrUFMQNacNJL2IU=; b=sN4ErcfBi8RExbz9M/aPhSs5C1NC7zTbCOQOkgHyBLQ7xyp4RXT37XFVzT7mlL1IuT OCegsnQ/yiy9MIUNg1j8mnI/ZvADsKIkJM2qcnU3NGD8QVKvpDy+vcipDBKL/05V9oW4 pGKebFQ9B94JB3bVJF7CvSNv+XJL55Fe3lJMhTt33sHBxdZwK5Mh5Pu1yvBhbdsfWj8V XGnxZBrWMketOXfvvyR0l27+eE5Vba9vze8l89NjXKy1VaVT/yRgG/Sq5eh9FU9iZsla AVuxodCb3HQrkUgG1SzgL4wz8MA9pYPf25RZvjjTxt6kzXCMjvX/y3tXbjUONCys824I 3tNw== 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 a127si18442540pfa.151.2019.09.03.05.38.41; Tue, 03 Sep 2019 05:38:59 -0700 (PDT) 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 S1729102AbfICMhW (ORCPT + 99 others); Tue, 3 Sep 2019 08:37:22 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:56902 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727667AbfICMhW (ORCPT ); Tue, 3 Sep 2019 08:37:22 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.1 #3 (Red Hat Linux)) id 1i583j-0001Tj-PU; Tue, 03 Sep 2019 12:37:19 +0000 Date: Tue, 3 Sep 2019 13:37:19 +0100 From: Al Viro To: Qian Cai Cc: linux-fsdevel@vger.kernel.org, LKML Subject: Re: "fs/namei.c: keep track of nd->root refcount status" causes boot panic Message-ID: <20190903123719.GF1131@ZenIV.linux.org.uk> References: <7C6CCE98-1E22-433C-BF70-A3CBCDED4635@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7C6CCE98-1E22-433C-BF70-A3CBCDED4635@lca.pw> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 03, 2019 at 12:21:36AM -0400, Qian Cai wrote: > The linux-next commit "fs/namei.c: keep track of nd->root refcount status” [1] causes boot panic on all > architectures here on today’s linux-next (0902). Reverted it will fix the issue. OK, I see what's going on. Incremental to be folded in: diff --git a/include/linux/namei.h b/include/linux/namei.h index 20ce2f917ef4..2ed0942a67f8 100644 --- a/include/linux/namei.h +++ b/include/linux/namei.h @@ -20,8 +20,8 @@ enum {LAST_NORM, LAST_ROOT, LAST_DOT, LAST_DOTDOT, LAST_BIND}; #define LOOKUP_FOLLOW 0x0001 /* follow links at the end */ #define LOOKUP_DIRECTORY 0x0002 /* require a directory */ #define LOOKUP_AUTOMOUNT 0x0004 /* force terminal automount */ -#define LOOKUP_EMPTY 0x4000 /* accept empty path [user_... only] */ -#define LOOKUP_DOWN 0x8000 /* follow mounts in the starting point */ +#define LOOKUP_EMPTY 0x8000 /* accept empty path [user_... only] */ +#define LOOKUP_DOWN 0x10000 /* follow mounts in the starting point */ #define LOOKUP_REVAL 0x0020 /* tell ->d_revalidate() to trust no cache */ #define LOOKUP_RCU 0x0040 /* RCU pathwalk mode; semi-internal */