Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp894324ybi; Fri, 7 Jun 2019 20:57:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8j0Vix698E7QAzx51ryDOaSKNl6tLue7RdoY5xY+stG5PL2W9AB3xMAf/9+1j5jDbEHoJ X-Received: by 2002:aa7:940c:: with SMTP id x12mr33313963pfo.80.1559966255574; Fri, 07 Jun 2019 20:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559966255; cv=none; d=google.com; s=arc-20160816; b=U3czqUPF6UF2WyeBCTwHYsnXL/zjpMjeK4B9bYEc29aoXYE6Axu4GCLVS+sjroMD2U wUGe6iaXb7AAYYn2aZZkPKYPI+eAl/a9/o/40dOqjp/UEWh18h7frp2xx/lbibK1+rDZ U9xNbFkNN0k2V0b8Hb7uO83+8wsQRpOdTJZBqjgcJ1IjqXzE3eKrDCbWPLxoyLy0YEAd jnCrNalIsEPsrTQV28Ym//9Rsuv6BSzjey6GlG5xCW1LZu6wK4ycj6AI7fruYqsQrzwj 3DX8QDoYJ5bE/eHOm03f9usDuV22qutwEV6gbiT6uFt67UlMwTeRxcvMlxJ490IHBNtk bMCA== 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=MSRDL4jaR6sd3jvvHKXyKfRa5jXtuCyU3BmtFl73eS4=; b=LERKuixc8hl5cKYfuKniYy4kcL8E+djAGivQjlp1kvVIRfOxYkHsWlqdmIdFSF7fsX eupbSW53+FWkKq0wfhnorlTj+cAY/MWrPj1sgCkeo5Azx5C9sHGB2ZAgJl6fCyV9gr9q Bc4tA/KR18y5Z6Tz3JbGC42ysK2VssODi2SLWMa123M9F8VD6h7wGwRKGfaCc2B/jrhv 52bxgtydgyuEOPVZgpSWKGcq4SxVSTYKAZgWOlR/t+dGuu9dCplPywTpHv0uC1qs41Kf gxrnaWpgeCIp4MHk1Kkm/gp94jVziojRb6bLrqNrg0ZQEAsw9aMB7UpQFPw/XlR4T3sb ze7g== 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 r11si3572128pgp.232.2019.06.07.20.57.19; Fri, 07 Jun 2019 20:57: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; 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 S1730634AbfFHDy6 (ORCPT + 99 others); Fri, 7 Jun 2019 23:54:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45998 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730241AbfFHDy5 (ORCPT ); Fri, 7 Jun 2019 23:54:57 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 735952E95AF; Sat, 8 Jun 2019 03:54:57 +0000 (UTC) Received: from localhost (ovpn-12-31.pek2.redhat.com [10.72.12.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5AE8510013D9; Sat, 8 Jun 2019 03:54:54 +0000 (UTC) Date: Sat, 8 Jun 2019 11:54:51 +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: <20190608035451.GB26148@MiWiFi-R3L-srv> References: <20190423013007.17838-1-lijiang@redhat.com> <12847a03-3226-0b29-97b5-04d404410147@redhat.com> <20190607174211.GN20269@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190607174211.GN20269@zn.tnic> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Sat, 08 Jun 2019 03:54:57 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/07/19 at 07:42pm, Borislav Petkov wrote: > On Tue, May 28, 2019 at 03:30:21PM +0800, lijiang wrote: > > Hi, Boris and Thomas > > > > Could you give me any suggestions about this patch series? Other reviewers? > > So I'm testing this on a box with SME enabled but after loading the > crash kernel, it freezes instead of rebooting. My cmdline is: > > 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 the reserved range is: > > [ 0.000000] Reserving 256MB of memory at 3392MB for crashkernel (System RAM: 16271MB) Is it a UEFI box? If it's uefi machine, it should relate to below issue. Because kexec always fails to randomly choose a new position for kernel. The current kexec code fills boot_params->efi_info->efi_loader_signature, but doesn't contruct efi_memmap table. The kexec/kdump kernel will always fail to find available slot for KASLR in process_efi_entries. > > I'm wondering if it is related to > > https://lkml.kernel.org/r/20190604134952.GC26891@MiWiFi-R3L-srv > > Thx. > > -- > Regards/Gruss, > Boris. > > Good mailing practices for 400: avoid top-posting and trim the reply.