提交 21440a9c 编写于 作者: X Xiongfeng Wang 提交者: Xie XiuQi

arm64: kexec: only clear EOI for SDEI in NMI context

euler inclusion
category: bugfix
Bugzilla: 12567
CVE: N/A

----------------------------------------

We need to clear EOI for the secure timer only when we panic from
sdei_handler. If we clear EOI for the secure timer in normal panic
routiue, it has no bad effect on Hi1620, but it may cause undefine
behavior on Hi1616. So add a check for NMI context before we clear EOI
for the secure timer.

Fixes: dd397d5febc4("sdei_watchdog: clear EOI of the secure timer before
kdump")
Signed-off-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 203a4c60
...@@ -268,6 +268,7 @@ void machine_crash_shutdown(struct pt_regs *regs) ...@@ -268,6 +268,7 @@ void machine_crash_shutdown(struct pt_regs *regs)
* interrupt failed to trigger in the second kernel. So we clear eoi * interrupt failed to trigger in the second kernel. So we clear eoi
* of the secure timer before booting the second kernel. * of the secure timer before booting the second kernel.
*/ */
if (in_nmi())
sdei_watchdog_clear_eoi(); sdei_watchdog_clear_eoi();
/* for crashing cpu */ /* for crashing cpu */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册