Message ID | 20180720123422.10127-3-david@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 296BA60547 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 20 Jul 2018 12:34:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22AA4294DD for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 20 Jul 2018 12:34:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16C8B296C0; Fri, 20 Jul 2018 12:34:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B205F296B2 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 20 Jul 2018 12:34:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E40916B026F; Fri, 20 Jul 2018 08:34:41 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id DED2F6B0270; Fri, 20 Jul 2018 08:34:41 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C4C9C6B0271; Fri, 20 Jul 2018 08:34:41 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk0-f200.google.com (mail-qk0-f200.google.com [209.85.220.200]) by kanga.kvack.org (Postfix) with ESMTP id 7DA596B026F for <linux-mm@kvack.org>; Fri, 20 Jul 2018 08:34:41 -0400 (EDT) Received: by mail-qk0-f200.google.com with SMTP id q3-v6so9288771qki.4 for <linux-mm@kvack.org>; Fri, 20 Jul 2018 05:34:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=gGwp3pbUmBC43ixc4EOi5pBGmJosl/AdOk91HADX6rs=; b=r0j3J5rN/eUiqp7ci7464GGFutBBZfay/PqI3YRNb66Q+/77wlUrnbKLR2Dxqyc4di BuMrVwDmqrXZqut0AASIGDVbaXUBoM70UpYDqy/W59wAcdqb1Gw/0UP4cWWLSLgv2j7P KDrCyF6UXzfaX4VuroUBEJ3fROLmsPVeiM/UtLIGIF3tvgHXXrck/A52amlIFYhvcVhd C9cfkq5Udu62pg/0grwf0DnB6MUeXyzrkA2RBE6MjjIcqmCUhvq5/eQmNAgwyOx4Lh8C 1K8TYduC6CD53Wk1MIrSIYtLfvlceGupUM21ZYFNDQ0oa7YLjHqi9ZpF7uzYFBlqqUJI mwwA== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: AOUpUlGfCTKjQpsdHkTiWwKZtmVauds+V3y6G3YWVQOvxKChM4mbfDsd An2mBZJW/0wtE6agobXu7owDi8l+ixTTq8Voql1upkqDxqW2j70V33sUAfR15ls8JbHjpWVJMdU fVafpMAGO0vTQWM/wBHk5wj25dIBiF+PG0glgr2P0dIm0MCVMUk/1oHfXzK69HB277w== X-Received: by 2002:ac8:1779:: with SMTP id u54-v6mr1659188qtk.285.1532090081320; Fri, 20 Jul 2018 05:34:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpclawLRsIFuyhk30HsBopCP4q96HmuQyGkRniSD73EFp+6Hl0xEDZ0JeegXBNXwF/BXJ/5r X-Received: by 2002:ac8:1779:: with SMTP id u54-v6mr1659159qtk.285.1532090080874; Fri, 20 Jul 2018 05:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532090080; cv=none; d=google.com; s=arc-20160816; b=wBEkzVeCJe+CJGAKFgAUYd1jKQ5tAH2FV++O7DqFVxNaK8EqxhfGf001Nny7GwdHkt /bkojVEP8vfNSkxqfOhyxbtRUO9vNJyecD4SCbSATidiHygmP58cyKsLiAL3sglkhZ9J hvHl3rBFzGut9kFkik0cLgDGC/P7RQfxHQkwhw6SuXve8aqVAyBl4wnIFKp0Z6r3Ujey FC5vSSPVhEn0/um2immoIo6oZPgZ2ZDgdaikIvFa1WOKEvbi5jVn6ENCSaRgpMIWY2/H 7fNCl6+vl/Qs+AtDUw/A7DBToQ2jN/D95S6DmdyF0PXrS5rOpJTj0VvzVbN5l/EBTBx6 pXNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=gGwp3pbUmBC43ixc4EOi5pBGmJosl/AdOk91HADX6rs=; b=MBK/ugvJV5SI0MKVH6BhxbbRVC9TN6VMeG1J8aDK4Fnu78Eac8sBWWZMzcfBMfA5Iq 0RVlvnLyFlYEbaJvCperzWrCLadhf3JtRxXIp6JxQnkOK93i+n65pIhnyD5KVQpt8Vv7 yhh5X0wzdED5lZVdxAGAm29odUwfqNPaNMp9k9WU/C3kltyqIIXKVp+PXhlpCWYLf6Vc kRhit17ztL1Jw0oN/YDVxBur3QNzwTXfV6UF/WdnHoQgW0UPDPGL1ONt5SmfBBs+lNcQ +0McroMM0hgceb7SYullt/gWDLggH7nYaU2ACmLINATjg/LqP3h1jgpfR6UWCO8FZWKD X4Jg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx3-rdu2.redhat.com. [66.187.233.73]) by mx.google.com with ESMTPS id l21-v6si1727536qtf.198.2018.07.20.05.34.40 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jul 2018 05:34:40 -0700 (PDT) Received-SPF: pass (google.com: domain of david@redhat.com designates 66.187.233.73 as permitted sender) client-ip=66.187.233.73; Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 91BA1401DEC0; Fri, 20 Jul 2018 12:34:40 +0000 (UTC) Received: from t460s.redhat.com (ovpn-116-17.ams2.redhat.com [10.36.116.17]) by smtp.corp.redhat.com (Postfix) with ESMTP id 94C58111AF1D; Fri, 20 Jul 2018 12:34:38 +0000 (UTC) From: David Hildenbrand <david@redhat.com> To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, David Hildenbrand <david@redhat.com>, Andrew Morton <akpm@linux-foundation.org>, Dave Young <dyoung@redhat.com>, Baoquan He <bhe@redhat.com>, Hari Bathini <hbathini@linux.vnet.ibm.com>, "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>, Michal Hocko <mhocko@kernel.org> Subject: [PATCH v1 2/2] kdump: include PG_reserved value in VMCOREINFO Date: Fri, 20 Jul 2018 14:34:22 +0200 Message-Id: <20180720123422.10127-3-david@redhat.com> In-Reply-To: <20180720123422.10127-1-david@redhat.com> References: <20180720123422.10127-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 20 Jul 2018 12:34:40 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 20 Jul 2018 12:34:40 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'david@redhat.com' RCPT:'' X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/kernel/crash_core.c b/kernel/crash_core.c index b66aced5e8c2..ab216accf96a 100644 --- a/kernel/crash_core.c +++ b/kernel/crash_core.c @@ -451,6 +451,7 @@ static int __init crash_save_vmcoreinfo_init(void) log_buf_vmcoreinfo_setup(); VMCOREINFO_LENGTH(free_area.free_list, MIGRATE_TYPES); VMCOREINFO_NUMBER(NR_FREE_PAGES); + VMCOREINFO_NUMBER(PG_reserved); VMCOREINFO_NUMBER(PG_lru); VMCOREINFO_NUMBER(PG_private); VMCOREINFO_NUMBER(PG_swapcache);
PG_reserved pages should never be touched by enybody except their owner. Let's allow dumping tools to skip these pages. Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Dave Young <dyoung@redhat.com> Cc: Baoquan He <bhe@redhat.com> Cc: Hari Bathini <hbathini@linux.vnet.ibm.com> Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Cc: Michal Hocko <mhocko@kernel.org> Signed-off-by: David Hildenbrand <david@redhat.com> --- kernel/crash_core.c | 1 + 1 file changed, 1 insertion(+)