提交 aeab0140 编写于 作者: W Wei Li 提交者: Xie XiuQi

irqchip/gic-v3: fix system hang caused by ftrace

hulk inclusion
category: bugfix
bugzilla: 12844
CVE: NA

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

When gicv3_pseudo_nmi is enabled, the system will hang when excuting
"echo function_graph > /sys/kernel/debug/tracing/current_tracer".
In the gic_handle_irq(), function gic_read_iar() always return 1023 after
ftrace_caller() is called. The root reason leading to this is not located.
Set the function gic_handle_irq() as "notrace" to workaround this issue.
Signed-off-by: NWei Li <liwei391@huawei.com>
Reviewed-by: NCheng Jian <cj.chengjian@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 9f05210d
......@@ -491,7 +491,8 @@ static inline void gic_handle_nmi(u32 irqnr, struct pt_regs *regs)
gic_deactivate_unhandled(irqnr);
}
static asmlinkage void __exception_irq_entry gic_handle_irq(struct pt_regs *regs)
static asmlinkage void __exception_irq_entry notrace
gic_handle_irq(struct pt_regs *regs)
{
u32 irqnr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册