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

Commit 20ecb85c authored by Catalin Marinas's avatar Catalin Marinas Committed by Sasha Levin
Browse files

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: 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>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 3d8fc138
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