linux-stable/Documentation/livepatch
Miroslav Benes cba82dea30 livepatch: Send a fake signal periodically
An administrator may send a fake signal to all remaining blocking tasks
of a running transition by writing to
/sys/kernel/livepatch/<patch>/signal attribute. Let's do it
automatically after 15 seconds. The timeout is chosen deliberately. It
gives the tasks enough time to transition themselves.

Theoretically, sending it once should be more than enough. However,
every task must get outside of a patched function to be successfully
transitioned. It could prove not to be simple and resending could be
helpful in that case.

A new workqueue job could be a cleaner solution to achieve it, but it
could also introduce deadlocks and cause more headaches with
synchronization and cancelling.

[jkosina@suse.cz: removed added newline]
Signed-off-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2019-01-16 22:09:09 +01:00
..
callbacks.txt selftests/livepatch: introduce tests 2019-01-11 20:51:24 +01:00
cumulative-patches.txt livepatch: Remove ordering (stacking) of the livepatches 2019-01-11 20:51:24 +01:00
livepatch.txt livepatch: Send a fake signal periodically 2019-01-16 22:09:09 +01:00
module-elf-format.txt
shadow-vars.txt livepatch: Allow to call a custom callback when freeing shadow variables 2018-04-17 13:42:48 +02:00