linux/include
Jens Axboe a14b028722 UPSTREAM: entry: Add support for TIF_NOTIFY_SIGNAL
[ Upstream commit 12db8b6900 ]

Add TIF_NOTIFY_SIGNAL handling in the generic entry code, which if set,
will return true if signal_pending() is used in a wait loop. That causes an
exit of the loop so that notify_signal tracehooks can be run. If the wait
loop is currently inside a system call, the system call is restarted once
task_work has been processed.

In preparation for only having arch_do_signal() handle syscall restarts if
_TIF_SIGPENDING isn't set, rename it to arch_do_signal_or_restart().  Pass
in a boolean that tells the architecture specific signal handler if it
should attempt to get a signal, or just process a potential syscall
restart.

For !CONFIG_GENERIC_ENTRY archs, add the TIF_NOTIFY_SIGNAL handling to
get_signal(). This is done to minimize the needed architecture changes to
support this feature.

Change-Id: Iec8202baf6ec6ff5d31c339869d8f34af4182677
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Link: https://lore.kernel.org/r/20201026203230.386348-3-axboe@kernel.dk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 3c295bd2dd)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-07 13:38:09 +00:00
..
acpi ACPI: APEI: Fix integer overflow in ghes_estatus_pool_init() 2022-11-10 18:14:22 +01:00
asm-generic This is the 5.10.159 stable release 2022-12-14 13:11:31 +01:00
clocksource
crypto BACKPORT: mm: make minimum slab alignment a runtime property 2023-01-20 00:46:19 +00:00
drm Revert "drm: fix EDID struct for old ARM OABI format" 2022-07-28 14:52:52 +02:00
dt-bindings UPSTREAM: leds: add new LED_FUNCTION_PLAYER for player LEDs for game controllers. 2022-12-20 19:25:39 +00:00
keys
kunit
kvm
linux UPSTREAM: entry: Add support for TIF_NOTIFY_SIGNAL 2023-02-07 13:38:09 +00:00
math-emu
media This is the 5.10.153 stable release 2022-11-21 15:47:06 +00:00
memory memory: renesas-rpc-if: Fix HF/OSPI data transfer in Manual Mode 2022-05-09 09:05:02 +02:00
misc
net ANDROID: add TEST_MAPPING for net/, include/net 2023-01-23 17:55:25 +00:00
pcmcia
ras
rdma
scsi This is the 5.10.148 stable release 2022-10-15 08:33:43 +02:00
soc
sound Revert "ALSA: control: Use deferred fasync helper" 2022-08-30 14:10:16 +02:00
target
trace Merge tag 'android12-5.10.160_r00' into android12-5.10 2023-01-21 12:06:54 +00:00
uapi UPSTREAM: fs: expose LOOKUP_CACHED through openat2() RESOLVE_CACHED 2023-02-07 13:38:08 +00:00
vdso
video video: of_display_timing.h: include errno.h 2022-07-12 16:32:19 +02:00
xen