]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: Use the reserved TTBR0 if context switching to the init_mm
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 23 Mar 2015 15:06:50 +0000 (15:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2015 12:03:56 +0000 (14:03 +0200)
commit7521625c56d08fd27c20cf88423b41067bb5a03c
treef0ec5ad2d6433d98e4d1293049fc01ba1a9c76c6
parent4b38884078bea8fe24486845caa3883fa4fa5460
arm64: Use the reserved TTBR0 if context switching to the init_mm

commit e53f21bce4d35a93b23d8fa1a840860f6c74f59e upstream.

The idle_task_exit() function may call switch_mm() with next ==
&init_mm. On arm64, init_mm.pgd cannot be used for user mappings, so
this patch simply sets the reserved TTBR0.

Reported-by: Jon Medhurst (Tixy) <tixy@linaro.org>
Tested-by: Jon Medhurst (Tixy) <tixy@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/mmu_context.h