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

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

arm64: Do not attempt to use init_mm in reset_context()



[ Upstream commit 565630d503ef24e44c252bed55571b3a0d68455f ]

After secondary CPU boot or hotplug, the active_mm of the idle thread is
&init_mm. The init_mm.pgd (swapper_pg_dir) is only meant for TTBR1_EL1
and must not be set in TTBR0_EL1. Since when active_mm == &init_mm the
TTBR0_EL1 is already set to the reserved value, there is no need to
perform any context reset.

Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent f6f4983d
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