Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp898082ybz; Wed, 29 Apr 2020 11:19:49 -0700 (PDT) X-Google-Smtp-Source: APiQypI+qZdDSbJAQ0xoi1CCwfXAJAnB+2B8s2dzXleh7th9ww2UZA671cPcwsbjdqV5l+S6p7Da X-Received: by 2002:a05:6402:1713:: with SMTP id y19mr3882520edu.40.1588184389358; Wed, 29 Apr 2020 11:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588184389; cv=none; d=google.com; s=arc-20160816; b=ZzEwQmoHYBJsXUYgemVtEYYwc4McvaGbHasNVYoh/O24OPoSkOer+eMwrlYv+ZZVYv 9OIrSN+NAPb2GvHGxtaAJW+WsNOm9DccYjX85b1hcs/XCUhivy3Slj0LtaGCtyGgQPdT xh5J0CVMe3b2CKfG116DKBY9PV+o2xo0h2Zr18kpWCOtM8/yJSYe5pUoStWbA15RXyfM JsunzdNZyKSJMq7GAQdRAe772F+xq87/Rf9VYG1Eb6umNW25WF9CRDbSP/Ac9Fbj54Nt bVJ+ps4+QHqJT32ha551sMMFykiqQbPDoe5UWBnVuw1teJtmhR5zvp3Ox0xUc8Vmhbp8 d7DQ== 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=TuTFJWdlGJHusaEMyPO0MuqjfJhe88EBpplGWW10E28=; b=NkXxnllOjxMY0clYi7JEDNTjq1WiRdW8uNQXnqof3vv9AWHB2M42UKtqaVckBsEjG9 rqfX0mf2LUi7h4946Bvdq5nPTMaUCpPBk/j0xuAxxgD+VQ0wTu2Gd0KsI/RP0WmoYdwO 0um4d++yod8GD4Nkxt1x9YxfoQtq7U2jUnkjZdoxX/jubHbgz+aSyw77+V5kKzpsyrgC zoE1SoBjOMqoGIKVCHJEqOUz51SRN39a0BMljOX8nm27wmpu94eCC+lhUo/lN6gLQko4 RrOz/Spr0jS/jkmQuzeUJ+ixmpTc5lofMi8rHXF/CHAzBChhSsTcrJ3AHieR6zoPSYXc U9dg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs23si4368142ejb.207.2020.04.29.11.19.25; Wed, 29 Apr 2020 11:19:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726580AbgD2SP5 (ORCPT + 99 others); Wed, 29 Apr 2020 14:15:57 -0400 Received: from foss.arm.com ([217.140.110.172]:43350 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726511AbgD2SP5 (ORCPT ); Wed, 29 Apr 2020 14:15:57 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A62E41063; Wed, 29 Apr 2020 11:15:56 -0700 (PDT) Received: from gaia (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 609E33F73D; Wed, 29 Apr 2020 11:15:53 -0700 (PDT) Date: Wed, 29 Apr 2020 19:15:51 +0100 From: Catalin Marinas To: "Chen, Rong A" Cc: Anshuman Khandual , Qian Cai , Christophe Leroy , kernel test robot , Stephen Rothwell , Ingo Molnar , Mike Rapoport , Vineet Gupta , Will Deacon , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "Kirill A. Shutemov" , Paul Walmsley , Palmer Dabbelt , Andrew Morton , LKML , lkp@lists.01.org Subject: Re: [LKP] Re: [mm/debug] fa6726c1e7: kernel_BUG_at_include/linux/mm.h Message-ID: <20200429181550.GF10651@gaia> References: <9e9091b9-6918-d0af-dd92-3bdc0e29a4d5@arm.com> <813D7CD3-F31C-4056-92DF-D462633E9D69@lca.pw> <20200428092105.GB3868@gaia> <07ea0efd-0145-eaaf-c628-e48957154a2c@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <07ea0efd-0145-eaaf-c628-e48957154a2c@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 29, 2020 at 08:52:25PM +0800, Chen, Rong A wrote: > On 4/29/2020 11:28 AM, Anshuman Khandual wrote: > > On 04/28/2020 02:51 PM, Catalin Marinas wrote: > > > On Tue, Apr 28, 2020 at 04:41:11AM -0400, Qian Cai wrote: > > > > On Apr 28, 2020, at 1:54 AM, Anshuman Khandual wrote: > > > > > That is true. There is a slight change in the rules, making it explicit yes > > > > > only when both ARCH_HAS_DEBUG_VM_PGTABLE and DEBUG_VM are enabled. > > > > > > > > > > +config DEBUG_VM_PGTABLE > > > > > + bool "Debug arch page table for semantics compliance" > > > > > + depends on MMU > > > > > + depends on !IA64 && !ARM > > > > > + depends on ARCH_HAS_DEBUG_VM_PGTABLE || EXPERT > > > > > + default y if ARCH_HAS_DEBUG_VM_PGTABLE && DEBUG_VM > > > > > + help > > > > > > > > > > The default is really irrelevant as the config option can be set explicitly. > > > > That could also explain. Since not long time ago, it was only “default > > > > y if DEBUG_VM”, that caused the robot saved a .config with > > > > DEBUG_VM_PGTABLE=y by default. > > > > > > > > Even though you changed the rule recently, it has no effect as the > > > > robot could “make oldconfig” from the saved config for each linux-next > > > > tree execution and the breakage will go on. > > > I'm not entirely sure that's the case. This report still points at the > > > old commit fa6726c1e7 which has: > > > > > > + depends on ARCH_HAS_DEBUG_VM_PGTABLE || EXPERT > > > + default n if !ARCH_HAS_DEBUG_VM_PGTABLE > > > + default y if DEBUG_VM > > > > > > In -next we now have commit 647d9a0de34c and subsequently modified by > > > commit 0a8646638865. So hopefully with the latest -next tree we won't > > > see this report. > > Could some one from LKP test framework, please confirm if this still causes > > above problem on the latest linux-next by default ? > > The .config is a rand config, the problem is still exist if run "make > oldconfig" for the config with commit 0a8646638865. Is randconfig expected to boot? I don't think it is but I guess it should not trigger a BUG_ON during boot. > $ grep -e CONFIG_MMU= -e CONFIG_EXPERT= -e CONFIG_ARCH_HAS_DEBUG_VM_PGTABLE= > -e CONFIG_DEBUG_VM= .config > CONFIG_EXPERT=y > CONFIG_MMU=y > CONFIG_DEBUG_VM=y > > should we disable DEBUG_VM_PGTABLE by default? If that's the only case where this fails in LKP, I'd rather remove the EXPERT dependency so that it cannot be enabled. Architectures that want to experiment with this feature will have to select ARCH_HAS_DEBUG_VM_PGTABLE explicitly. -- Catalin