summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiongfeng Wang <wangxiongfeng2@huawei.com>2023-11-27 20:40:26 +0800
committerDongkyun Son <dongkyun.s@samsung.com>2024-11-11 21:03:39 +0900
commit55530825f7aac408b73f2129868ec2a3cf53032e (patch)
treef847de90be41ee9609a630a59146708fbd9e2f2c
parent109f0ae6504c4c797460a95ccc281f20e7046651 (diff)
downloadlinux-rpi-55530825f7aac408b73f2129868ec2a3cf53032e.tar.gz
linux-rpi-55530825f7aac408b73f2129868ec2a3cf53032e.tar.bz2
linux-rpi-55530825f7aac408b73f2129868ec2a3cf53032e.zip
ilp32: skip ARM erratum 1418040 for ilp32 application
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8JVJ3 CVE: NA -------------------------------- ARM erratum 1418040 only affect AARCH32. ILP32 is not affected. Signed-off-by: Xiongfeng Wang <wangxiongfeng2@hauwei.com> Acked-by: Xie XiuQi <xiexiuqi@huawei.com> Signed-off-by: Chen Jun <chenjun102@huawei.com> Signed-off-by: Chen Jiahao <chenjiahao16@huawei.com> Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
-rw-r--r--arch/arm64/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c
index 0db91c9febee..27f50bebb316 100644
--- a/arch/arm64/kernel/process.c
+++ b/arch/arm64/kernel/process.c
@@ -482,7 +482,7 @@ static void erratum_1418040_thread_switch(struct task_struct *next)
!this_cpu_has_cap(ARM64_WORKAROUND_1418040))
return;
- if (is_compat_thread(task_thread_info(next)))
+ if (is_a32_compat_thread(task_thread_info(next)))
sysreg_clear_set(cntkctl_el1, ARCH_TIMER_USR_VCT_ACCESS_EN, 0);
else
sysreg_clear_set(cntkctl_el1, 0, ARCH_TIMER_USR_VCT_ACCESS_EN);