Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7946196imu; Thu, 15 Nov 2018 04:13:16 -0800 (PST) X-Google-Smtp-Source: AJdET5dhgD8jF+CY42V4PaSeeh7qBqossTwusfrbklPdx6mn4NfC1U55ggx4q66QM5NOPcqlret1 X-Received: by 2002:a17:902:8f8f:: with SMTP id z15-v6mr6059764plo.257.1542283996288; Thu, 15 Nov 2018 04:13:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542283996; cv=none; d=google.com; s=arc-20160816; b=Z70hf0WHsU0UafPfh+55UcM0wqX96PLbRvAX5MMMBsh994M6pID86yoDzliR4+NTxh CzZu/uuhoDEPU3uHm2AX/QJYn4ytnawGKhi4zLMVq3v+JCcrAv2zAIRFHJvEN+2wnvRf Bjqd92zggv+l2hg5kDZB6wMPvYlTrAoD/LT6la/3WEad4aL4f9aCNx2SYSN/94Pso20j yVrPa9JCcfvuX/ozOJs+fWRdAwK8uzhi252E3u127LXkuTYEqTBmdH4DbMFd/PD4P9m7 kpqbVQTtUZkzkmBOztugN5xmXpAmU5yr3DVpF5gxWHPGOoL770umfFZxcO1KEzb/EP6S LHnw== 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=aXATCoUuSjLV22KVuXY1LcqdrMtPG+RUK1ONn5Dmqck=; b=JzOZat+51bbae8lC8rg3SsWNu2a3W3eb3T4oTxs7Gk/MHLOZeyhFVB/yeQtYvJuDkk XGugZd/0F7yX2GCspsfYJuhh/rx3GMTgv8Lxf0XKFByTf8AnP48a7AVJ2rLoQMsqCSU4 JhtmM9ga8IL8D2pid3W4JL32BnbOaEYZLi6IZFvCdJs63cwKi8qIbVxvVZg4BhgAk+sU wvfJCmw8jJsqqvQkcLf2JNhYPcFAUdcayIqWXGA8G/Jr+aNwbKLWVMnuhCHFrFNtuHsD SL/FcR6Hihf/3UW9oYD8X/qsWnXtOWT764abffhIj3mk8XmspG0h8WZBQtzKbk5iKZI1 V6IQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 12-v6si17655157plb.324.2018.11.15.04.13.01; Thu, 15 Nov 2018 04:13:16 -0800 (PST) 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388138AbeKOWSm (ORCPT + 99 others); Thu, 15 Nov 2018 17:18:42 -0500 Received: from mx2.suse.de ([195.135.220.15]:51172 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729115AbeKOWSm (ORCPT ); Thu, 15 Nov 2018 17:18:42 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 123F9B014; Thu, 15 Nov 2018 12:11:05 +0000 (UTC) Date: Thu, 15 Nov 2018 13:11:02 +0100 From: Michal Hocko To: Borislav Petkov Cc: David Hildenbrand , Dave Young , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devel@linuxdriverproject.org, linux-fsdevel@vger.kernel.org, linux-pm@vger.kernel.org, xen-devel@lists.xenproject.org, Andrew Morton , "Kirill A. Shutemov" , Baoquan He , Omar Sandoval , Arnd Bergmann , Matthew Wilcox , Lianbo Jiang , "Michael S. Tsirkin" Subject: Re: [PATCH RFC 3/6] kexec: export PG_offline to VMCOREINFO Message-ID: <20181115121102.GP23831@dhcp22.suse.cz> References: <20181114211704.6381-1-david@redhat.com> <20181114211704.6381-4-david@redhat.com> <20181115061923.GA3971@dhcp-128-65.nay.redhat.com> <20181115111023.GC26448@zn.tnic> <4aa5d39d-a923-87de-d646-70b9cbfe62f0@redhat.com> <20181115115213.GE26448@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181115115213.GE26448@zn.tnic> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 15-11-18 12:52:13, Borislav Petkov wrote: > On Thu, Nov 15, 2018 at 12:20:40PM +0100, David Hildenbrand wrote: > > Sorry to say, but that is the current practice without which > > makedumpfile would not be able to work at all. (exclude user pages, > > exclude page cache, exclude buddy pages). Let's not reinvent the wheel > > here. This is how dumping works forever. > > Sorry, but "we've always done this in the past" doesn't make it better. > > > I don't see how there should be "set of pages which do not have > > PG_offline". > > It doesn't have to be a set of pages. Think a (mmconfig perhaps) region > which the kdump kernel should completely skip because poking in it in > the kdump kernel, causes all kinds of havoc like machine checks. etc. > We've had and still have one issue like that. > > But let me clarify my note: I don't want to be discussing with you the > design of makedumpfile and how it should or should not work - that ship > has already sailed. Apparently there are valid reasons to do it this > way. > > I was *simply* stating that it feels wrong to export mm flags like that. > > But as I said already, that is mm guys' call and looking at how we're > already exporting a bunch of stuff in the vmcoreinfo - including other > mm flags - I guess one more flag doesn't matter anymore. I am not familiar with kexec to judge this particular patch but we cannot simply define any range for these pages (same as for hwpoison ones) because they can be almost anywhere in the available memory range. Then there can be countless of them. There is no other way to rule them out but to check the page state. I am not really sure what is the concern here exactly. Kdump is so closly tight to the specific kernel version that the api exported specifically for its purpose cannot be seriously considered an ABI. Kdump has to adopt all the time. -- Michal Hocko SUSE Labs