Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp5680787imd; Tue, 30 Oct 2018 23:47:36 -0700 (PDT) X-Google-Smtp-Source: AJdET5f8OaScTwn/NWvQCXzDRVJEFxyAuvEIiAT5zUa1889vsb7Ngzmzy+x3y6i7mr6gEGwQ45ND X-Received: by 2002:a63:4658:: with SMTP id v24-v6mr1931322pgk.425.1540968456046; Tue, 30 Oct 2018 23:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540968456; cv=none; d=google.com; s=arc-20160816; b=KxXVt/qPqWH1+sPBRdJB4Kf4zvFuE+u9UJ6J91CKmuoy5Gxp6l5aToAnZ/7P1RiscZ LY1dyYef6f1Q21PSTRgjzPeMH3b8y7VzakFXUwoEMs1wxYLV420QytHVgh1JL06+QTbS u58wY4iknFFx7Ir1F1mUQrW1J2YoJwHWrIm7l612DXa2umXnacl2jvYWrZjjuRSWysMA rGIzOKJza2P4zltBVhI1SPGXCP1HwH9enrzCMUKHxnaeRE3zv8UAksMcSi3ywBd95Dn9 koheBBPngq0i2BtPicIzjW6C9ODFz70iYmDlTk+YaxSQkRFcFF5QDiOylOOA/MSlnuGV 1jDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8ZZOFFUs936+hSIkanoo8JJtk0Q1HK1cpfw52Y66WUo=; b=ffltTL4uRm7HH6jWqoODZeYXsegDkOVmbfqu4Dp24PKSriQATiIz+6xRUp1F7EKuRs vQ/C70ysRSV81y0B0WHdoiHUeZ6zkXgTdxovphN89LoIAU4KZUbgupOBc5+MoApO8Kue J7jY/S371QDCEbnH2m+TEPc5hWCuonn7wQpMQD/98LveV/3NHV71owbUZ8Hn0gi000ha dRKbv2T3DIjQ/S7eEXk6OUkYpL4gJq5WCuz5b8e+A6fcExBuW9dqPswhiLdesSReBV5z OkPt13AUHRSKFYm6XxkQjPVf/9RlP9cnzWUJFooeo7NYCrEDg4En6kE0FegeyL1Np0J3 VLXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sxfmzaPw; 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 61-v6si26711627plr.72.2018.10.30.23.47.20; Tue, 30 Oct 2018 23:47:36 -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=sxfmzaPw; 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 S1728887AbeJaPNp (ORCPT + 99 others); Wed, 31 Oct 2018 11:13:45 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:35747 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbeJaPNp (ORCPT ); Wed, 31 Oct 2018 11:13:45 -0400 Received: by mail-ed1-f67.google.com with SMTP id d6-v6so4518695edi.2 for ; Tue, 30 Oct 2018 23:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8ZZOFFUs936+hSIkanoo8JJtk0Q1HK1cpfw52Y66WUo=; b=sxfmzaPwL8r1ouFBdOCqCGmySivp5jY/tzYHO/WvSyEN5eN/gEPDWYkB9iszYVqTtz 0MX1T2MfmLTmYAOLQydqpEwrHQLiI4oAsdBXCVKPj+2FRkATN1mCPq9XXwHIIRl5ZJBC A5ti9YAi+cDd7oqZm2chufqRsHvr9BEo33q2+Xh1cQaaUZ/Y5O56PGlViJrzfOiLPerB cuTkuejqxNdgI7ZBnLebAZq5ApuXtfjlnsZxqJbsaDXKjvzPsRAbhxsNuFvCEKFsyxlC ngR8FpZtksTZOvJ/gAhvrW5ZMqG8uAqswB1LQuDcmc3eeT1jzk7XoCyVF2sCMWPmbUHU +Nfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8ZZOFFUs936+hSIkanoo8JJtk0Q1HK1cpfw52Y66WUo=; b=SSHJTjw6ygKp49k2bzm7WkQ0JjedYnrKlon0P2znEJtt1cbwF5dSAqc3qwnSRgbN09 hPq3vngnTkZL4BG4csH2kXGXX+nth6K0vj04hL2ljmhFf/YwuQM0e4kCSLvN6wUMBW+C nhXLX1EOZSGnb2oVzg4ClvhV0ztEGzsqQPT5HzUkTnOgsgHVCiYt6UpzDL3E8hyZkD5S 2NgwF/YYjMry02Pec29XqAn8co102yiohQdsU20kpZMqOnlpI4ctKnz4QvQwaIXRGRnZ wLKe2ehpnHcGdwvw3HZB71crwGUS9eKrVlhBnYwGhYuSiByts4nPTfMatPK145oVDVx4 eL9w== X-Gm-Message-State: AGRZ1gJFpieiYR7ZkiDBLTSDm9OimrpNdj4dJi1K7Cg1Hl2S8KHH9zrZ 9fmb5cOIAMP3MxPw8Mqc0pZbiNurqtCI9X1q3A== X-Received: by 2002:aa7:c743:: with SMTP id c3-v6mr932953eds.253.1540966621818; Tue, 30 Oct 2018 23:17:01 -0700 (PDT) MIME-Version: 1.0 References: <20180427090045.532014306@redhat.com> <20180427091410.GA25338@dhcp-128-65.nay.redhat.com> <20180507024833.GA3895@dhcp-128-65.nay.redhat.com> In-Reply-To: <20180507024833.GA3895@dhcp-128-65.nay.redhat.com> From: Pingfan Liu Date: Wed, 31 Oct 2018 14:16:50 +0800 Message-ID: Subject: Re: [PATCH 1/2] kdump/x86: crashkernel=X try to reserve below 896M first then below 4G and MAXMEM To: Dave Young Cc: Andrew Morton , Baoquan He , yinghai@kernel.org, vgoyal@redhat.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I encounter a case where crashkernel=384M, and kaslr is enabled. During the test, sometimes, the system may fail to reserve region for crash kernel, although there is much free space above 896MB. It is caused by the truncation of the candidate region by kaslr kernel. It raises confusion to the end user that sometimes crashkernel=X works while sometimes fails. So can we have this patch to fix the issue? Thanks, Pingfan On Mon, May 7, 2018 at 10:49 AM Dave Young wrote: > > On 04/27/18 at 05:14pm, Dave Young wrote: > > Hi, > > > > This is a resend of below patches: > > http://lists.infradead.org/pipermail/kexec/2017-October/019569.html > > > > I dropped the original patch 1 since Baoquan is not happy with it. > > For patch 2 (the 1st patch in this series), there is some improvement > > comment from Baoquan to create some generic memblock iteration function. > > But nobody has time to work on it for the time being. According to > > offline discussion with him. That can be done in the future if someone > > is interested. We can go with the current kdump only fixes. > > > > Other than above, the patches are just same. > > Hi Andrew, do you have concerns about the patches? It has been used for > long time in Red Hat kernel, since people do not object them, could you > pick them if no other concerns? > > Thanks > Dave