Skip to content
Commit c17a290f authored by glider@google.com's avatar glider@google.com Committed by Catalin Marinas
Browse files

arm64: define __alloc_zeroed_user_highpage



When running the kernel with init_on_alloc=1, calling the default
implementation of __alloc_zeroed_user_highpage() from include/linux/highmem.h
leads to double-initialization of the allocated page (first by the page
allocator, then by clear_user_page().
Calling alloc_page_vma() with __GFP_ZERO, similarly to e.g. x86, seems
to be enough to ensure the user page is zeroed only once.

Signed-off-by: default avatarAlexander Potapenko <glider@google.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent d22b115c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment