diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-05-12 08:54:17 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-05-12 15:44:52 +0200 |
commit | 2143af6a47027c48d8dc168e255d8f527377bc56 (patch) | |
tree | 0721340f56846376a90b5fe33d6d69e7f2a212bf /ChangeLog | |
parent | a37d61a662027a5d92fa54ceb75cd3167d732b5f (diff) | |
download | glibc-2143af6a47027c48d8dc168e255d8f527377bc56.zip glibc-2143af6a47027c48d8dc168e255d8f527377bc56.tar.gz glibc-2143af6a47027c48d8dc168e255d8f527377bc56.tar.bz2 |
Increase fork signal safety for single-threaded processes [BZ #19703]
This provides a band-aid and addresses the scenario where fork is
called from a signal handler while the process is in the malloc
subsystem (or has acquired the libio list lock). It does not
address the general issue of async-signal-safety of fork;
multi-threaded processes are not covered, and some glibc
subsystems have fork handlers which are not async-signal-safe.
(cherry picked from commit 56290d6e762c1194547e73ff0b948cd79d3a1e03)
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,13 @@ +2016-05-12 Florian Weimer <fweimer@redhat.com> + + [BZ #19703] + Partially async-signal-safe fork for single-threaded processes. + * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads + variable. Do not acquire and reset/release malloc and libio locks + in single-threaded processes. + * malloc/tst-mallocfork2.c: New file. + * malloc/Makefile (tests): Add it. + 2016-04-14 Stefan Liebler <stli@linux.vnet.ibm.com> * stdio-common/printf_fp.c (__printf_fp_l): |