]> 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)
committerSasha Levin <sasha.levin@oracle.com>
Fri, 17 Apr 2015 00:13:17 +0000 (20:13 -0400)
commit20ecb85c6e0c815de560b6b56409e9e89183d5c6
tree8365e9de479a6dc4d724b13b87edc12900a42b33
parent3d8fc13835497f122ba638f96d72c71063586f4f
arm64: Use the reserved TTBR0 if context switching to the init_mm

[ Upstream commit e53f21bce4d35a93b23d8fa1a840860f6c74f59e ]

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.

Cc: <stable@vger.kernel.org>
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: Sasha Levin <sasha.levin@oracle.com>
arch/arm64/include/asm/mmu_context.h