]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: signal: Force SIGKILL for unknown signals in force_signal_inject
authorWill Deacon <will.deacon@arm.com>
Tue, 20 Feb 2018 18:08:40 +0000 (18:08 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 6 Mar 2018 18:52:23 +0000 (18:52 +0000)
commitf6b7dd4c778a6158522006d05a67ebdd8fab7daf
tree0e8b4ebdcf42eea29d6dda35fa56be2f9b5e280c
parent0bd2477179397c3346615ceef93bc73e009274b1
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: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/traps.c