提交 a7e6f1ca 编写于 作者: W Will Deacon

arm64: signal: Force SIGKILL for unknown signals in force_signal_inject

For signals other than SIGKILL or those with siginfo_layout(signal, code)
== SIL_FAULT then force_signal_inject does not initialise the siginfo_t
properly. Since the signal number is determined solely by the caller,
simply WARN on unknown signals and force to SIGKILL.
Reported-by: NDave Martin <Dave.Martin@arm.com>
Signed-off-by: NWill Deacon <will.deacon@arm.com>
上级 2c9120f3
......@@ -331,6 +331,12 @@ void force_signal_inject(int signal, int code, unsigned long address)
break;
}
/* Force signals we don't understand to SIGKILL */
if (WARN_ON(signal != SIGKILL ||
siginfo_layout(signal, code) != SIL_FAULT)) {
signal = SIGKILL;
}
if (unhandled_signal(current, signal) &&
show_unhandled_signals_ratelimited()) {
pr_info("%s[%d]: %s: pc=%08llx\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册