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 <pal...@sifive.com>
Cc: Albert Ou <a...@eecs.berkeley.edu>
Cc: Tobias Klauser <tklau...@distanz.ch>
Cc: Andrew Morton <a...@linux-foundation.org>
Cc: Michal Hocko <mho...@kernel.org>
Cc: Matthew Wilcox <wi...@infradead.org>
Acked-by: Palmer Dabbelt <pal...@sifive.com>
Signed-off-by: David Hildenbrand <da...@redhat.com>
---
 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);
-- 
2.17.2

Reply via email to