From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Hocko Date: Wed, 16 Oct 2019 08:20:22 +0000 Subject: Re: [PATCH V6 0/2] mm/debug: Add tests validating architecture page table helpers Message-Id: <20191016082022.GN317@dhcp22.suse.cz> List-Id: References: <1571131302-32290-1-git-send-email-anshuman.khandual@arm.com> <1571150502.5937.39.camel@lca.pw> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Anshuman Khandual Cc: Mark Rutland , linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Peter Zijlstra , James Hogan , Tetsuo Handa , Heiko Carstens , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Dave Hansen , Paul Mackerras , sparclinux@vger.kernel.org, Thomas Gleixner , linux-s390@vger.kernel.org, Michael Ellerman , x86@kernel.org, Russell King - ARM Linux , Matthew Wilcox , Steven Price , Jason Gunthorpe , Gerald Schaefer , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Kees Cook , Masahiro Yamada , Mark Brown , Qian Cai , "Kirill A . Shutemov" , Dan Williams , Vlastimil Babka , Christophe Leroy , Sri Krishna chowdary , Ard Biesheuvel , Greg Kroah-Hartman , linux-mips@vger.kernel.org, Ralf Baechle , Paul Burton , Mike Rapoport , Vineet Gupta , Martin Schwidefsky , Andrew Morton , linuxppc-dev@lists.ozlabs.org, "David S. Miller" , Mike Kravetz On Tue 15-10-19 20:51:11, Anshuman Khandual wrote: >=20 >=20 > On 10/15/2019 08:11 PM, Qian Cai wrote: > > The x86 will crash with linux-next during boot due to this series (v5) = with the > > config below plus CONFIG_DEBUG_VM_PGTABLE=3Dy. I am not sure if v6 woul= d address > > it. > >=20 > > https://raw.githubusercontent.com/cailca/linux-mm/master/x86.config > >=20 > > [=A0=A0=A033.862600][=A0=A0=A0=A0T1] page:ffffea0009000000 is uninitial= ized and poisoned > > [=A0=A0=A033.862608][=A0=A0=A0=A0T1] raw: ffffffffffffffff ffffffffffff= ffff ffffffffffffffff > > ffffff871140][=A0=A0=A0=A0T1]=A0=A0? _raw_spin_unlock_irq+0x27/0x40 > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1]=A0=A0? rest_init+0x307/0x307 > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1]=A0=A0kernel_init+0x11/0x139 > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1]=A0=A0? rest_init+0x307/0x307 > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1]=A0=A0ret_from_fork+0x27/0x50 > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1] Modules linked in: > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1] ---[ end trace e99d392b0f7befbd ]-= -- > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1] RIP: 0010:alloc_gigantic_page_orde= r+0x3fe/0x490 >=20 > Hmm, with defconfig (DEBUG_VM=3Dy and DEBUG_VM_PGTABLE=3Dy) it does not c= rash but > with the config above, it does. Just wondering if it is possible that the= se > pages might not been initialized yet because DEFERRED_STRUCT_PAGE_INIT=3D= y ? Quite likely. You need to wait for page_alloc_init_late to finish. >=20 > [ 13.898549][ T1] page:ffffea0005000000 is uninitialized and poisoned > [ 13.898549][ T1] raw: ffffffffffffffff ffffffffffffffff fffffffffff= fffff ffffffffffffffff > [ 13.898549][ T1] raw: ffffffffffffffff ffffffffffffffff fffffffffff= fffff ffffffffffffffff > [ 13.898549][ T1] page dumped because: VM_BUG_ON_PAGE(PagePoisoned(p= )) > [ 13.898549][ T1] ------------[ cut here ]------------ > [ 13.898549][ T1] kernel BUG at ./include/linux/mm.h:1107! > [ 13.898549][ T1] invalid opcode: 0000 [#1] SMP DEBUG_PAGEALLOC KASA= N PTI > [ 13.898549][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.0-rc= 3-next-20191015+ # --=20 Michal Hocko SUSE Labs From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46D02C4360C for ; Wed, 16 Oct 2019 08:20:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 200582168B for ; Wed, 16 Oct 2019 08:20:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571214030; bh=PezwXMZriBrz2Y9bP1EWUNdc1Ffp6TkPYKSmkacCBzw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=d5CxvV0qgZYFzv18syKLJkJUjNTna4W6idyjjrHET+UlrLydo1jXfH3KAndzN9Ikv FdimQqhTooP0L7vF1I047rmQdFQOTiLl/pGOl7Bij9AIwYBsro7vTjywMHcVBAKI9m fcWVeXw6gTYZOAwaop5R9y0ujlTAQ8p5Gawy6s+E= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391510AbfJPIU3 (ORCPT ); Wed, 16 Oct 2019 04:20:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:32772 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726949AbfJPIU2 (ORCPT ); Wed, 16 Oct 2019 04:20:28 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8F4AEBA75; Wed, 16 Oct 2019 08:20:24 +0000 (UTC) Date: Wed, 16 Oct 2019 10:20:22 +0200 From: Michal Hocko To: Anshuman Khandual Cc: Qian Cai , linux-mm@kvack.org, Andrew Morton , Vlastimil Babka , Greg Kroah-Hartman , Thomas Gleixner , Mike Rapoport , Jason Gunthorpe , Dan Williams , Peter Zijlstra , Mark Rutland , Mark Brown , Steven Price , Ard Biesheuvel , Masahiro Yamada , Kees Cook , Tetsuo Handa , Matthew Wilcox , Sri Krishna chowdary , Dave Hansen , Russell King - ARM Linux , Michael Ellerman , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , "David S. Miller" , Vineet Gupta , James Hogan , Paul Burton , Ralf Baechle , "Kirill A . Shutemov" , Gerald Schaefer , Christophe Leroy , Mike Kravetz , linux-snps-arc@lists.infradead.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V6 0/2] mm/debug: Add tests validating architecture page table helpers Message-ID: <20191016082022.GN317@dhcp22.suse.cz> References: <1571131302-32290-1-git-send-email-anshuman.khandual@arm.com> <1571150502.5937.39.camel@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Tue 15-10-19 20:51:11, Anshuman Khandual wrote: > > > On 10/15/2019 08:11 PM, Qian Cai wrote: > > The x86 will crash with linux-next during boot due to this series (v5) with the > > config below plus CONFIG_DEBUG_VM_PGTABLE=y. I am not sure if v6 would address > > it. > > > > https://raw.githubusercontent.com/cailca/linux-mm/master/x86.config > > > > [   33.862600][    T1] page:ffffea0009000000 is uninitialized and poisoned > > [   33.862608][    T1] raw: ffffffffffffffff ffffffffffffffff ffffffffffffffff > > ffffff871140][    T1]  ? _raw_spin_unlock_irq+0x27/0x40 > > [   33.871140][    T1]  ? rest_init+0x307/0x307 > > [   33.871140][    T1]  kernel_init+0x11/0x139 > > [   33.871140][    T1]  ? rest_init+0x307/0x307 > > [   33.871140][    T1]  ret_from_fork+0x27/0x50 > > [   33.871140][    T1] Modules linked in: > > [   33.871140][    T1] ---[ end trace e99d392b0f7befbd ]--- > > [   33.871140][    T1] RIP: 0010:alloc_gigantic_page_order+0x3fe/0x490 > > Hmm, with defconfig (DEBUG_VM=y and DEBUG_VM_PGTABLE=y) it does not crash but > with the config above, it does. Just wondering if it is possible that these > pages might not been initialized yet because DEFERRED_STRUCT_PAGE_INIT=y ? Quite likely. You need to wait for page_alloc_init_late to finish. > > [ 13.898549][ T1] page:ffffea0005000000 is uninitialized and poisoned > [ 13.898549][ T1] raw: ffffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffff > [ 13.898549][ T1] raw: ffffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffff > [ 13.898549][ T1] page dumped because: VM_BUG_ON_PAGE(PagePoisoned(p)) > [ 13.898549][ T1] ------------[ cut here ]------------ > [ 13.898549][ T1] kernel BUG at ./include/linux/mm.h:1107! > [ 13.898549][ T1] invalid opcode: 0000 [#1] SMP DEBUG_PAGEALLOC KASAN PTI > [ 13.898549][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.0-rc3-next-20191015+ # -- Michal Hocko SUSE Labs From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de ([195.135.220.15]:32772 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726949AbfJPIU2 (ORCPT ); Wed, 16 Oct 2019 04:20:28 -0400 Date: Wed, 16 Oct 2019 10:20:22 +0200 From: Michal Hocko Subject: Re: [PATCH V6 0/2] mm/debug: Add tests validating architecture page table helpers Message-ID: <20191016082022.GN317@dhcp22.suse.cz> References: <1571131302-32290-1-git-send-email-anshuman.khandual@arm.com> <1571150502.5937.39.camel@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: Sender: linux-s390-owner@vger.kernel.org List-ID: To: Anshuman Khandual Cc: Qian Cai , linux-mm@kvack.org, Andrew Morton , Vlastimil Babka , Greg Kroah-Hartman , Thomas Gleixner , Mike Rapoport , Jason Gunthorpe , Dan Williams , Peter Zijlstra , Mark Rutland , Mark Brown , Steven Price , Ard Biesheuvel , Masahiro Yamada , Kees Cook , Tetsuo Handa , Matthew Wilcox , Sri Krishna chowdary , Dave Hansen , Russell King - ARM Linux , Michael Ellerman , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , "David S. Miller" , Vineet Gupta , James Hogan , Paul Burton , Ralf Baechle , "Kirill A . Shutemov" , Gerald Schaefer , Christophe Leroy , Mike Kravetz , linux-snps-arc@lists.infradead.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org On Tue 15-10-19 20:51:11, Anshuman Khandual wrote: >=20 >=20 > On 10/15/2019 08:11 PM, Qian Cai wrote: > > The x86 will crash with linux-next during boot due to this series (v5) = with the > > config below plus CONFIG_DEBUG_VM_PGTABLE=3Dy. I am not sure if v6 woul= d address > > it. > >=20 > > https://raw.githubusercontent.com/cailca/linux-mm/master/x86.config > >=20 > > [=EF=BF=BD=EF=BF=BD=EF=BF=BD33.862600][=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BDT1] page:ffffea0009000000 is uninitialized and poisoned > > [=EF=BF=BD=EF=BF=BD=EF=BF=BD33.862608][=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BDT1] raw: ffffffffffffffff ffffffffffffffff ffffffffffffffff > > ffffff871140][=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BDT1]=EF=BF=BD=EF=BF=BD= ? _raw_spin_unlock_irq+0x27/0x40 > > [=EF=BF=BD=EF=BF=BD=EF=BF=BD33.871140][=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BDT1]=EF=BF=BD=EF=BF=BD? rest_init+0x307/0x307 > > [=EF=BF=BD=EF=BF=BD=EF=BF=BD33.871140][=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BDT1]=EF=BF=BD=EF=BF=BDkernel_init+0x11/0x139 > > [=EF=BF=BD=EF=BF=BD=EF=BF=BD33.871140][=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BDT1]=EF=BF=BD=EF=BF=BD? rest_init+0x307/0x307 > > [=EF=BF=BD=EF=BF=BD=EF=BF=BD33.871140][=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BDT1]=EF=BF=BD=EF=BF=BDret_from_fork+0x27/0x50 > > [=EF=BF=BD=EF=BF=BD=EF=BF=BD33.871140][=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BDT1] Modules linked in: > > [=EF=BF=BD=EF=BF=BD=EF=BF=BD33.871140][=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BDT1] ---[ end trace e99d392b0f7befbd ]--- > > [=EF=BF=BD=EF=BF=BD=EF=BF=BD33.871140][=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BDT1] RIP: 0010:alloc_gigantic_page_order+0x3fe/0x490 >=20 > Hmm, with defconfig (DEBUG_VM=3Dy and DEBUG_VM_PGTABLE=3Dy) it does not c= rash but > with the config above, it does. Just wondering if it is possible that the= se > pages might not been initialized yet because DEFERRED_STRUCT_PAGE_INIT=3D= y ? Quite likely. You need to wait for page_alloc_init_late to finish. >=20 > [ 13.898549][ T1] page:ffffea0005000000 is uninitialized and poisoned > [ 13.898549][ T1] raw: ffffffffffffffff ffffffffffffffff fffffffffff= fffff ffffffffffffffff > [ 13.898549][ T1] raw: ffffffffffffffff ffffffffffffffff fffffffffff= fffff ffffffffffffffff > [ 13.898549][ T1] page dumped because: VM_BUG_ON_PAGE(PagePoisoned(p= )) > [ 13.898549][ T1] ------------[ cut here ]------------ > [ 13.898549][ T1] kernel BUG at ./include/linux/mm.h:1107! > [ 13.898549][ T1] invalid opcode: 0000 [#1] SMP DEBUG_PAGEALLOC KASA= N PTI > [ 13.898549][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.0-rc= 3-next-20191015+ # --=20 Michal Hocko SUSE Labs From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A759ECE588 for ; Wed, 16 Oct 2019 08:22:23 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DFE672168B for ; Wed, 16 Oct 2019 08:22:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DFE672168B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46tQJX0Fg9zDqpy for ; Wed, 16 Oct 2019 19:22:20 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=softfail (domain owner discourages use of this host) smtp.mailfrom=kernel.org (client-ip=195.135.220.15; helo=mx1.suse.de; envelope-from=mhocko@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46tQGQ0yH2zDqVH for ; Wed, 16 Oct 2019 19:20:29 +1100 (AEDT) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8F4AEBA75; Wed, 16 Oct 2019 08:20:24 +0000 (UTC) Date: Wed, 16 Oct 2019 10:20:22 +0200 From: Michal Hocko To: Anshuman Khandual Subject: Re: [PATCH V6 0/2] mm/debug: Add tests validating architecture page table helpers Message-ID: <20191016082022.GN317@dhcp22.suse.cz> References: <1571131302-32290-1-git-send-email-anshuman.khandual@arm.com> <1571150502.5937.39.camel@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Peter Zijlstra , James Hogan , Tetsuo Handa , Heiko Carstens , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Dave Hansen , Paul Mackerras , sparclinux@vger.kernel.org, Thomas Gleixner , linux-s390@vger.kernel.org, x86@kernel.org, Russell King - ARM Linux , Matthew Wilcox , Steven Price , Jason Gunthorpe , Gerald Schaefer , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Kees Cook , Masahiro Yamada , Mark Brown , Qian Cai , "Kirill A . Shutemov" , Dan Williams , Vlastimil Babka , Sri Krishna chowdary , Ard Biesheuvel , Greg Kroah-Hartman , linux-mips@vger.kernel.org, Ralf Baechle , Paul Burton , Mike Rapoport , Vineet Gupta , Martin Schwidefsky , Andrew Morton , linuxppc-dev@lists.ozlabs.org, "David S. Miller" , Mike Kravetz Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Tue 15-10-19 20:51:11, Anshuman Khandual wrote: > > > On 10/15/2019 08:11 PM, Qian Cai wrote: > > The x86 will crash with linux-next during boot due to this series (v5) with the > > config below plus CONFIG_DEBUG_VM_PGTABLE=y. I am not sure if v6 would address > > it. > > > > https://raw.githubusercontent.com/cailca/linux-mm/master/x86.config > > > > [   33.862600][    T1] page:ffffea0009000000 is uninitialized and poisoned > > [   33.862608][    T1] raw: ffffffffffffffff ffffffffffffffff ffffffffffffffff > > ffffff871140][    T1]  ? _raw_spin_unlock_irq+0x27/0x40 > > [   33.871140][    T1]  ? rest_init+0x307/0x307 > > [   33.871140][    T1]  kernel_init+0x11/0x139 > > [   33.871140][    T1]  ? rest_init+0x307/0x307 > > [   33.871140][    T1]  ret_from_fork+0x27/0x50 > > [   33.871140][    T1] Modules linked in: > > [   33.871140][    T1] ---[ end trace e99d392b0f7befbd ]--- > > [   33.871140][    T1] RIP: 0010:alloc_gigantic_page_order+0x3fe/0x490 > > Hmm, with defconfig (DEBUG_VM=y and DEBUG_VM_PGTABLE=y) it does not crash but > with the config above, it does. Just wondering if it is possible that these > pages might not been initialized yet because DEFERRED_STRUCT_PAGE_INIT=y ? Quite likely. You need to wait for page_alloc_init_late to finish. > > [ 13.898549][ T1] page:ffffea0005000000 is uninitialized and poisoned > [ 13.898549][ T1] raw: ffffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffff > [ 13.898549][ T1] raw: ffffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffff > [ 13.898549][ T1] page dumped because: VM_BUG_ON_PAGE(PagePoisoned(p)) > [ 13.898549][ T1] ------------[ cut here ]------------ > [ 13.898549][ T1] kernel BUG at ./include/linux/mm.h:1107! > [ 13.898549][ T1] invalid opcode: 0000 [#1] SMP DEBUG_PAGEALLOC KASAN PTI > [ 13.898549][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.0-rc3-next-20191015+ # -- Michal Hocko SUSE Labs From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0565ECE588 for ; Wed, 16 Oct 2019 08:20:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B63AF2168B for ; Wed, 16 Oct 2019 08:20:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gkmkRtv8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B63AF2168B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=A4NGHbocvPmpnY89ECqf2o2EtAVzornpT/1Uokd/Auw=; b=gkmkRtv8VkXQ5z xLF7saBm+DQnpYJpkz6FsR7RqFel8lesY2sLFhK7NzoocHQgY0qasZcHd6PaGzkWrZRd+t9BUkGyU C9jy20riFqi1hzg0k6FCu8zwPHv2d6lvPOhKghkmCIa3vQzDmBKtzzhSAPuTkkVNeCAKFeXOHa12g 3gL5jVZ5ncV02dKJvWM9MKQcm5fG84jIYHgqNG90aBkWJFe37vSdkx8+AXlEp3Nr1i77SUz0DPSB1 Bqty2/9hBfaQyb33w7/hij+Rn7PhLVV7KpWhmFiDIBvY5IWhTaG2mHZw0rOLNWJ67Ov8OVydyaSA0 gEz+RhS0fjSHcovvL2ug==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iKeXs-0006z9-Fa; Wed, 16 Oct 2019 08:20:36 +0000 Received: from mx2.suse.de ([195.135.220.15] helo=mx1.suse.de) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iKeXj-0006qg-0j; Wed, 16 Oct 2019 08:20:28 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8F4AEBA75; Wed, 16 Oct 2019 08:20:24 +0000 (UTC) Date: Wed, 16 Oct 2019 10:20:22 +0200 From: Michal Hocko To: Anshuman Khandual Subject: Re: [PATCH V6 0/2] mm/debug: Add tests validating architecture page table helpers Message-ID: <20191016082022.GN317@dhcp22.suse.cz> References: <1571131302-32290-1-git-send-email-anshuman.khandual@arm.com> <1571150502.5937.39.camel@lca.pw> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191016_012027_352608_22C3B495 X-CRM114-Status: GOOD ( 13.54 ) X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Peter Zijlstra , James Hogan , Tetsuo Handa , Heiko Carstens , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Dave Hansen , Paul Mackerras , sparclinux@vger.kernel.org, Thomas Gleixner , linux-s390@vger.kernel.org, Michael Ellerman , x86@kernel.org, Russell King - ARM Linux , Matthew Wilcox , Steven Price , Jason Gunthorpe , Gerald Schaefer , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Kees Cook , Masahiro Yamada , Mark Brown , Qian Cai , "Kirill A . Shutemov" , Dan Williams , Vlastimil Babka , Christophe Leroy , Sri Krishna chowdary , Ard Biesheuvel , Greg Kroah-Hartman , linux-mips@vger.kernel.org, Ralf Baechle , Paul Burton , Mike Rapoport , Vineet Gupta , Martin Schwidefsky , Andrew Morton , linuxppc-dev@lists.ozlabs.org, "David S. Miller" , Mike Kravetz Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org On Tue 15-10-19 20:51:11, Anshuman Khandual wrote: > = > = > On 10/15/2019 08:11 PM, Qian Cai wrote: > > The x86 will crash with linux-next during boot due to this series (v5) = with the > > config below plus CONFIG_DEBUG_VM_PGTABLE=3Dy. I am not sure if v6 woul= d address > > it. > > = > > https://raw.githubusercontent.com/cailca/linux-mm/master/x86.config > > = > > [=A0=A0=A033.862600][=A0=A0=A0=A0T1] page:ffffea0009000000 is uninitial= ized and poisoned > > [=A0=A0=A033.862608][=A0=A0=A0=A0T1] raw: ffffffffffffffff ffffffffffff= ffff ffffffffffffffff > > ffffff871140][=A0=A0=A0=A0T1]=A0=A0? _raw_spin_unlock_irq+0x27/0x40 > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1]=A0=A0? rest_init+0x307/0x307 > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1]=A0=A0kernel_init+0x11/0x139 > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1]=A0=A0? rest_init+0x307/0x307 > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1]=A0=A0ret_from_fork+0x27/0x50 > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1] Modules linked in: > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1] ---[ end trace e99d392b0f7befbd ]-= -- > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1] RIP: 0010:alloc_gigantic_page_orde= r+0x3fe/0x490 > = > Hmm, with defconfig (DEBUG_VM=3Dy and DEBUG_VM_PGTABLE=3Dy) it does not c= rash but > with the config above, it does. Just wondering if it is possible that the= se > pages might not been initialized yet because DEFERRED_STRUCT_PAGE_INIT=3D= y ? Quite likely. You need to wait for page_alloc_init_late to finish. > = > [ 13.898549][ T1] page:ffffea0005000000 is uninitialized and poisoned > [ 13.898549][ T1] raw: ffffffffffffffff ffffffffffffffff fffffffffff= fffff ffffffffffffffff > [ 13.898549][ T1] raw: ffffffffffffffff ffffffffffffffff fffffffffff= fffff ffffffffffffffff > [ 13.898549][ T1] page dumped because: VM_BUG_ON_PAGE(PagePoisoned(p= )) > [ 13.898549][ T1] ------------[ cut here ]------------ > [ 13.898549][ T1] kernel BUG at ./include/linux/mm.h:1107! > [ 13.898549][ T1] invalid opcode: 0000 [#1] SMP DEBUG_PAGEALLOC KASA= N PTI > [ 13.898549][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.0-rc= 3-next-20191015+ # -- = Michal Hocko SUSE Labs _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7440AECE588 for ; Wed, 16 Oct 2019 08:20:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 43BF82168B for ; Wed, 16 Oct 2019 08:20:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rPDm5UC/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 43BF82168B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SOfNH1QNvxTGLiGzRndDeapCiM92PO3qQFxkl80QUk8=; b=rPDm5UC/gtog0S 9GarBCj4oM4qTvhz+0Ii3lbZTEyisPwlpUQxZfwXrxerERIOWnn8cxLKUdVS24qT4ZQqovp8L3t0F V5anhpVAg7RUYVcaTTexXsp6QSwm1AFXl7GWQmjDGvCUYw+NXf+XpgDT8LxDGPFRVMusjS3UG+QTy 5G455VHbpc1Qetyr9rD5JIq6f6kwSte4gfZZb0zxKeNUOgvY3styqDFSSDLST0Vn7XYhV8PGBw7AZ AKP/nHXnNIRtnuwY6Kk32HKaDKnzphoLysk8YTfht8Hkv6U84DSUriH5EMCbzM3PkQRaTOQ8e6iIa RQ/5HhNsIpov0IssEm7w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iKeXm-0006rB-ES; Wed, 16 Oct 2019 08:20:30 +0000 Received: from mx2.suse.de ([195.135.220.15] helo=mx1.suse.de) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iKeXj-0006qg-0j; Wed, 16 Oct 2019 08:20:28 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8F4AEBA75; Wed, 16 Oct 2019 08:20:24 +0000 (UTC) Date: Wed, 16 Oct 2019 10:20:22 +0200 From: Michal Hocko To: Anshuman Khandual Subject: Re: [PATCH V6 0/2] mm/debug: Add tests validating architecture page table helpers Message-ID: <20191016082022.GN317@dhcp22.suse.cz> References: <1571131302-32290-1-git-send-email-anshuman.khandual@arm.com> <1571150502.5937.39.camel@lca.pw> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191016_012027_352608_22C3B495 X-CRM114-Status: GOOD ( 13.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Peter Zijlstra , James Hogan , Tetsuo Handa , Heiko Carstens , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Dave Hansen , Paul Mackerras , sparclinux@vger.kernel.org, Thomas Gleixner , linux-s390@vger.kernel.org, Michael Ellerman , x86@kernel.org, Russell King - ARM Linux , Matthew Wilcox , Steven Price , Jason Gunthorpe , Gerald Schaefer , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Kees Cook , Masahiro Yamada , Mark Brown , Qian Cai , "Kirill A . Shutemov" , Dan Williams , Vlastimil Babka , Christophe Leroy , Sri Krishna chowdary , Ard Biesheuvel , Greg Kroah-Hartman , linux-mips@vger.kernel.org, Ralf Baechle , Paul Burton , Mike Rapoport , Vineet Gupta , Martin Schwidefsky , Andrew Morton , linuxppc-dev@lists.ozlabs.org, "David S. Miller" , Mike Kravetz Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue 15-10-19 20:51:11, Anshuman Khandual wrote: > = > = > On 10/15/2019 08:11 PM, Qian Cai wrote: > > The x86 will crash with linux-next during boot due to this series (v5) = with the > > config below plus CONFIG_DEBUG_VM_PGTABLE=3Dy. I am not sure if v6 woul= d address > > it. > > = > > https://raw.githubusercontent.com/cailca/linux-mm/master/x86.config > > = > > [=A0=A0=A033.862600][=A0=A0=A0=A0T1] page:ffffea0009000000 is uninitial= ized and poisoned > > [=A0=A0=A033.862608][=A0=A0=A0=A0T1] raw: ffffffffffffffff ffffffffffff= ffff ffffffffffffffff > > ffffff871140][=A0=A0=A0=A0T1]=A0=A0? _raw_spin_unlock_irq+0x27/0x40 > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1]=A0=A0? rest_init+0x307/0x307 > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1]=A0=A0kernel_init+0x11/0x139 > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1]=A0=A0? rest_init+0x307/0x307 > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1]=A0=A0ret_from_fork+0x27/0x50 > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1] Modules linked in: > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1] ---[ end trace e99d392b0f7befbd ]-= -- > > [=A0=A0=A033.871140][=A0=A0=A0=A0T1] RIP: 0010:alloc_gigantic_page_orde= r+0x3fe/0x490 > = > Hmm, with defconfig (DEBUG_VM=3Dy and DEBUG_VM_PGTABLE=3Dy) it does not c= rash but > with the config above, it does. Just wondering if it is possible that the= se > pages might not been initialized yet because DEFERRED_STRUCT_PAGE_INIT=3D= y ? Quite likely. You need to wait for page_alloc_init_late to finish. > = > [ 13.898549][ T1] page:ffffea0005000000 is uninitialized and poisoned > [ 13.898549][ T1] raw: ffffffffffffffff ffffffffffffffff fffffffffff= fffff ffffffffffffffff > [ 13.898549][ T1] raw: ffffffffffffffff ffffffffffffffff fffffffffff= fffff ffffffffffffffff > [ 13.898549][ T1] page dumped because: VM_BUG_ON_PAGE(PagePoisoned(p= )) > [ 13.898549][ T1] ------------[ cut here ]------------ > [ 13.898549][ T1] kernel BUG at ./include/linux/mm.h:1107! > [ 13.898549][ T1] invalid opcode: 0000 [#1] SMP DEBUG_PAGEALLOC KASA= N PTI > [ 13.898549][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.0-rc= 3-next-20191015+ # -- = Michal Hocko SUSE Labs _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel