Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1142391ybi; Sat, 8 Jun 2019 03:29:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEUvjdwue38z9mcd/7MaarZF1i0dyOr9pi+uBJZ7qC0RJb0XfPNlQ1lrAWpp8T/oUUTEie X-Received: by 2002:a17:90a:a790:: with SMTP id f16mr10716043pjq.27.1559989783634; Sat, 08 Jun 2019 03:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559989783; cv=none; d=google.com; s=arc-20160816; b=PNS4Ii7JNJaqPNu/HC6QZx4Wqo/MoCkYGviUc2ADdZguumzycW/ekFls4I+hzRdox5 F3Uk0KHQkZ1M8fpu/c+GiVyf8Xb/jhvu9O5uWG9IoHgwZeVFut1lj+5ew4BP/axQ2YYY WUvcIx905S4nMQPyBSmpJ7vYu1psptutQAiT7wo2+fsL3nvUNKXRqUSGejMbhjUD6JlZ L2V2M18IuCnDEYIp/NTH36aLXwLfYwmRb6ETK1llo3iSE701EhhcLlx/ekujBW5TQ+l6 NqUlCMAv/8auyu2a5J0ntYSDifkbJCW7UkOOCUc6Zx+fvxcj2s3pEVFyz51pI1UwED6V k+LQ== 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; bh=RFnfNT4GT/D+ssXNdM7X71ANodhtp6OMURxtQUkP+Ho=; b=FNd+HvkdV0O5at9JHWYUq4pSKDqVMyLNBoM0tAk9/NczPAN4ZAuRuW3Y26h5m1lE7H 1QZAzY6KcHQiYEHk8qMPFjSlUdtPh2o9cj+3w52TohUMrSDnLOIhLUZAVXMaJFXT/EJl tuoAZ58zsQLnhIRd10ng4+Xk+uLuEC34k5LMVvXd0NcWzvYmYpzY78AaLzzGXQYc5DfG fttJqNjuWAbtDQklPad/1cWsKUcIVh9RFwJgaDcmChw5mXZS7JcMWpXOkMjMqFKuciGn xKP9F+OZ3MiXsVVzBV1zSL43g2IbfR2MA0G0oGAtQI7rqi1sPkkdpBjmjzFkfZXimgIw cuCQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si4538803pfa.36.2019.06.08.03.29.27; Sat, 08 Jun 2019 03:29: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726828AbfFHK1G (ORCPT + 99 others); Sat, 8 Jun 2019 06:27:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44706 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726692AbfFHK1G (ORCPT ); Sat, 8 Jun 2019 06:27:06 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9D6C8368E6; Sat, 8 Jun 2019 10:27:05 +0000 (UTC) Received: from localhost (ovpn-12-31.pek2.redhat.com [10.72.12.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 39E4360589; Sat, 8 Jun 2019 10:27:01 +0000 (UTC) Date: Sat, 8 Jun 2019 18:26:59 +0800 From: Baoquan He To: Borislav Petkov Cc: lijiang , linux-kernel@vger.kernel.org, kexec@lists.infradead.org, tglx@linutronix.de, mingo@redhat.com, akpm@linux-foundation.org, dave.hansen@linux.intel.com, luto@kernel.org, peterz@infradead.org, x86@kernel.org, hpa@zytor.com, dyoung@redhat.com, Thomas.Lendacky@amd.com Subject: Re: [PATCH 0/3 v11] add reserved e820 ranges to the kdump kernel e820 table Message-ID: <20190608102659.GA9130@MiWiFi-R3L-srv> References: <20190423013007.17838-1-lijiang@redhat.com> <12847a03-3226-0b29-97b5-04d404410147@redhat.com> <20190607174211.GN20269@zn.tnic> <20190608035451.GB26148@MiWiFi-R3L-srv> <20190608091030.GB32464@zn.tnic> <20190608100139.GC26148@MiWiFi-R3L-srv> <20190608100623.GA9138@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608100623.GA9138@zn.tnic> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Sat, 08 Jun 2019 10:27:05 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/08/19 at 12:06pm, Borislav Petkov wrote: > On Sat, Jun 08, 2019 at 06:01:39PM +0800, Baoquan He wrote: > > OK, it may be different with the case we met, if panic happened when > > load a kdump kernel. > > > > We can load with 'kexec -l' or 'kexec -p', but can't boot after triggering > > crash or execute 'kexec -e' to do kexec jumping. > > No, I load a kdump kernel properly with this command: > > kexec -s -p /boot/vmlinuz-5.2.0-rc3+ --initrd=/boot/initrd.img-5.2.0-rc3+ --command-line="maxcpus=1 root=/dev/sda5 ro debug ignore_loglevel > log_buf_len=16M no_console_suspend net.ifnames=0 systemd.log_target=null mem_encrypt=on kvm_amd.sev=1 nr_cpus=1 irqpoll reset_devices vga=normal > LANG=en_US.UTF-8 earlyprintk=serial cgroup_disable=memory mce=off numa=off udev.children-max=2 panic=10 rootflags=nofail acpi_no_memhotplug > transparent_hugepage=never disable_cpu_apicid=0" > > And that succeeds judging from > > $ grep . /sys/kernel/kexec_* > > Then I trigger a panic with > > echo c > /proc/sysrq-trigger > > and this is where it hangs and doesn't load the kdump kernel. OK, I see. Then it should be the issue we have met and talked about with Tom. https://lkml.kernel.org/r/20190604134952.GC26891@MiWiFi-R3L-srv You can apply Tom's patch as below. I tested it, it can make kexec kernel succeed to boot, but failed for kdump kernel booting. The kdump kernel can boot till the end of kernel initialization, then hang with a call trace. I have pasted the log in the above thread. Haven't got the reason. http://lkml.kernel.org/r/508c2853-dc4f-70a6-6fa8-97c950dc31c6@amd.com