]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Fix show_unhandled_signal_ratelimited usage
authorSuzuki K. Poulose <suzuki.poulose@arm.com>
Fri, 3 Jul 2015 14:08:08 +0000 (15:08 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 3 Jul 2015 16:03:06 +0000 (17:03 +0100)
commitd0abcb29f8e453df35f1e785623336993b7a5658
tree84fb207de44498b8bd0a1f7dffd942d3ee33ffe2
parent49121483d9faf22e6d9374d1a7b4e70d96a1bb46
arm64: Fix show_unhandled_signal_ratelimited usage

Commit 5ad797a4be7 introduced ratelimited usage for
'unhandled_signal' messages.
The commit checks the ratelimit irrespective of whether
the signal is handled or not, which is wrong and leads
to false reports like the below in dmesg :

__do_user_fault: 127 callbacks suppressed

Do the ratelimit check only if the signal is unhandled.

Fixes: 5ad797a4be70 ("arm64: use private ratelimit state along with show_unhandled_signals")
Cc: Vladimir Murzin <Vladimir.Murzin@arm.com>
Signed-off-by: Suzuki K. Poulose <suzuki.poulose@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/traps.c
arch/arm64/mm/fault.c