From patchwork Mon Jan 14 12:58:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 10762331 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 9C8221390 for ; Mon, 14 Jan 2019 12:59:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E15128837 for ; Mon, 14 Jan 2019 12:59:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 81F572887B; Mon, 14 Jan 2019 12:59:46 +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 D3D9D28837 for ; Mon, 14 Jan 2019 12:59:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B5DD18E0007; Mon, 14 Jan 2019 07:59:42 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id AE6538E0002; Mon, 14 Jan 2019 07:59:42 -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 98F6F8E0007; Mon, 14 Jan 2019 07:59:42 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by kanga.kvack.org (Postfix) with ESMTP id 6BEB98E0002 for ; Mon, 14 Jan 2019 07:59:42 -0500 (EST) Received: by mail-qk1-f199.google.com with SMTP id z11so16610354qkf.19 for ; Mon, 14 Jan 2019 04:59:42 -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=a5CUHJSLmkC9bV5fGD27h7T4HVmGCIpcry+yGukPypM=; b=WYTkWr+83LxZUjWQsaZrwv69yIkCWTEnD+gC0h2MrSwjN1mg+4N2m1KhxwrvQui/NH vzL1LtEP3LpSOXNwBnbBJS3XQGSZ4ZUYSvta7cwb+Od61F3njOooSVuiTTD1wX3Czbz3 /2MMYVnGIqwOzY6x7tDxyYHgUqlj86fiPV1GbqTQRYzTVM6TLHHUvSqpsO9cFIgLyjgb nio8rEErZoo1iYZl8NSA4peK7AO9ndajL9qyQL3DaKovWZ+zsNDuBOFN6q2d5DDY6vEf iXkSlCGDtm2ReQugzKlmjVE56l0/h0Zkgfm+z5AQzprIPsiouNw0EY+OjyaCFPnL1TC3 HYHA== 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: AJcUukfDrcZg1vG2ipqicgukhStUlThI4xQPr8cqAT7ccX6KMr22pNxt UMYAh/Lmki1aXf2+T0t8TNYQj87zpLUG18YQRIpm2ZUh3pbqKiFSveFSx4VIm308aY5bUGHL533 tRhOVGRHsfn6dDqyP5RWauIdUK2o85F5/oPimXz5esZVRaeCnj0TTM0mrQPh228VFxg== X-Received: by 2002:a37:cf9b:: with SMTP id v27mr21796735qkl.160.1547470782214; Mon, 14 Jan 2019 04:59:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN5jvZxkOA9cNDBW3Cfvvcbrkia6Mc5bNxI24AmokvbOerCOuKjir2kX1d7jOCQ2Ion6Sfbh X-Received: by 2002:a37:cf9b:: with SMTP id v27mr21796704qkl.160.1547470781648; Mon, 14 Jan 2019 04:59:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547470781; cv=none; d=google.com; s=arc-20160816; b=z+AKxRWO5bsQ/bs9S32NbOLiKlQlnQvfNwmoF4JlTojrvpQ0nOPLBnrlOCGfkwB/nY fp5J38fwOF1HxvdFaCzqJrXFtrUe9XA2yZrtdbqxSkqkkcyLenzZxNtvh+kbPWka3Eml JjXSmozUe8uGYCLzxKDkkMygQPQdmkXNVDtC5P7t3nzjamhhkR4wC/xYCETRF8b4hfYN V1j2+DxxK6eIlTfZdQ5KtKnNw43Z3WyE9Xlm7+I73KXnPIbYa48jZxyU7jWJ1sb13pvF Fivkqz1b4DHQNupBB+JUp/qJzn18TkoXtgnJXoHbMooBHERIkS5slNapMFDEais+XMXh J4pQ== 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=a5CUHJSLmkC9bV5fGD27h7T4HVmGCIpcry+yGukPypM=; b=XBCw+DCDMecRn5oYx7eNuLW7YWdGWclTEAbcP5KcdBhrjhWTQouDn2lSaZ+7/39NH3 NOQatf0S3vMlBK9Ai2baU0xGJenTVpEqko1+dBYs8IB9+ucc9VMH8fkKvCIgZQewbRgs t78Zo0rR6Y7SVZfCQzB4mmEvpxxxmA5PfW8jP6XqPsB1RrZHkFRaogVcVmXzfgdKMYGi Lpv05p9XYFeIJqvwbp8MZ6tmwxQABpUZ6kRAvC3twzRBB0/UVzFCemyQmbpKT+t6jqoW VqXVJsoCBDPScP/JAMdrW+qgu6sRfmASCKXzzzFICXXGDkKfwCjJlWsE0ytrahW2UEow VZLQ== 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 37si2453829qvb.136.2019.01.14.04.59.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 04:59:41 -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-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C16B589AC9; Mon, 14 Jan 2019 12:59:40 +0000 (UTC) Received: from t460s.redhat.com (unknown [10.36.118.91]) by smtp.corp.redhat.com (Postfix) with ESMTP id ED8FC5D756; Mon, 14 Jan 2019 12:59:37 +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 v2 4/9] riscv/vdso: don't clear PG_reserved Date: Mon, 14 Jan 2019 13:58:58 +0100 Message-Id: <20190114125903.24845-5-david@redhat.com> In-Reply-To: <20190114125903.24845-1-david@redhat.com> References: <20190114125903.24845-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 14 Jan 2019 12:59:40 +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 Acked-by: Palmer Dabbelt Signed-off-by: David Hildenbrand Reviewed-by: Christoph Hellwig --- 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);