Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9411924imu; Wed, 5 Dec 2018 04:31:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/Umx43d+MZrIpKMMb/HzbzmF6Lgz3reSkgCPNYJK+zo5tGjUSPvWDVdfUdTBefCGXQZfKMH X-Received: by 2002:a62:cf84:: with SMTP id b126mr23934952pfg.98.1544013079896; Wed, 05 Dec 2018 04:31:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544013079; cv=none; d=google.com; s=arc-20160816; b=h5sk75RJLPVu+dOC4ckQweAYaIJqVBEh1V7r9tZrNYcEyew3ENnck2z5gNlr7uV8kM Gjs2EPiDW1eij39ZMAIIvr6y0EoyncPlZfAr8wPVOp4m8Yur5jVH1++HrmOHdwtxDici 1XNieifbG4c7bZd4fN0PoXpIxlEdiO7ziN9tqe0Gcw1eSdAkpJuz+zETlny0M8BVOjHB WRcOMqvo+oXl4uK1/Ngv92tSrDdVQPg0Sbwejqx2MXgkajkM666n3uNvfKV6ezGymGWa EOHaetQ87x7Meq3BnzxZT/KJyVGlNVaVqMEpVlw+7cWi55KzFMHlBo03Uj2ircbefTwS 10kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=J+re+fa5AMo/gj1ynZ9W9HgzOUN4cg3LMHdRqs1pSlQ=; b=xWAGeUUr0fFeoQzVnPVpdlEETqKED0qvu7vyRt3L4K2qKqFZvB02nuqtvJ1R0dUGIO XhECVy8LgI2qj+kaS5fNT/WZD3GbBinPNQ98gqWoCvjQ0qkGZ3g9j9Ekgwh33bkyeUxz tP/e3sV3UsG05PRpJtwznUngE/igqyNIjqp2uEX728yCxPluo6rLumSeWrTxv+cSEsSJ bamI71JgK10jxOuuJNwEMduXqpWONm4TH8NC+icxvh0rQvA2OUXjKDCz2C3GaliOiesW yhMTnPE4ekNsaj04sCWAPVZYdfMZ82Hf0Pck/SAcF2VKkw7VQiGgyZQItVnYaTKUGz9b tvPw== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6si17883785pgl.561.2018.12.05.04.31.04; Wed, 05 Dec 2018 04:31:19 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727923AbeLEMaL (ORCPT + 99 others); Wed, 5 Dec 2018 07:30:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43218 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727915AbeLEMaJ (ORCPT ); Wed, 5 Dec 2018 07:30:09 -0500 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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); -- 2.17.2