Revert "arm64: initialize per-cpu offsets earlier"
authorWill Deacon <will@kernel.org>
Fri, 9 Oct 2020 10:24:17 +0000 (11:24 +0100)
committerWill Deacon <will@kernel.org>
Fri, 9 Oct 2020 10:24:17 +0000 (11:24 +0100)
commitd13027bb35e089bc1bb9f19c4976decf32a09b97
treefe5e98288f7c0bdb4842ae78f6793d20288d66db
parenta82e4ef0417b89c6707706b9194fb0c7872a4c6a
Revert "arm64: initialize per-cpu offsets earlier"

This reverts commit 353e228eb355be5a65a3c0996c774a0f46737fda.

Qian Cai reports that TX2 no longer boots with his .config as it appears
that task_cpu() gets instrumented and used before KASAN has been
initialised.

Although Mark has a proposed fix, let's take the safe option of reverting
this for now and sorting it out properly later.

Link: https://lore.kernel.org/r/711bc57a314d8d646b41307008db2845b7537b3d.camel@redhat.com
Reported-by: Qian Cai <cai@redhat.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/cpu.h
arch/arm64/kernel/head.S
arch/arm64/kernel/setup.c
arch/arm64/kernel/smp.c