]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kexec: allocate the kexec control page with KEXEC_CONTROL_MEMORY_GFP
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 16 Apr 2015 12:47:33 +0000 (14:47 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Thu, 27 Aug 2015 17:26:05 +0000 (13:26 -0400)
commit7ff9eeca341ace0ba30599ee5ab195e9b0f44550
treed753ac355bb4b0fd5d2f6fb46ce2fd97043b031c
parent015bb25d90b8867a1b6a882cc65cc28e3276c888
kexec: allocate the kexec control page with KEXEC_CONTROL_MEMORY_GFP

[ Upstream commit 7e01b5acd88b3f3108d8c4ce44e3205d67437202 ]

Introduce KEXEC_CONTROL_MEMORY_GFP to allow the architecture code
to override the gfp flags of the allocation for the kexec control
page. The loop in kimage_alloc_normal_control_pages allocates pages
with GFP_KERNEL until a page is found that happens to have an
address smaller than the KEXEC_CONTROL_MEMORY_LIMIT. On systems
with a large memory size but a small KEXEC_CONTROL_MEMORY_LIMIT
the loop will keep allocating memory until the oom killer steps in.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/s390/include/asm/kexec.h
include/linux/kexec.h
kernel/kexec.c