summaryrefslogtreecommitdiff
path: root/arch/arm64/kernel/vdso.c
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2021-03-18 17:07:34 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2021-03-24 16:48:40 +0000
commit7cd6ca1d7902260b54528054d729f2a3b27e5a00 (patch)
tree484ca78dd41a79be889969bd5b65a7954c31bbe3 /arch/arm64/kernel/vdso.c
parent1e28eed17697bcf343c6743f0028cc3b5dd88bf0 (diff)
arm64: vdso: Use GFP_KERNEL for allocating compat vdso and signal pages
There's no need to allocate the compat vDSO and signal pages using GFP_ATOMIC allocations, so use GFP_KERNEL instead. Signed-off-by: Will Deacon <will@kernel.org> Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Link: https://lore.kernel.org/r/20210318170738.7756-2-will@kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/vdso.c')
-rw-r--r--arch/arm64/kernel/vdso.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c
index cee5d04ea9ad..2d057a4dc787 100644
--- a/arch/arm64/kernel/vdso.c
+++ b/arch/arm64/kernel/vdso.c
@@ -299,7 +299,7 @@ static int aarch32_alloc_kuser_vdso_page(void)
if (!IS_ENABLED(CONFIG_KUSER_HELPERS))
return 0;
- vdso_page = get_zeroed_page(GFP_ATOMIC);
+ vdso_page = get_zeroed_page(GFP_KERNEL);
if (!vdso_page)
return -ENOMEM;
@@ -316,7 +316,7 @@ static int aarch32_alloc_sigpage(void)
int sigret_sz = __aarch32_sigret_code_end - __aarch32_sigret_code_start;
unsigned long sigpage;
- sigpage = get_zeroed_page(GFP_ATOMIC);
+ sigpage = get_zeroed_page(GFP_KERNEL);
if (!sigpage)
return -ENOMEM;