From: Xiongfeng Wang wangxiongfeng2@huawei.com
hulk inclusion category: feature bugzilla: 46790 CVE: NA
--------------------------------
ARM erratum 1418040 only affect AARCH32. ILP32 is not affected.
Signed-off-by: Xiongfeng Wang wangxiongfeng2@hauwei.com --- arch/arm64/kernel/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index 1ad01a7887a9..73e3b324c51e 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c @@ -524,8 +524,8 @@ static void erratum_1418040_thread_switch(struct task_struct *prev, if (!IS_ENABLED(CONFIG_ARM64_ERRATUM_1418040)) return;
- prev32 = is_compat_thread(task_thread_info(prev)); - next32 = is_compat_thread(task_thread_info(next)); + prev32 = is_a32_compat_thread(task_thread_info(prev)); + next32 = is_a32_compat_thread(task_thread_info(next));
if (prev32 == next32 || !this_cpu_has_cap(ARM64_WORKAROUND_1418040)) return;