Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1991113ybe; Tue, 3 Sep 2019 06:32:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOsAGuvWfUlp7bSbiqlngwBnKowIk9QfoPoNNvjaxt2awme5f2hMKUYUIB93bmxRLORCd7 X-Received: by 2002:a62:168e:: with SMTP id 136mr1432188pfw.144.1567517569850; Tue, 03 Sep 2019 06:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567517569; cv=none; d=google.com; s=arc-20160816; b=NgtX1/81cojR9QX07sjfLHkre4QfvZuNsfJXJtm5PEoumuD6E/rM5qUbHU8JRiLCRB 3PX5xwfE4eTklfN5hz98risRybHDNe68yOv/RL3+zWdFiNFMzznXq5oT1fNjwh9e9FxC 0GNl3cAeX/AOTXeT3z/nrfpYwe7DKLjNqmAt53cKT/tsCaivGFXX42MunmPmE1qaZzcN BDqVUPZNEDXFK7xNIJNHfa8Fh2nP8SiTsmdAXIRoH6Wb9Z1xIyv8tXFVEE2NEG0sU8jV bs4JtlhpON1oLMj/uRLby7y7wr/0+VMWFo4iQfU01u4oCaIToxRnCB+hd3nL8Lu5xRMr mLmg== 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=TxN1xTMLkOITanrgpwN6P2jpkYMXsgAYAvnh8tqz+sY=; b=A3mxwr8QDdOjWZsqDZpP/0AvIW7qKf/5EYWyXiQljsP10BigjlYHoN0gy3iS5NJphi fiOpSvx7BFxP9a7/vqIKT/9WBw+lg4QyNM94BZ/YBDWBMHXKHtnFVtT/qAJpeYrUKySF BzKHP1s0WD3f7kDnsAnNEyGx7wiaLZHm5TA/O3xsMYo1+ZyKdGQUd64frVQNRhR0I74g J2A0q+Y45gvMhfpxwtApJc3TTOMTKHr88QpSVRx78sPjYwPGa0XZJkBa3TgCPyU9n/tO /cwoPwmw/UJjzCyEwi/Li/vrWvrxX4lwlKaw47MEvwo18hqkj1UiGXtzTXFzcoYy8ty6 Zafw== 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 v2si17373732pfm.195.2019.09.03.06.32.32; Tue, 03 Sep 2019 06:32:49 -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 S1729179AbfICNbg (ORCPT + 99 others); Tue, 3 Sep 2019 09:31:36 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57590 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728094AbfICNbg (ORCPT ); Tue, 3 Sep 2019 09:31:36 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.1 #3 (Red Hat Linux)) id 1i58uE-0003Gi-2l; Tue, 03 Sep 2019 13:31:34 +0000 Date: Tue, 3 Sep 2019 14:31:34 +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: <20190903133134.GG1131@ZenIV.linux.org.uk> References: <7C6CCE98-1E22-433C-BF70-A3CBCDED4635@lca.pw> <20190903123719.GF1131@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190903123719.GF1131@ZenIV.linux.org.uk> 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 01:37:19PM +0100, Al Viro wrote: > 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: ... or, better yet, diff --git a/include/linux/namei.h b/include/linux/namei.h index 20ce2f917ef4..397a08ade6a2 100644 --- a/include/linux/namei.h +++ b/include/linux/namei.h @@ -37,7 +37,7 @@ enum {LAST_NORM, LAST_ROOT, LAST_DOT, LAST_DOTDOT, LAST_BIND}; #define LOOKUP_NO_REVAL 0x0080 #define LOOKUP_JUMPED 0x1000 #define LOOKUP_ROOT 0x2000 -#define LOOKUP_ROOT_GRABBED 0x4000 +#define LOOKUP_ROOT_GRABBED 0x0008 extern int path_pts(struct path *path); to avoid breaking out-of-tree stuff for now good reason. Folded and pushed out.