]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - ChangeLog
Bug 20116: Fix use after free in pthread_create()
[thirdparty/glibc.git] / ChangeLog
index 52ad8d865009603e293aba8a781f73cac9f46d0f..4e0d78851cb976de887d76452b5cb53ba99353ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,202 @@
+2016-01-28  Carlos O'Donell  <carlos@redhat.com>
+           Alexey Makhalov <amakhalov@vmware.com>
+           Florian Weimer <fweimer@redhat.com>
+
+       [BZ #20116]
+       * nptl/pthread_create.c: Document concurrency notes.
+       Enhance thread creation notes.
+       (create_thread): Use bool *stopped_start.
+       (START_THREAD_DEFN): Comment ownership of PD.
+       (__pthread_create_2_1): Add local bool stopped_start and use
+       that instead of pd->stopped_start where appropriate.
+       * nptl/createthread.c (create_thread): Use bool *stopped_start.
+       * sysdeps/nacl/createthread.c (create_thread): Use bool *stopped_start.
+       * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
+       * nptl/tst-create-detached.c: New file.
+       * nptl/Makefile (tests): Add tst-create-detached.
+       * nptl/pthread_getschedparam.c (__pthread_getschedparam):
+       Reference the enhanced thread creation notes.
+       * nptl/pthread_setschedparam.c (__pthread_setschedparam): Likewise.
+       * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
+       * nptl/tpp.c (__pthread_tpp_change_priority): Likewise.
+       (__pthread_current_priority): Likewise.
+       * support/Makefile (libsupport-routines): Add xpthread_attr_destroy
+       xpthread_attr_init, xpthread_attr_setdetachstate, and
+       xpthread_attr_setstacksize.
+       * support/xpthread_attr_destroy.c: New file.
+       * support/xpthread_attr_init.c: New file.
+       * support/xpthread_attr_setdetachstate.c: New file.
+       * support/xpthread_attr_setstacksize.c: New file.
+       * support/xthread.h: Define prototypes for xpthread_attr_destroy
+       xpthread_attr_init, xpthread_attr_setdetachstate, and
+       xpthread_attr_setstacksize.
+
+2017-01-27  Florian Weimer  <fweimer@redhat.com>
+
+       * nptl/Makefile (tests): Add tst-robust-fork.
+       * nptl/tst-robust-fork.c: New file.
+       * support/Makefile (libsupport-routines): Add xmmap, xmunmap,
+       xpthread_mutex_consistent, xpthread_mutex_destroy,
+       xpthread_mutex_init, xpthread_mutexattr_destroy,
+       xpthread_mutexattr_init, xpthread_mutexattr_setprotocol,
+       xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust,
+       xpthread_mutexattr_settype.
+       * support/xmmap.c: New file.
+       * support/xmunmap.c: Likewise.
+       * support/xpthread_mutex_consistent.c: Likewise.
+       * support/xpthread_mutex_destroy.c: Likewise.
+       * support/xpthread_mutex_init.c: Likewise.
+       * support/xpthread_mutexattr_destroy.c: Likewise.
+       * support/xpthread_mutexattr_init.c: Likewise.
+       * support/xpthread_mutexattr_setprotocol.c: Likewise.
+       * support/xpthread_mutexattr_setpshared.c: Likewise.
+       * support/xpthread_mutexattr_setrobust.c: Likewise.
+       * support/xpthread_mutexattr_settype.c: Likewise.
+       * support/xthread.h (xpthread_mutexattr_destroy)
+       (xpthread_mutexattr_init, xpthread_mutexattr_setprotocol)
+       (xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust)
+       (xpthread_mutexattr_settype, xpthread_mutex_init)
+       (xpthread_mutex_destroy, xpthread_mutex_consistent): Declare.
+       * support/xunistd.h (xmmap, xmunmap): Likewise.
+
+2017-01-25  Florian Weimer  <fweimer@redhat.com>
+
+       * string/Makefile (xtests): Add comment.
+       (LOCALES): Add en_GB.UTF-8.
+       (tst-strcoll-overflow.out): Depend on generated locales.
+       * string/tst-strcoll-overflow.c: Convert to support/test-driver.c.
+       (SIZE, TIMEOUT): Update comments.
+       (do_test): Define as static.  Fail test if setlocale fails.
+       Return EXIT_UNSUPPORTED if insufficient memory.  Enhance output
+       messages.
+       (EXPECTED_SIGNAL, EXPECTED_STATUS, TEST_FUNCTION): Remove.
+       TIMEOUT at 300 seconds should be enough to run this test
+       successfully.
+
+2017-01-24  Jakub Jelinek  <jakub@redhat.com>
+
+       * soft-fp/op-common.h (_FP_MUL, _FP_FMA, _FP_DIV): Add
+       /* FALLTHRU */ comments.
+
+2017-01-24  James Clarke  <jrtc27@jrtc27.com>
+
+       [BZ #21053]
+       * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.sym: Use new REG_R*
+       constants instead of the old R* ones.
+       * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym: Likewise.
+       * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (NGPREG): Rename...
+       (NGREG): ... to this, to fit in with other architectures.
+       (gpregset_t): Use new NGREG macro.
+       [__USE_GNU]: Remove condition; all architectures other than tile
+       are unconditional.
+       (R*): Rename to REG_R*.
+
+2017-01-20  DJ Delorie  <dj@redhat.com>
+
+       * elf/dl-tunables.c (tunable_set_val_if_valid_range): Split into ...
+       (tunable_set_val_if_valid_range_signed) ... this, and ...
+       (tunable_set_val_if_valid_range_unsigned) ... this.
+       (tunable_initialize): Call the correct one of the above based on type.
+
+2017-01-20  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/hppa/fpu/libm-test-ulps: Remove *_tonearest entries.
+       * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
+       * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
+       * sysdeps/microblaze/libm-test-ulps: Likewise.
+       * sysdeps/sh/libm-test-ulps: Likewise.
+
+       * math/README.libm-test: Update list of characters for input and
+       output types.
+
+2017-01-20  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
+
+       * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
+       (__lll_unlock_elision): Fix adapt_count decrement.
+
+2017-01-14  Martin Galvan  <martingalvan@sourceware.org>
+
+       * README.pretty-printers (Known issues): Warn about printers not
+       always covering everything.
+       * nptl/nptl-printers.py (MutexPrinter): Change output.
+       * nptl/test-mutex-printers.py: Fix test and adapt to changed output.
+
+2017-01-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
+
+       * sysdeps/unix/sysv/linux/s390/htm.h: Adjust comments.
+       * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
+       * sysdeps/unix/sysv/linux/s390/elision-lock.c: Adjust comments.
+       (__lll_lock_elision): Do not test futex before starting a
+       transaction.  Use __glibc_likely instead of __builtin_expect.
+       * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Adjust comments.
+       (__lll_trylock_elision): Do not test futex before starting a
+       transaction.  Use __glibc_likely instead of __builtin_expect.
+
+2017-01-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
+
+       * po/Makefile (update-translations): New target.
+
+2017-01-19  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #21061]
+       * sysdeps/unix/sysv/linux/microblaze/clock-compat.c: New file.
+
+2017-01-19  Siddhesh Poyarekar  <siddhesh@sourceware.org>
+
+       * elf/dl-tunables (get_next_env): Always advance envp.
+       * stdlib/tst-empty-env.c: New test case.
+       * stdlib/Makefile (tests): Use it.
+
+2017-01-19  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #21047]
+       * sysdeps/arm/fpu_control.h [!__SOFTFP__] (_FPU_GETCW): Use VFP
+       name for instruction.
+       [!__SOFTFP__] (_FPU_SETCW): Likewise.
+
+2017-01-18  Joseph Myers  <joseph@codesourcery.com>
+
+       * scripts/build-many-glibcs.py (Config.build_cross_tool): Use -j1
+       for make install.
+
+2017-01-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
+
+       * po/bg.po: Merge from Translation Project.
+       * po/fr.po: Likewise.
+       * po/ko.po: Likewise.
+       * po/nl.po: Likewise.
+       * po/sv.po: Likewise.
+
+2017-01-18  Joseph Myers  <joseph@codesourcery.com>
+
+       * manual/install.texi (Tools for Compilation): Update GCC version
+       known to work to build glibc.
+       * INSTALL: Regenerated.
+
+2017-01-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
+
+       [BZ #21006]
+       * string/Makefile (LDFLAGS-tst-xbzero-opt): New variable.
+
+2017-01-16  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #21045]
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
+       (__CONTEXT_FUNC_NAME): Pass address of signal mask to be restored
+       to __sigprocmask.
+
+2017-01-16  Chris Metcalf  <cmetcalf@mellanox.com>
+
+       * sysdeps/tile/tilegx/memchr.c (__memchr): Handle pointer
+       wrap-around.
+       * sysdeps/tile/tilepro/memchr.c (__memchr): Likewise.
+
+       * sysdeps/unix/sysv/linux/tile/ipc_priv.h: New file.
+
+2016-01-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
+
+       * NEWS: Fix typo.
+
 2016-01-13  Torvald Riegel  <triegel@redhat.com>
 
        * nptl/descr.h (ENQUEUE_MUTEX_BOTH, DEQUEUE_MUTEX): Add compiler