Skip to content
Commit e53f21bc authored by Catalin Marinas's avatar Catalin Marinas
Browse files

arm64: Use the reserved TTBR0 if context switching to the init_mm



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: default avatarJon Medhurst (Tixy) <tixy@linaro.org>
Tested-by: default avatarJon Medhurst (Tixy) <tixy@linaro.org>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent bc465aa9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment