Received: by 10.192.165.156 with SMTP id m28csp29170imm; Wed, 18 Apr 2018 16:40:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+YnqpMS7GL5y0hqS81HGwj/lmrGHruGVF29Kt2z4zd3lbJfwhDEzuaxGKnlHcfkB8Ufs8x X-Received: by 2002:a17:902:be08:: with SMTP id r8-v6mr3742936pls.289.1524094835778; Wed, 18 Apr 2018 16:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524094835; cv=none; d=google.com; s=arc-20160816; b=WrRJfIFkU7fLMC9hZhlcD74WOuPx3bXaeTc1eDIcr2vZrd7/4kyiFQ8dMx+ImsSx3Y je7bOgZs/8VhJ103EuMMwjVD1jqE1i1Sv2/Zdy+RxJYwFvvQKTVETEiKopdTSr6C76Lp JuAUc9cFbX64VUkbhk26Xosv1qjehtwZWWQQHhsf7HFgwlRN0iVrYbKKZLPYTahud7mQ fU1VlLW9HXa/oWSfWGdWIOpRjiz22E9EiT/daTYlbDa356njhnsRyBjqPCsy0ACYw/hT /tb5z2/v/pGhpb4BJWSMy3HNiQ+n81CYQo7FxcNLHAjYfVep/QzXA3nlA6x5VsEG8bdc R/7A== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=EGRAhhnugqScDLfTTtUukPomwiT+VyGFNNXMZR8NOXY=; b=rGrc7uJStPJU5s/7Q8E0gSSKyumk8kTA6y8G4/5UAltaotJh28Di/i5fRXtFyLhIq9 HhpDBukc6Z+b5W64VjeYzFvjNazsOWU5vOECRzQbqExWCJsU8uiy5H7ZWTfdgk9iZ4dr Rg74bhF536zG/iZqz+PkghooR1l7z9BAtR9hV+lUfpEl2idBGCEwiy6747eI7o0spebg abLG3Eg/4xYTDWlwVqM8oI+U2F+OpHmJN/frRjRfu2329PKRRePfcRbq/+IH0+l07GAh fX2Bf1bBB1anmOcoNYXazYj6xVfivvWqNvyeXq4s3VqBcbTY4uC9szdBmcjLUdR+dKkB OWxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M2wsuVzD; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si2205602plt.98.2018.04.18.16.40.20; Wed, 18 Apr 2018 16:40:35 -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=@gmail.com header.s=20161025 header.b=M2wsuVzD; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752392AbeDRXis (ORCPT + 99 others); Wed, 18 Apr 2018 19:38:48 -0400 Received: from mail-ot0-f170.google.com ([74.125.82.170]:37020 "EHLO mail-ot0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752135AbeDRXiq (ORCPT ); Wed, 18 Apr 2018 19:38:46 -0400 Received: by mail-ot0-f170.google.com with SMTP id y46-v6so3888326otd.4 for ; Wed, 18 Apr 2018 16:38:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=EGRAhhnugqScDLfTTtUukPomwiT+VyGFNNXMZR8NOXY=; b=M2wsuVzD6AeXDeCGK5ovCFFq9PzX3Qtj8N8r5BIZujZ9p1HsP7dEnOumqEguB53nN0 dpZfEl5doFcvLwh5z7NtZH6L6rU5Z0lXZENuxSGZo89gG7oMUB2t9v8tUxlvlrnk92zg ZlyWBkA0n/8DWTbPpwcmqJuY6AOFZTQJ2KZmt3LBJOWwOcVMt7k4RmOqI0eeQ0CPLC6j myrmhF8C1P+ffko8Ux5vB5n5zz7WMuCFIoWOGf4/EzqqdXNS6psQW7MF1l6d8mklZiNr zAVxUBeJoeBb4iqqPPlg4XypIJpViOFDJa3iWeivhMMyeiz+Pruqn6TKTZ3hsNCOexDl h16w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=EGRAhhnugqScDLfTTtUukPomwiT+VyGFNNXMZR8NOXY=; b=CYMRjEs+U11Gu5YbkIDZQOhFXPNOBJzufd5jalpU8volUE7k3JjGHDrxsuoDE4FbR0 0fXhdTamsR/+fzFcIWE3TWLq1VjWuPmr4ZKqc+wkLYmksCMI2uPbxRONGl7Juo4nChP5 x65auibkvTCCVTIru60K6g9mqLueDBdslpDnUvurcr9QUQ1PCymJuKcyLhw4gKw8tPWY mSaVWYVPP18URChXIZ5VQoWOOeZHIhyq/HYsCfEDZU71jfwsXB8eLi+y/ezyWvukUJAc nUDwRv/Q1QPtC9locU4faF8jBktYZnRMbwfBbvfS0LgNkBb8ZmQz3PX8gdFaoe2BLoT1 aWzQ== X-Gm-Message-State: ALQs6tD0Hdpa6iUR6Q33ou00wszTSlCdbNc3VUYKiF4JrBMAL7roM8Uj XPirbPEBbp8nmBf96I+Uuzc= X-Received: by 2002:a9d:26fc:: with SMTP id i57-v6mr2471750otd.266.1524094726193; Wed, 18 Apr 2018 16:38:46 -0700 (PDT) Received: from big-sky.local (104-187-157-211.lightspeed.mdsnwi.sbcglobal.net. [104.187.157.211]) by smtp.gmail.com with ESMTPSA id j14-v6sm1219883oii.7.2018.04.18.16.38.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Apr 2018 16:38:45 -0700 (PDT) Date: Wed, 18 Apr 2018 18:38:25 -0500 From: Dennis Zhou To: Fengguang Wu , Pavel Tatashin Cc: linux-mm@kvack.org, Tejun Heo , Christoph Lameter , Linus Torvalds , Josef Bacik , linux-kernel@vger.kernel.org, lkp@01.org Subject: Re: [per_cpu_ptr_to_phys] PANIC: early exception 0x0d IP 10:ffffffffa892f15f error 0 cr2 0xffff88001fbff000 Message-ID: <20180418233825.GA33106@big-sky.local> References: <20180418135300.inazvpxjxowogyge@wfg-t540p.sh.intel.com> <20180418135553.zvw3loh52gbr7e2b@wfg-t540p.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180418135553.zvw3loh52gbr7e2b@wfg-t540p.sh.intel.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Apr 18, 2018 at 09:55:53PM +0800, Fengguang Wu wrote: > > Hello, > > FYI here is a slightly different boot error in mainline kernel 4.17.0-rc1. > It also dates back to v4.16 . > > It occurs in 4 out of 4 boots. > > [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 128873 > [ 0.000000] Kernel command line: root=/dev/ram0 hung_task_panic=1 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel console=tty0 earlyprintk=ttyS0,115200 console=ttyS0,115200 vga=normal rw link=/kbuild-tests/run-queue/kvm/x86_64-randconfig-a0-04172313/linux-devel:devel-hourly-2018041714:60cc43fc888428bb2f18f08997432d426a243338/.vmlinuz-60cc43fc888428bb2f18f08997432d426a243338-20180418000325-19:yocto-lkp-nhm-dp2-4 branch=linux-devel/devel-hourly-2018041714 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-a0-04172313/gcc-7/60cc43fc888428bb2f18f08997432d426a243338/vmlinuz-4.17.0-rc1 drbd.minor_count=8 rcuperf.shutdown=0 > [ 0.000000] sysrq: sysrq always enabled. > [ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes) > [ 0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes) > PANIC: early exception 0x0d IP 10:ffffffffa892f15f error 0 cr2 0xffff88001fbff000 > [ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G T 4.17.0-rc1 #238 > [ 0.000000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 > [ 0.000000] RIP: 0010:per_cpu_ptr_to_phys+0x16a/0x298: > __section_mem_map_addr at include/linux/mmzone.h:1188 > (inlined by) per_cpu_ptr_to_phys at mm/percpu.c:1849 > [ 0.000000] RSP: 0000:ffffffffab407e50 EFLAGS: 00010046 ORIG_RAX: 0000000000000000 > [ 0.000000] RAX: dffffc0000000000 RBX: ffff88001f17c340 RCX: 000000000000000f > [ 0.000000] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffffacfbf580 > [ 0.000000] RBP: ffffffffab40d000 R08: fffffbfff57c4eca R09: 0000000000000000 > [ 0.000000] R10: ffff880015421000 R11: fffffbfff57c4ec9 R12: 0000000000000000 > [ 0.000000] R13: ffff88001fb03ff8 R14: ffff88001fc051c0 R15: 0000000000000000 > [ 0.000000] FS: 0000000000000000(0000) GS:ffffffffab4c5000(0000) knlGS:0000000000000000 > [ 0.000000] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 0.000000] CR2: ffff88001fbff000 CR3: 000000001a06c000 CR4: 00000000000006b0 > [ 0.000000] Call Trace: > [ 0.000000] setup_cpu_entry_areas+0x7b/0x27b: > setup_cpu_entry_area at arch/x86/mm/cpu_entry_area.c:104 > (inlined by) setup_cpu_entry_areas at arch/x86/mm/cpu_entry_area.c:177 > [ 0.000000] trap_init+0xb/0x13d: > trap_init at arch/x86/kernel/traps.c:949 > [ 0.000000] start_kernel+0x2a5/0x91d: > mm_init at init/main.c:519 > (inlined by) start_kernel at init/main.c:589 > [ 0.000000] ? thread_stack_cache_init+0x6/0x6 > [ 0.000000] ? memcpy_orig+0x16/0x110: > memcpy_orig at arch/x86/lib/memcpy_64.S:77 > [ 0.000000] ? x86_family+0x5/0x1d: > x86_family at arch/x86/lib/cpu.c:8 > [ 0.000000] ? load_ucode_bsp+0x42/0x13e: > load_ucode_bsp at arch/x86/kernel/cpu/microcode/core.c:183 > [ 0.000000] secondary_startup_64+0xa5/0xb0: > secondary_startup_64 at arch/x86/kernel/head_64.S:242 > [ 0.000000] Code: 78 06 00 49 8b 45 00 48 85 c0 74 a5 49 c1 ec 28 41 81 e4 e0 0f 00 00 49 01 c4 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 74 08 4c 89 e7 e8 63 78 06 00 49 8b 04 24 81 e5 ff > BUG: kernel hang in boot stage > I spent some time bisecting this one and it seemse to be an intermittent issue starting with this commit for me: c9e97a1997, mm: initialize pages on demand during boot. The prior commit, 3a2d7fa8a3, did not run into this issue after 10+ boots. I don't have that much time right now, nor the expertise with this code. Pavel could you take a look at this? Thanks, Dennis