]> git.ipfire.org Git - thirdparty/glibc.git/commit
dlopen: Do not block signals
authorFlorian Weimer <fweimer@redhat.com>
Fri, 13 Dec 2019 09:23:10 +0000 (10:23 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 13 Dec 2019 09:23:10 +0000 (10:23 +0100)
commitf7649d5780aa4682393b9daedd653e4d9c12784c
tree147077b0e289eeaec623f1f338f5fa92d0955b2f
parentf8ed116aa574435c6e28260f21963233682d3b57
dlopen: Do not block signals

Blocking signals causes issues with certain anti-malware solutions
which rely on an unblocked SIGSYS signal for system calls they
intercept.

This reverts commit a2e8aa0d9ea648068d8be52dd7b15f1b6a008e23
("Block signals during the initial part of dlopen") and adds
comments related to async signal safety to active_nodelete and
its caller.

Note that this does not make lazy binding async-signal-safe with regards
to dlopen.  It merely avoids introducing new async-signal-safety hazards
as part of the NODELETE changes.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
elf/dl-open.c