diff options
author | Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | 2025-03-27 09:29:45 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-04-03 13:10:47 +0200 |
commit | 169eae7711ea4b745e2d33d53e7b88689b10e1a0 (patch) | |
tree | 45d215f2e3589e49b89a3339d1c64371319d8747 /scripts/generate_rust_analyzer.py | |
parent | 975776841e689dd8ba36df9fa72ac3eca3c2957a (diff) | |
download | linux-169eae7711ea4b745e2d33d53e7b88689b10e1a0.tar.gz linux-169eae7711ea4b745e2d33d53e7b88689b10e1a0.tar.bz2 linux-169eae7711ea4b745e2d33d53e7b88689b10e1a0.zip |
rseq: Eliminate useless task_work on execve
Eliminate a useless task_work on execve by moving the call to
rseq_set_notify_resume() from sched_mm_cid_after_execve() to the error
path of bprm_execve().
The call to rseq_set_notify_resume() from sched_mm_cid_after_execve() is
pointless in the success case, because rseq_execve() will clear the rseq
pointer before returning to userspace.
sched_mm_cid_after_execve() is called from both the success and error
paths of bprm_execve(). The call to rseq_set_notify_resume() is needed
on error because the mm_cid may have changed.
Also move the rseq_execve() to right after sched_mm_cid_after_execve()
in bprm_execve().
[ mingo: Merged to a recent upstream kernel, extended the changelog. ]
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250327132945.1558783-1-mathieu.desnoyers@efficios.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions