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. Change-Id: I90c16bcb0edcdcf6e1ce9f98a091ad1e0cccb697 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> Git-commit: e53f21bce4d35a93b23d8fa1a840860f6c74f59e Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by:
Rohit Vaswani <rvaswani@codeaurora.org>
Loading
Please register or sign in to comment