Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2017221ybe; Tue, 3 Sep 2019 06:54:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyu4y49vuNGjqPep5c7+DdiVQbaRPHDhSJ2P9rD97iNrqjudUyoxuVKmzOKHiO1SAvPU25p X-Received: by 2002:a65:6454:: with SMTP id s20mr30355711pgv.15.1567518883596; Tue, 03 Sep 2019 06:54:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567518883; cv=none; d=google.com; s=arc-20160816; b=ss49dcfIJ2Zm1ZqnE/eWEZ+Uod45qpRC5le2//B+c1NznW1okqGPLlhnfb+OqnC97r T2wyxXTi0FJt5zAh2zEZtKQFdQacy0v795N/l5yYI0Qg2MQdG8lvhTVflWvG/uShgTlX PiJw2biosHuEZg/Y9tqm8olITCdRCsyS3p+IpQqNKRyb5/luzZKfoRnchzNXoKyVrl7Y 3N3z6Gf5ukBTP6lxu+WgdpuhEUlrvngaL0mYlNbC6K4Q06KG8F1T66HiUblIqOiCnToU gzFBZDod278xyRpH9QRc8GzPwQf4kcS5sF8vCqqaKxM4NXU213hRdU5ey9Yg1Mjof+98 g9+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=g2euOzbhuNK7g9XKLpA4C13cCqIJOKkMfXZ8Anqpll8=; b=LOeCYa9UcsalPZJOJEUK1S9TQTQD6/PmhLWyGkH3GA72PjPlWv+DHQSACRXgFc3VZP o/cZZ75wWxg6SfQ1zO8HbHhu9NbD8HVESENIdcEP52cwO3EM1NPgRh1nlpeJOBjqfpyI /swgTTeFn9Trg37IE8t15Kfn9K9eBJ+zXdO3Eu2qVY2bBCfItm08DBrXUDLvILzBsxaY W2wbdQr7n/l+iUVNlVwGSebE2h7SQPSiGE867iBC9VezodrCiM1G7MZMpOrXmzbpFzXI sZ2qXedCcWYxSTKhigdq6xoWqvq6Vv+BwhrWgYAH7lp946BZ72YF1CGf6OrLBvFv2xNY DOmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AigMVgvF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r14si14358072pgm.406.2019.09.03.06.54.27; Tue, 03 Sep 2019 06:54:43 -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; dkim=pass header.i=@linaro.org header.s=google header.b=AigMVgvF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729465AbfICNwz (ORCPT + 99 others); Tue, 3 Sep 2019 09:52:55 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:39100 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729362AbfICNwz (ORCPT ); Tue, 3 Sep 2019 09:52:55 -0400 Received: by mail-lf1-f66.google.com with SMTP id l11so12962287lfk.6 for ; Tue, 03 Sep 2019 06:52:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=g2euOzbhuNK7g9XKLpA4C13cCqIJOKkMfXZ8Anqpll8=; b=AigMVgvFEUSHDVBa/i+5lkqDEAGVREdhgJJvzSBL/U+HQt+kQnMOE3nDuOGTf/apwo p52yiCaJsV/bEZxuwg/K2ple75yS+DDIHlOKTscCI7B2/Kz4c5KsrcqnJKjHgFUHKptV yhs8pYweX7RZpXHiXURrisP66Y4zllZ3jw70eASXozYlx1ZYmwbmjzdOVjQPyAHb9ppT 5TIlSuuq12ryfhbxqQVGsZ1tpduyI3JRInxE/cRRrbzIkyFO8v3jtpIOcJX37N82mirx Ca0JGvkGC7zojanFSPMMDrhmr0cEISH04VlmhHKX2OERROew/Lkxv/MSe6GBL0XMWLe3 abGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=g2euOzbhuNK7g9XKLpA4C13cCqIJOKkMfXZ8Anqpll8=; b=dCFXsJTXyX2kcW4yfzRhIPJwzffphaHkaVzQPcLwuakoTtEJPyex5xZu85NxEtYK1h sGHhhkWAViJiiSF0jQX/lt7JCz8MkOUeNRZ4g2wFFz8sQD5Pcz5AhziVQRqenWEkSc3b 0TpVczxWT2pIMgVgUW3iC7DRD6oq8JMzOCDbf7bqx7P4zxn0DvgF4BUp5hsaBaquLgjW AUT8lnOCQclgHYX4FbBIIBoTyFi12ioSt5acVHsiHoxWWyDugwrlCWP+RdKqJ+KQs6qg fS7xCbnpM2/p1Q+x3oxbJpvnSmVYspLu4b5yJD3OODB+yCmA1nVWKOjadb/vyXihkXU9 XlxQ== X-Gm-Message-State: APjAAAXQwCo94CBHyNCRp3ktNbA0cy2xkA816Uwi74T7V133PXZVDkhX wnO1da/1LfevJArs6fTPcuauaY7Jx5Y/NCMlYLUMWIsgDGY= X-Received: by 2002:ac2:48af:: with SMTP id u15mr13495069lfg.75.1567518773050; Tue, 03 Sep 2019 06:52:53 -0700 (PDT) MIME-Version: 1.0 References: <7C6CCE98-1E22-433C-BF70-A3CBCDED4635@lca.pw> <20190903123719.GF1131@ZenIV.linux.org.uk> <20190903133134.GG1131@ZenIV.linux.org.uk> In-Reply-To: <20190903133134.GG1131@ZenIV.linux.org.uk> From: Naresh Kamboju Date: Tue, 3 Sep 2019 19:22:41 +0530 Message-ID: Subject: Re: "fs/namei.c: keep track of nd->root refcount status" causes boot panic To: Al Viro Cc: Qian Cai , linux-fsdevel@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On Tue, 3 Sep 2019 at 19:01, Al Viro wrote: > > 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 st= atus=E2=80=9D [1] causes boot panic on all > > > architectures here on today=E2=80=99s 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); > I have applied above patch and tested on arm64 juno-r2 and boot pass [1]. Thanks for the fix patch. > > to avoid breaking out-of-tree stuff for now good reason. > Folded and pushed out. [1] https://lkft.validation.linaro.org/scheduler/job/898187#L511 - Naresh