vmalloc is not able to provide allocations with alignment greater than PAGE_SIZE, so avoid them. Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx> --- lib/arm/asm/thread_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/arm/asm/thread_info.h b/lib/arm/asm/thread_info.h index 9f0c14d..c2ecebb 100644 --- a/lib/arm/asm/thread_info.h +++ b/lib/arm/asm/thread_info.h @@ -38,7 +38,7 @@ static inline void *thread_stack_alloc(void) { - void *sp = memalign(THREAD_SIZE, THREAD_SIZE); + void *sp = memalign(PAGE_SIZE, THREAD_SIZE); return sp + THREAD_START_SP; } -- 2.14.2