Message ID | 20181205122851.5891-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-2.web.codeaurora.org (Postfix) with ESMTP id 0B2CB17D5 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 5 Dec 2018 12:30:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFB2A2CC8A for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 5 Dec 2018 12:30:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E16DA2CE95; Wed, 5 Dec 2018 12:30:07 +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 BCCC42CC8A for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 5 Dec 2018 12:30:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D94746B7451; Wed, 5 Dec 2018 07:30:05 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D6AFF6B7452; Wed, 5 Dec 2018 07:30:05 -0500 (EST) 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 C816C6B7453; Wed, 5 Dec 2018 07:30:05 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by kanga.kvack.org (Postfix) with ESMTP id 9E1A06B7451 for <linux-mm@kvack.org>; Wed, 5 Dec 2018 07:30:05 -0500 (EST) Received: by mail-qk1-f200.google.com with SMTP id v64so19974031qka.5 for <linux-mm@kvack.org>; Wed, 05 Dec 2018 04:30:05 -0800 (PST) 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=wrnTpcztdhkLOx5UlBaal7BO9LpZw/dFswadfw8ZOZI=; b=NwL1ivb2nMNqLA9bhcZtFa3aDWgtgNPIJ0YHPS8+CeL98SfAIb54oZdiAhgJKl/aYf ZPpr3XMY8h5+0PE96Bcr+B9qwPFGy6hZEt29bJxhViCqiX3n7bQyzAqQD++jZGxsHC66 rjITOLORJGeOr3l/nF4FWHDQkw1Mwc//+oXC6YUGNx2aXx9+zN9giqMuu5g/sxQ5MTlW cdx79fnpvJXMKV9ZCazbz59WZS+3EcYjGrnbJt2A3j1cdSvv/Sa8kAH2plWqkGZeqPtY 6bKyxNCfqHGXk4V8qJbVYyTgCdLFmaf0w/zKKICrXx+w9fZDJdWssjEkhzcgjJyLVT4l Np2Q== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: AA+aEWbz0Ci1SEDjjsluCuIoTEikslOVlzP5uguo8rkSElgqLpQDsaEm 7OLVGfi63wXyU6rJQSlD2LBUNPuGZ0vpZJhc2aVQ/lckVoP9Dl1ZDjRx7KAtbVbAm2/wcV1JV/G FaPDofgs1G+KGlykDs1kNuc+G6rMHriN0yEY1D2GsSjWnfiubGQ3BWzvuSobdRvfxNw== X-Received: by 2002:ac8:2281:: with SMTP id f1mr23050351qta.197.1544013005425; Wed, 05 Dec 2018 04:30:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/V15jNDgv6mNvyR0dLt2RjcoMw1AhRrCDSeikxW6me34Mi/4oSC0RH2TdKdg2C7zTDpkhIT X-Received: by 2002:ac8:2281:: with SMTP id f1mr23050296qta.197.1544013004507; Wed, 05 Dec 2018 04:30:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544013004; cv=none; d=google.com; s=arc-20160816; b=Nr6yeZfGklQoyFMFStqwuB2dOPnIAtP87b16IEzDbc08iKUVTrNR2ooOi3YuFSQ/sD 0xi/8RCOASbJE5MA60q/xcCn9uS7b476KNTG/u4MYHI3DO1psq+1EMEXkN7UJUY+2B3J 9lg0vUURUhTEL/CwHzTCoqIzq/cV07l8mA2xFgBk4oYlTLv5gwRd/s0L/6FT0iQ1j9un 2KAofZsdX1Cqo5027JxaceNIPIAsjyMAVVg0MY7US4Kzx1tSlV+i6Ev24tfukag1eVDr sjWOxpppqhej6735Mh5xHbfE0uBnv9SVp2CYj9dnElfpAvDJG/E2ofjpTTvZUgOAKHcC 9yWA== 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; bh=wrnTpcztdhkLOx5UlBaal7BO9LpZw/dFswadfw8ZOZI=; b=ke2v/bv8AHDCo37a3u4DH7rM/6rum08KCiUfF/3L3iIN0cvo5z7whEJsqDSH2Dn9aC 9wSN1qLq+G6CtJ9VLPFIkw/ZVYg+ry57z7vp+YOQixCoDdznO119sO4RFtIHtGsdr5I7 7dxnJPNb3ElAyXoQ3XqH2i2xkHs0pmNcYhmHDuaQYK4P1WgxFVt8mVhMJjnevJrzpa8h FlU6g9d529rKjrriu54zgWmb9gESPJMjzG0Zfoo9dfgL9JRI96GdQJCX54HghCksVPqm VMah5pPStNLUC+pE15MA4nAhcsGV1uf9txmfeD06df3MaVJiQehnSwSWWx0izLyL16xx kmHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 209.132.183.28 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 (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id 34si15337127qvq.116.2018.12.05.04.30.04 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 04:30:04 -0800 (PST) Received-SPF: pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 209.132.183.28 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-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 22EA3C05D407; Wed, 5 Dec 2018 12:30:03 +0000 (UTC) Received: from t460s.redhat.com (ovpn-117-65.ams2.redhat.com [10.36.117.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id 53002503E9; Wed, 5 Dec 2018 12:29:58 +0000 (UTC) From: David Hildenbrand <david@redhat.com> To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-m68k@lists.linux-m68k.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-mediatek@lists.infradead.org, David Hildenbrand <david@redhat.com>, Martin Schwidefsky <schwidefsky@de.ibm.com>, Heiko Carstens <heiko.carstens@de.ibm.com>, Matthew Wilcox <willy@infradead.org>, Mike Rapoport <rppt@linux.vnet.ibm.com>, Michal Hocko <mhocko@suse.com>, Vasily Gorbik <gor@linux.ibm.com>, Kees Cook <keescook@chromium.org>, Souptick Joarder <jrdr.linux@gmail.com>, Andrew Morton <akpm@linux-foundation.org>, Michal Hocko <mhocko@kernel.org> Subject: [PATCH RFC 2/7] s390/vdso: don't clear PG_reserved Date: Wed, 5 Dec 2018 13:28:46 +0100 Message-Id: <20181205122851.5891-3-david@redhat.com> In-Reply-To: <20181205122851.5891-1-david@redhat.com> References: <20181205122851.5891-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 05 Dec 2018 12:30:03 +0000 (UTC) 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 |
Series |
mm: PG_reserved cleanups and documentation
|
expand
|
diff --git a/arch/s390/kernel/vdso.c b/arch/s390/kernel/vdso.c index ebe748a9f472..9e24d23c26c0 100644 --- a/arch/s390/kernel/vdso.c +++ b/arch/s390/kernel/vdso.c @@ -292,7 +292,6 @@ static int __init vdso_init(void) BUG_ON(vdso32_pagelist == NULL); for (i = 0; i < vdso32_pages - 1; i++) { struct page *pg = virt_to_page(vdso32_kbase + i*PAGE_SIZE); - ClearPageReserved(pg); get_page(pg); vdso32_pagelist[i] = pg; } @@ -310,7 +309,6 @@ static int __init vdso_init(void) BUG_ON(vdso64_pagelist == NULL); for (i = 0; i < vdso64_pages - 1; i++) { struct page *pg = virt_to_page(vdso64_kbase + i*PAGE_SIZE); - ClearPageReserved(pg); get_page(pg); vdso64_pagelist[i] = pg; }
The VDSO is part of the kernel image and therefore the struct pages are marked as reserved during boot. As we install a special mapping, the actual struct pages will never be exposed to MM via the page tables. We can therefore leave the pages marked as reserved. Suggested-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Mike Rapoport <rppt@linux.vnet.ibm.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Vasily Gorbik <gor@linux.ibm.com> Cc: Kees Cook <keescook@chromium.org> Cc: Souptick Joarder <jrdr.linux@gmail.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Michal Hocko <mhocko@kernel.org> Signed-off-by: David Hildenbrand <david@redhat.com> --- arch/s390/kernel/vdso.c | 2 -- 1 file changed, 2 deletions(-)