Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1233271rwa; Sun, 21 Aug 2022 04:14:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR7UsK5sWSNnbP9mbApPkWlLxHP417CuAJehIk0domq1C6aHwNYQM2WQyTKah1dyoxx1barG X-Received: by 2002:a17:903:189:b0:16f:24e4:1614 with SMTP id z9-20020a170903018900b0016f24e41614mr15690857plg.103.1661080495745; Sun, 21 Aug 2022 04:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661080495; cv=none; d=google.com; s=arc-20160816; b=zN+TqjOJclDFCgTikXosYYkitkNoJdIl7Lu+a+g/5Nz7CqNw7KUjwgVDBzphThGBMf IXUjYnpGodepQLb+Cf5ax3eAQxhUgqEfLhrhb1dGOvPIeSYwXcFOgn3CRwZimhwYklGR t9bLihRvn6aCgU/H52Q3zsmFe8LUOY1RO9t1Z9DiEWtpaVST0/6aEaRilk6zlLwrsc0W K3VXAqV2fLKEdMVR4VN40skHTTAsi6RzsAguL2P+75FUtQ4i4V+l4H7ktvHcsfS1BPDv qfBik4S2ngPItR3uoTUOhrDzZ0BojtdBmbeHOEwS+EsynBIKY8xL2pjBTtKlNJtRNeSs FqVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=u2tsSqyGQXJuJL3xS1RDzWsFjp94xnJx43X5dcp1Ppk=; b=wsCFL6V0rQb1lwpDHXuBQfC7fre44yI9qp5R3MWcgGh1G1kj+T6SW/udI6IpzlHkXM crx4N0ae/Wxo8tcomsr/mPZh2aADCvuNJ6JuSnyVZkXI/wikVBcbwUvCaleuTp2qlLvb /8Lft8jTSuJxlWG+gUy4RTFk/8O8ei03Rtc71pFPjjMdMfYLUn4+ABElPBGmJXHX7M6U 2fSv25IjfgC3Wp+jjP+23LRMa8qd6bfYWhxNLorRdYJushgHxFCkApcUP9Kbj7hKTLkH EQCvTHg9aHwDoDt4BdF8W+VGr7jIu70YEvPpRyujcTZOV9PYTA/N7/uIPMuo6tf6nf1Q DRcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="mKpX/yPb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c22-20020a17090a8d1600b001faf4a4124fsi5792312pjo.148.2022.08.21.04.14.45; Sun, 21 Aug 2022 04:14:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="mKpX/yPb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230040AbiHUIgQ (ORCPT + 99 others); Sun, 21 Aug 2022 04:36:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiHUIgN (ORCPT ); Sun, 21 Aug 2022 04:36:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A02502019F for ; Sun, 21 Aug 2022 01:36:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 32532B80BAB for ; Sun, 21 Aug 2022 08:36:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 581D6C433D6; Sun, 21 Aug 2022 08:36:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1661070970; bh=B5gKa+MtBJ6PkaAse75vk0de5HQup8imPBAhN2SAFjQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mKpX/yPbO8fsksZ9xgQ/Wak3xmgVboodfSrJB7b9TrBbZjpLKIgd3p23B8sIbdkul 7lgv0a03reOoTAtF9WpSMKCY3/ZW6ifd/mm8ULrP22n0+Y5SpLNlTPGE4le9PQh5fI QARsq+N5c5i1m+ITqFgTPojcwlnEjqaVHrmDlGs8= Date: Sun, 21 Aug 2022 01:36:08 -0700 From: Andrew Morton To: kernel test robot Cc: Li Zhe , , , Masami Hiramatsu , Vlastimil Babka , Kees Cook , "Jason A. Donenfeld" , Mark-PK Tsai , Steven Rostedt , Zefan Li , Qian Cai , Michal Hocko , Pasha Tatashin , Mel Gorman , Yang Shi , Joonsoo Kim , LKML , Linux Memory Management List Subject: Re: [page_ext] a02a0e703b: Kernel_panic-not_syncing:Out_of_memory Message-Id: <20220821013608.a130580f9c81bd3b3ebe24db@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 21 Aug 2022 16:01:32 +0800 kernel test robot wrote: > > Greeting, > > FYI, we noticed the following commit (built with gcc-11): > > commit: a02a0e703b59a6fdd1b8ae50b47396621a03fc1f ("page_ext: move up page_ext_init() to catch early page allocation if DEFERRED_STRUCT_PAGE_INIT is n") > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master > > in testcase: boot Thanks, I dropped the patch. > on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 4G > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): > > > +----------------------------------------+------------+------------+ > | | 3be3989b3b | a02a0e703b | > +----------------------------------------+------------+------------+ > | boot_successes | 70 | 0 | > | boot_failures | 0 | 66 | > | Mem-Info | 0 | 66 | > | Kernel_panic-not_syncing:Out_of_memory | 0 | 66 | > +----------------------------------------+------------+------------+ > > > If you fix the issue, kindly add following tag > Reported-by: kernel test robot > > > [ 0.541637][ T0] Memory: 3927672K/4193784K available (11206K kernel code, 4497K rwdata, 3820K rodata, 1008K init, 1332K bss, 266112K reserved, 0K > cma-reserved, 3432328K highmem) > [ 0.545125][ T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 > [ 0.546120][ T0] swapper: vmalloc error: size 7864320, vm_struct allocation failed, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=(nul > l),mems_allowed=0-7 > [ 0.548152][ T0] CPU: 0 PID: 0 Comm: swapper Not tainted 6.0.0-rc1-00121-ga02a0e703b59 #1 > [ 0.549286][ T0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-4 04/01/2014 > [ 0.550662][ T0] Call Trace: > [ 0.551108][ T0] ? show_stack+0x3d/0x45 > [ 0.551694][ T0] dump_stack_lvl+0x34/0x44 > [ 0.552299][ T0] dump_stack+0xd/0x10 > [ 0.552841][ T0] warn_alloc.cold+0x55/0xaf > [ 0.553454][ T0] __vmalloc_node_range+0x87/0x140 > [ 0.554139][ T0] vzalloc_node+0x64/0x80 > [ 0.554716][ T0] ? _page_ext_init+0x119/0x1e7 > [ 0.555382][ T0] _page_ext_init+0x119/0x1e7 > [ 0.556010][ T0] start_kernel+0x213/0x49a > [ 0.556615][ T0] ? early_idt_handler_common+0x44/0x44 > [ 0.557358][ T0] i386_start_kernel+0x48/0x4a > [ 0.557995][ T0] startup_32_smp+0x161/0x164 > [ 0.558622][ T0] Mem-Info: > [ 0.559039][ T0] active_anon:0 inactive_anon:0 isolated_anon:0 > [ 0.559039][ T0] active_file:0 inactive_file:0 isolated_file:0 > [ 0.559039][ T0] unevictable:0 dirty:0 writeback:0 > [ 0.559039][ T0] slab_reclaimable:0 slab_unreclaimable:25 > [ 0.559039][ T0] mapped:0 shmem:0 pagetables:0 bounce:0 > [ 0.559039][ T0] kernel_misc_reclaimable:0 > [ 0.559039][ T0] free:981893 free_pcp:0 free_cma:0 > [ 0.564216][ T0] Node 0 active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:0kB dirty:0kB writeback:0kB shmem:0kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB kernel_stack:0kB pagetables:0kB all_unreclaimable? no > [ 0.567976][ T0] Node 0 DMA free:15360kB boost:0kB min:0kB low:0kB high:0kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15360kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB > [ 0.571575][ T0] lowmem_reserve[]: 0 0 0 0 > [ 0.572172][ T0] Node 0 Normal free:479884kB boost:0kB min:0kB low:0kB high:0kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:745464kB managed:479984kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB > [ 0.575803][ T0] lowmem_reserve[]: 0 0 0 0 > [ 0.576395][ T0] Node 0 HighMem free:3432328kB boost:0kB min:0kB low:0kB high:0kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3432328kB managed:3432328kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB > [ 0.580081][ T0] lowmem_reserve[]: 0 0 0 0 > [ 0.580668][ T0] Node 0 DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15360kB > [ 0.582377][ T0] Node 0 Normal: 3*4kB (UM) 2*8kB (UM) 1*16kB (U) 1*32kB (M) 1*64kB (M) 2*128kB (UM) 3*256kB (UM) 1*512kB (U) 1*1024kB (U) 3*2048kB (UM) 115*4096kB (M) = 479884kB > [ 0.584609][ T0] Node 0 HighMem: 0*4kB 1*8kB (M) 0*16kB 0*32kB 0*64kB 1*128kB (M) 1*256kB (M) 1*512kB (M) 1*1024kB (M) 1*2048kB (M) 837*4096kB (M) = 3432328kB > [ 0.586543][ T0] 0 total pagecache pages > [ 0.587121][ T0] 0 pages in swap cache > [ 0.587680][ T0] Free swap = 0kB > [ 0.588170][ T0] Total swap = 0kB > [ 0.588664][ T0] 1048446 pages RAM > [ 0.589165][ T0] 858082 pages HighMem/MovableOnly > [ 0.589850][ T0] 66528 pages reserved > [ 0.590394][ T0] 0 pages cma reserved > [ 0.590947][ T0] page ext allocation failure > [ 0.591574][ T0] Kernel panic - not syncing: Out of memory > [ 0.592360][ T0] CPU: 0 PID: 0 Comm: swapper Not tainted 6.0.0-rc1-00121-ga02a0e703b59 #1 > [ 0.593520][ T0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-4 04/01/2014 > [ 0.594937][ T0] Call Trace: > [ 0.595370][ T0] ? show_stack+0x3d/0x45 > [ 0.595952][ T0] dump_stack_lvl+0x34/0x44 > [ 0.596560][ T0] dump_stack+0xd/0x10 > [ 0.597098][ T0] panic+0xdd/0x251 > [ 0.597602][ T0] _page_ext_init+0x131/0x1e7 > [ 0.598223][ T0] start_kernel+0x213/0x49a > [ 0.598830][ T0] ? early_idt_handler_common+0x44/0x44 > [ 0.599530][ T0] i386_start_kernel+0x48/0x4a > [ 0.600152][ T0] startup_32_smp+0x161/0x164 > > > > To reproduce: > > # build kernel > cd linux > cp config-6.0.0-rc1-00121-ga02a0e703b59 .config > make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 olddefconfig prepare modules_prepare bzImage modules > make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 INSTALL_MOD_PATH= modules_install > cd > find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz > > > git clone https://github.com/intel/lkp-tests.git > cd lkp-tests > bin/lkp qemu -k -m modules.cgz job-script # job-script is attached in this email > > # if come across any failure that blocks the test, > # please remove ~/.lkp and /lkp dir to run from a clean state. > > > > -- > 0-DAY CI Kernel Test Service > https://01.org/lkp > >