From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by kanga.kvack.org (Postfix) with ESMTP id AC19C8E0004 for ; Fri, 7 Dec 2018 13:45:15 -0500 (EST) Received: by mail-pl1-f197.google.com with SMTP id p3so3314563plk.9 for ; Fri, 07 Dec 2018 10:45:15 -0800 (PST) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 30sor6637070pgz.10.2018.12.07.10.45.14 for (Google Transport Security); Fri, 07 Dec 2018 10:45:14 -0800 (PST) Date: Fri, 07 Dec 2018 10:45:13 -0800 (PST) Subject: Re: [PATCH RFC 4/7] riscv/vdso: don't clear PG_reserved In-Reply-To: <20181205122851.5891-5-david@redhat.com> From: Palmer Dabbelt Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: owner-linux-mm@kvack.org List-ID: Cc: linux-mm@kvack.org, 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@redhat.com, aou@eecs.berkeley.edu, tklauser@distanz.ch, akpm@linux-foundation.org, mhocko@kernel.org, willy@infradead.org On Wed, 05 Dec 2018 04:28:48 PST (-0800), david@redhat.com wrote: > 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); I'm going to assume this will go in through another tree along with the rest of the set assuming everyone else is happy with it. Acked-by: Palmer Dabbelt Thanks!