From patchwork Wed Dec 5 12:28:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 10714013 Return-Path: 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 7AE2617D5 for ; Wed, 5 Dec 2018 12:30:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A7452CC62 for ; Wed, 5 Dec 2018 12:30:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E15F2CC55; Wed, 5 Dec 2018 12:30:13 +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 C1EE52CC55 for ; Wed, 5 Dec 2018 12:30:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4216C6B7453; Wed, 5 Dec 2018 07:30:11 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 3A8A66B7454; Wed, 5 Dec 2018 07:30:11 -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 295D76B7455; Wed, 5 Dec 2018 07:30:11 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by kanga.kvack.org (Postfix) with ESMTP id 023CC6B7453 for ; Wed, 5 Dec 2018 07:30:11 -0500 (EST) Received: by mail-qt1-f200.google.com with SMTP id n39so20202128qtn.18 for ; Wed, 05 Dec 2018 04:30:10 -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=J+re+fa5AMo/gj1ynZ9W9HgzOUN4cg3LMHdRqs1pSlQ=; b=DTBamE99eYOgGD001UpjILAwbjNigv1/UyszDkFe4XtDun2uxb9071jGpSfsEMoNjg j56K6qOubdnxmH139JZPTIM+LfNLo9wG4p8N2rE0AnXw0n0uPKSKLLPq/3BDLhC0Cu1B vfbVF0mg+cZDYx4iqFBoJ5MRih4fUFxNfI/u5Rkk3YRKQx2Ql9w3JKkBb4AFtiBXz9D4 KKSWg972Kl/1i1JJ6EfK1RIPku1HPvdeaafc1ySICXQerQ5XMGlaK8wFEIfKv78SXrn8 Opcfy2hilsngX3PgJm9HJ7y7VJnhQWDEjyOOoyxW8R4u7VQ0HL1+ySPZx9FgCmx+lvTL 7itw== 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+aEWYIs+dPciS+WCzvhmVtoky2j7mWYTYxDpqpjGLtfDNLoXm7AfTs X9VRbjZX7iG3fWX3wCTUYQFDe1ACTdXfRtWwDrc3qk/CZoxp6olaetB+UDWSAbVv6sJjcf/MgQB GV3VvjdcUyX+t7MIs6Yxft/UO0ANHAdm0bB++T60GZzec/gtjhuB36VikjD3amxjwQQ== X-Received: by 2002:a37:7183:: with SMTP id m125mr21423765qkc.195.1544013010765; Wed, 05 Dec 2018 04:30:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wv+I2z9V93LSzACBpbibOWm1cX1AyDyniU6oyR0pJNxPNyYaRxujNcWiBeftGpFVDjOChH X-Received: by 2002:a37:7183:: with SMTP id m125mr21423743qkc.195.1544013010239; Wed, 05 Dec 2018 04:30:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544013010; cv=none; d=google.com; s=arc-20160816; b=ekAXIlsJBeV+QWUfon28z5SFmjZBE3Y1G9AelFm7+x87duOXbMVM0oIcxpP1KiCqwW 05mLY1b+1t6CdC3/xaLiYDZy9pGUqzCx4Q1tMiEn0oYPe3xhvq9kMviUoxfBGkbWEGsQ WxjWPI4ZLVC5Y0bZNOVWkeUb5w4HMtO2SH86pZlp75YuMqqYDtOq8cLz/l56E5v0f7P3 QngBdD0WqAWeEqLRJwn36wd4EBfNYi9pjW27ssbDwdNBxZK20CGISeZq32fqfQvKTx+L ncPnEXxsNSyZIfBL3gAr29JIm5TUozQSWgIXHPfNVG1wm0VRL6IM/pdy8+GB1NWkZBap FwXg== 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=J+re+fa5AMo/gj1ynZ9W9HgzOUN4cg3LMHdRqs1pSlQ=; b=hjSOCa9TpqpfIaD9u9+seJ57mlJD84pYmxyunRWE0L92mEo+22TpMHVUCkMjjULkof 9WpgbWpEoWZilKHoomETNiT9PJ8ChhqsaSjJjAVO+fOH517ZLn+M5zFXAoC0RlS2Mlyl g6Y/mTQzV+6f3/ljOMJyRGOqqGah8+gIK0aOM/87IkxMoXCDvJJwSGB4LuQVDNL+UV28 NSQq9ONYN17u7RO3B4rMgoXCbWQWUoT4THl4USvONRPzasy6UFCqtny4YYWg5GiiJfrs W1oVSG5unCx9J4lwWfTK3QRdtS+VjStb3sLc9OJdA//1n9V4ZHzYZaYx78fQxmhmq4qW ha1w== 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 d7si4379030qtj.266.2018.12.05.04.30.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 04:30:10 -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 308583002315; Wed, 5 Dec 2018 12:30:09 +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 4AA5C60F89; Wed, 5 Dec 2018 12:30:06 +0000 (UTC) From: David Hildenbrand 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 , Palmer Dabbelt , Albert Ou , Tobias Klauser , Andrew Morton , Michal Hocko , Matthew Wilcox Subject: [PATCH RFC 4/7] riscv/vdso: don't clear PG_reserved Date: Wed, 5 Dec 2018 13:28:48 +0100 Message-Id: <20181205122851.5891-5-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.43]); Wed, 05 Dec 2018 12:30:09 +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: X-Virus-Scanned: ClamAV using ClamSMTP 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. Cc: Palmer Dabbelt Cc: Albert Ou Cc: Tobias Klauser Cc: Andrew Morton Cc: Michal Hocko Cc: Matthew Wilcox Signed-off-by: David Hildenbrand Acked-by: Palmer Dabbelt --- arch/riscv/kernel/vdso.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/riscv/kernel/vdso.c b/arch/riscv/kernel/vdso.c index 582cb153eb24..0cd044122234 100644 --- a/arch/riscv/kernel/vdso.c +++ b/arch/riscv/kernel/vdso.c @@ -54,7 +54,6 @@ static int __init vdso_init(void) struct page *pg; pg = virt_to_page(vdso_start + (i << PAGE_SHIFT)); - ClearPageReserved(pg); vdso_pagelist[i] = pg; } vdso_pagelist[i] = virt_to_page(vdso_data);