]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: Use the reserved TTBR0 if context switching to the init_mm
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 23 Mar 2015 15:06:50 +0000 (15:06 +0000)
committerJiri Slaby <jslaby@suse.cz>
Tue, 21 Apr 2015 14:30:01 +0000 (16:30 +0200)
commit20554b14c96113c351088dd26de76d4d214796a1
treedadd805ef03930e3113549a4013073ece6cfe62e
parent3426bb8de3a655aa6668e92ee92eb35f0db86582
arm64: Use the reserved TTBR0 if context switching to the init_mm

commit e53f21bce4d35a93b23d8fa1a840860f6c74f59e upstream.

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.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arm64/include/asm/mmu_context.h