diff options
| author | Eric W. Biederman <[email protected]> | 2022-02-09 15:51:14 +0000 |
|---|---|---|
| committer | Eric W. Biederman <[email protected]> | 2022-03-10 22:51:36 +0000 |
| commit | 8ba62d37949e248c698c26e0d82d72fda5d33ebf (patch) | |
| tree | 1faa152e80c54f5bcb1f740ec43d8537c3d42f17 /fs/proc/array.c | |
| parent | task_work: Introduce task_work_pending (diff) | |
| download | kernel-8ba62d37949e248c698c26e0d82d72fda5d33ebf.tar.gz kernel-8ba62d37949e248c698c26e0d82d72fda5d33ebf.zip | |
task_work: Call tracehook_notify_signal from get_signal on all architectures
Always handle TIF_NOTIFY_SIGNAL in get_signal. With commit 35d0b389f3b2
("task_work: unconditionally run task_work from get_signal()") always
calling task_work_run all of the work of tracehook_notify_signal is
already happening except clearing TIF_NOTIFY_SIGNAL.
Factor clear_notify_signal out of tracehook_notify_signal and use it in
get_signal so that get_signal only needs one call of task_work_run.
To keep the semantics in sync update xfer_to_guest_mode_work (which
does not call get_signal) to call tracehook_notify_signal if either
_TIF_SIGPENDING or _TIF_NOTIFY_SIGNAL.
Reviewed-by: Kees Cook <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: "Eric W. Biederman" <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
