Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9411922imu; Wed, 5 Dec 2018 04:31:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/XiERhnZRTKiBk40Jj2jpG8madeDiMFDpbt625EbkEt5lAmn9Xi8OK5rVJyw4siQRhKatqH X-Received: by 2002:a62:c583:: with SMTP id j125mr24429204pfg.37.1544013079875; 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=a8iRIbXHqi1LuwDbDrgxzwh1PrKe/TytlABOwoBesAn5yNGnuHXHM8XKvU4W9k1YX7 PN0xsVEliVEeaoDrKhmWSWd0seLrRvC+FkdU/NksMf9B3FzB8ceoa1lMxBgIRcB58dfO ifLUkSdMpYYU0IO23IPR3GgdH7DKWWlPaMJ2uWISzuyTK1/tOEwoQe5ROFE+p+nBO2CI tci2O6Kgia+4K9Z+w4N6mxYZ+xY25XNtglvtwIhTxNZphnAnSi8rCoLGD4V+Li1b+fdk XyLzq4Qd4g/YEq2FEvB+bkRNZPF45BaTzPFOygKY60J7zjTWWcS6yhNHRx82AvH0+gRp 7AEw== 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=AHOZQxBkJ1h5ptlXCEr+F06XJiW9l91fFbVwclEPXpI=; b=zyEQujqokS9+MJHQ5OclkyVGtVLc4fTA82nExnMNpg0OAED2CiLXKgJhqi9F5mUwwR H4J1+0KNfA4w9Ru/s4Krt9b6Hb1Em7OSs3R8kuRtAHw8zDQggC8ha9+TzOwhoC+sNGy2 4viTMQdHTO7OC38U6ch/gxAMOAuJohdvFflOTikNs4sbTOKbogFGWjHiZl15zTflDWNB gh8+Mklb/8x0NdI0Y1FhBzUH14vsJLN36xtzCk2z6YngmmD4DizZyRCLDYKBgk5VjEPT Im74L1S08z5UjebdXdCDkM3YayxbgskZSb3KNxnT2ntJw63FL2lTW8eUXk61B/IzgmcL W0BA== 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 r14si18041684pgh.39.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 S1727906AbeLEMaI (ORCPT + 99 others); Wed, 5 Dec 2018 07:30:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40272 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727893AbeLEMaG (ORCPT ); Wed, 5 Dec 2018 07:30:06 -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 E3F19227D7; Wed, 5 Dec 2018 12:30:05 +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 82EBA842AD; Wed, 5 Dec 2018 12:30:02 +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 , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Christophe Leroy , Kees Cook , Andrew Morton , Michal Hocko , Matthew Wilcox Subject: [PATCH RFC 3/7] powerpc/vdso: don't clear PG_reserved Date: Wed, 5 Dec 2018 13:28:47 +0100 Message-Id: <20181205122851.5891-4-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.26]); Wed, 05 Dec 2018 12:30:06 +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: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Christophe Leroy Cc: Kees Cook Cc: Andrew Morton Cc: Michal Hocko Cc: Matthew Wilcox Signed-off-by: David Hildenbrand --- arch/powerpc/kernel/vdso.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c index 65b3bdb99f0b..d59dc2e9a695 100644 --- a/arch/powerpc/kernel/vdso.c +++ b/arch/powerpc/kernel/vdso.c @@ -795,7 +795,6 @@ static int __init vdso_init(void) BUG_ON(vdso32_pagelist == NULL); for (i = 0; i < vdso32_pages; i++) { struct page *pg = virt_to_page(vdso32_kbase + i*PAGE_SIZE); - ClearPageReserved(pg); get_page(pg); vdso32_pagelist[i] = pg; } @@ -809,7 +808,6 @@ static int __init vdso_init(void) BUG_ON(vdso64_pagelist == NULL); for (i = 0; i < vdso64_pages; i++) { struct page *pg = virt_to_page(vdso64_kbase + i*PAGE_SIZE); - ClearPageReserved(pg); get_page(pg); vdso64_pagelist[i] = pg; } -- 2.17.2