Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp909262imu; Fri, 7 Dec 2018 10:47:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/UEm0pdiaKZUvPpNLUyOwEPcY0SOQnIVi3tDRrl+6IPmq47G+55hdYRw58I+hgQb5H2pT8H X-Received: by 2002:a62:e30d:: with SMTP id g13mr3293519pfh.151.1544208446847; Fri, 07 Dec 2018 10:47:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544208446; cv=none; d=google.com; s=arc-20160816; b=WKeLkrlX6LRksodFlZOR7q9GTylWcMQyT62rexGdGhfMmy8OwCL/b0IXNGveq7RgDL PQ5m9Zr2gZC7/GteWWdkMeNq1zeYlWXi3SCeHMreaRCaZhsjlyMnEPWHRZbpAXx+KWBp g2bRluv5nqLVjw66qFmPliqlHiHNZ2uE3vK4ZGMGCWX0bqswB00O3RqevkVr47YsEnfg PfcjHRETmuzFKiWBrE+nxijyOu5k0TUNGTPAzM3a2OrZSd7cXb+lx1KMrFt3jr4AUlJL lX0FW1KoXs5tB5DWYur3+aWSvtjGB/VixMxzvaRmfGxDNhEGwgsRU5iMWYBFa/fAO/k8 n2Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=klopY/IsuJEDowTc4qrt4dyez0fGpBDt1xs5/j2mVbY=; b=NWXz26VuL+U9KmcXCr+UoOXHc576La+or6wQpQfMBcMxlQEFGOmpPQRXRZG850L7/w S92HZOzqLjhwqPUFo+mi8TUwJNxG8Y16GZIhU4oknrOHPlpI3JiQNhg0i9ZQZ2MbeY9X zzHZtekKWcwQaN8siAnTnACrINLjY0Ka1OP7GvyoupT3/ZDzg95CStud2DCkXvpYcUYt 2muDlz4Dyp6LEB9/NZxyJGOCBPREJ+db9M3CZPSKWabG0/xA7nKvus8OOCCitKQm0A9O yRer/ZNYvqcZt2UE1si5V+j22qds8kamT3spagsSkAx9N/jwcxw0TI0YXWMzdP6n7j75 HxGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=ZZVrDpHf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si3580039pls.16.2018.12.07.10.47.11; Fri, 07 Dec 2018 10:47:26 -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; dkim=pass header.i=@sifive.com header.s=google header.b=ZZVrDpHf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726011AbeLGSpR (ORCPT + 99 others); Fri, 7 Dec 2018 13:45:17 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:35945 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726260AbeLGSpO (ORCPT ); Fri, 7 Dec 2018 13:45:14 -0500 Received: by mail-pf1-f196.google.com with SMTP id b85so2351425pfc.3 for ; Fri, 07 Dec 2018 10:45:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=klopY/IsuJEDowTc4qrt4dyez0fGpBDt1xs5/j2mVbY=; b=ZZVrDpHfZs52iuETgv3m44IeOtThlIBsuU8+93Vxx7aBcyIR3CfRT2lS31h8wJewmV Tki/oz/jT6A7N4MGx481OP3Ps6TfITealhGoP+JTLC5p3O6m82JGXuTjm4MWJPiDDJCd 9EM9eqL6VYHHdGU1Bbtl+2lYmINTz3fkchPJj6pBGjTeh2ZntnCGYTTqejWBvjffftmA toRKjgdsx+CHfywJWPgM5ghK05Brr0Nyal9TZfyhadDDwN7cBZzDrkwfdK203vs0gGwr AjaKi368ZuHFSEclC49QQ0orgjY0eyXcBcs8mUkDr49hFKBs8OxYP3kz6S111fXbWDUC Z4zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=klopY/IsuJEDowTc4qrt4dyez0fGpBDt1xs5/j2mVbY=; b=ntkXjX78qIDxl11ufUxsB1G1KEv5CauOKa+HUnbmJMUqmiZX9dahw3bSbWRnKbtLFH M9LCyAOFCIDVCxddZ/FkSH/G7IvydH5e9yISBwf3YjQPHUbNuAXpFfx2D8A0mFbmMKa0 01WpHwnNoG0+W3AVDg+5A0xmWGBAUzZqmofkqYU+nv882BJAkhsg4LYP6Zt6d+aXNxtK VLef4z12hdFV25gSyBE82U9v7rugeILri+ra3MCkBEvJesD8tLKB1nPHG5V1Q8YGpSUN Qw+JyrWGUMcU9H69GfnoiHe1aaBMciXe31cIBYxlWl7Jursyjq8nZ5owegUyUBzH+ls3 /kwQ== X-Gm-Message-State: AA+aEWYyX/yEe9wxaAJeihBToM7GJ6ghmJ8HWoHirxUs4ph6BL7v65jB vsqFciIRVx9MHGh9WegRWQw3BA== X-Received: by 2002:a63:f515:: with SMTP id w21mr2938694pgh.220.1544208313756; Fri, 07 Dec 2018 10:45:13 -0800 (PST) Received: from localhost ([216.3.10.7]) by smtp.gmail.com with ESMTPSA id y89sm6257168pfa.136.2018.12.07.10.45.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Dec 2018 10:45:13 -0800 (PST) Date: Fri, 07 Dec 2018 10:45:13 -0800 (PST) X-Google-Original-Date: Fri, 07 Dec 2018 10:44:39 PST (-0800) Subject: Re: [PATCH RFC 4/7] riscv/vdso: don't clear PG_reserved In-Reply-To: <20181205122851.5891-5-david@redhat.com> 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 From: Palmer Dabbelt To: david@redhat.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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!