Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9411859imu; Wed, 5 Dec 2018 04:31:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/UZd8pUZOY5T9d4mkKZ54+dBNTNuOn77nD2XEELyvpBjQW/WwoM21spvbJSCu0jZ4WeKDrJ X-Received: by 2002:a17:902:8b88:: with SMTP id ay8mr24451899plb.55.1544013076498; Wed, 05 Dec 2018 04:31:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544013076; cv=none; d=google.com; s=arc-20160816; b=L89Dh6ezAD1n66Gl/oOtK88VwR6uRFyKaMCRmkuTVZLGfPDCfAzMJ0Hohco64EEivt qo2ejZ7Fz1wuDRfLhBwsfbWsmri0Szpbd2ysOnuCaUzIEmfbd01U5SwC2psDhRjtXZtM 6RMfgGKdw/1ebsWwo/yK+Ywsljhu0z5q/eH49V+KpENp35ENnAqXIvRxP57CR7mHX5sE /MJ1n3nJ7Ly500qnQicegDvbrMCoKns3c6CFEV5vzJzURnruqi7V6Az1c1c7L7Y3jKnh UA7s5ueu41N/KnYow3E9l/vHR+IgS81bC8qRkM4flmnBWAathcK4YO5TLS1hRu+57GXV WpWw== 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=wrnTpcztdhkLOx5UlBaal7BO9LpZw/dFswadfw8ZOZI=; b=qgrfIzLfZnT9m0ML3LLbDTqenuksj4xM1CZQcauAa2Edg0DF/1iXX95xF5qapVrPdQ Q/gQo3zXWh3YHikmmtKIFAcFHjwm5+Hx5CRKYlfUdPAzJw4+oeyfA1eeQZnbFk/bLzzg I2CTMB3pr4tCLNAxCOzBRHarriu0SNRBzCvGE9Lfc5Z68LIkKlOpDkhrnd7BBrG7l8vj qxqpr34vU3JQQAICAC4dANZp59Mo4DckV+hBr5sWBgBgj6dHdH7rkN30DI1BP8hVAjyQ kq7h5RpJ5aNuoWbGcOCG/9ZaTUKU53ROQW73YCB5qOISW4g++jw+ct2C7ZT0moFPDo62 rZVg== 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 u34si17286756pgk.24.2018.12.05.04.30.59; Wed, 05 Dec 2018 04:31:16 -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 S1727887AbeLEMaE (ORCPT + 99 others); Wed, 5 Dec 2018 07:30:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49440 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727242AbeLEMaE (ORCPT ); Wed, 5 Dec 2018 07:30:04 -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 22EA3C05D407; Wed, 5 Dec 2018 12:30:03 +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 53002503E9; Wed, 5 Dec 2018 12:29:58 +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 , Martin Schwidefsky , Heiko Carstens , Matthew Wilcox , Mike Rapoport , Michal Hocko , Vasily Gorbik , Kees Cook , Souptick Joarder , Andrew Morton , Michal Hocko Subject: [PATCH RFC 2/7] s390/vdso: don't clear PG_reserved Date: Wed, 5 Dec 2018 13:28:46 +0100 Message-Id: <20181205122851.5891-3-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.32]); Wed, 05 Dec 2018 12:30:03 +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. Suggested-by: Martin Schwidefsky Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: Matthew Wilcox Cc: Mike Rapoport Cc: Michal Hocko Cc: Vasily Gorbik Cc: Kees Cook Cc: Souptick Joarder Cc: Andrew Morton Cc: Michal Hocko Signed-off-by: David Hildenbrand --- arch/s390/kernel/vdso.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/s390/kernel/vdso.c b/arch/s390/kernel/vdso.c index ebe748a9f472..9e24d23c26c0 100644 --- a/arch/s390/kernel/vdso.c +++ b/arch/s390/kernel/vdso.c @@ -292,7 +292,6 @@ static int __init vdso_init(void) BUG_ON(vdso32_pagelist == NULL); for (i = 0; i < vdso32_pages - 1; i++) { struct page *pg = virt_to_page(vdso32_kbase + i*PAGE_SIZE); - ClearPageReserved(pg); get_page(pg); vdso32_pagelist[i] = pg; } @@ -310,7 +309,6 @@ static int __init vdso_init(void) BUG_ON(vdso64_pagelist == NULL); for (i = 0; i < vdso64_pages - 1; i++) { struct page *pg = virt_to_page(vdso64_kbase + i*PAGE_SIZE); - ClearPageReserved(pg); get_page(pg); vdso64_pagelist[i] = pg; } -- 2.17.2