]> git.baikalelectronics.ru Git - kernel.git/commit
ia64: don't call handle_signal() unless there's actually a signal queued
authorJens Axboe <axboe@kernel.dk>
Wed, 3 Mar 2021 00:22:11 +0000 (17:22 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 3 Mar 2021 00:22:11 +0000 (17:22 -0700)
commitab4d0548ae8032307a243b0f339eb6f7e9f85247
treea859d8a170185780f4ed82033c4d66f29b32134c
parent5c60cad07a471c486b644ae5b08b784883ab79e9
ia64: don't call handle_signal() unless there's actually a signal queued

Sergei and John both reported that ia64 failed to boot in 5.11, and it
was related to signals. Turns out the ia64 signal handling is a bit odd,
it doesn't check the return value of get_signal() for whether there's a
signal to deliver or not. With the introduction of TIF_NOTIFY_SIGNAL,
then task_work could trigger it.

Fix it by only calling handle_signal() if we actually have a real signal
to deliver. This brings it in line with all other archs, too.

Fixes: d0d4f4d52793 ("ia64: add support for TIF_NOTIFY_SIGNAL")
Reported-by: Sergei Trofimovich <slyich@gmail.com>
Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Tested-by: Sergei Trofimovich <slyich@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
arch/ia64/kernel/signal.c