diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2020-04-04 17:42:56 +0300 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2020-05-11 20:08:49 +0300 |
commit | 8890b29341f30f4a364b2eb6046bb1ac1478f955 (patch) | |
tree | 69e5fa0629458b55ef3dd929310421729cc56322 /scripts/gdb/linux/utils.py | |
parent | a28bf136e651e17d7e2c753aa140ce3cc1df36a0 (diff) | |
download | linux-8890b29341f30f4a364b2eb6046bb1ac1478f955.tar.xz |
exec: Move handling of the point of no return to the top level
Move the handing of the point of no return from search_binary_handler
into __do_execve_file so that it is easier to find, and to keep
things robust in the face of change.
Make it clear that an existing fatal signal will take precedence over
a forced SIGSEGV by not forcing SIGSEGV if a fatal signal is already
pending. This does not change the behavior but it saves a reader
of the code the tedium of reading and understanding force_sig
and the signal delivery code.
Update the comment in begin_new_exec about where SIGSEGV is forced.
Keep point_of_no_return from being a mystery by documenting
what the code is doing where it forces SIGSEGV if the
code is past the point of no return.
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/87y2q25knl.fsf_-_@x220.int.ebiederm.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions