Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 409e2f1b authored by Catalin Marinas's avatar Catalin Marinas Committed by Rohit Vaswani
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.

Change-Id: I90c16bcb0edcdcf6e1ce9f98a091ad1e0cccb697
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>
Git-commit: e53f21bce4d35a93b23d8fa1a840860f6c74f59e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarRohit Vaswani <rvaswani@codeaurora.org>
parent 665500fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment