nptl: Fix abort in case of set*id failure [BZ #17135]
authorFlorian Weimer <fweimer@redhat.com>
Thu, 10 Jul 2014 15:34:46 +0000 (17:34 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 11 Jul 2014 10:30:53 +0000 (12:30 +0200)
commit771eb1415fde935e377111f69364a5d92a29e67d
tree1e9dd40b64e87fe715c4bc7ccee7487c6e500a8a
parentbc1da1765e901a9a9f532f91d09f5237655e01fd
nptl: Fix abort in case of set*id failure [BZ #17135]

If a call to the set*id functions fails in a multi-threaded program,
the abort introduced in commit 13f7fe35ae2b0ea55dc4b9628763aafdc8bdc30c
was triggered.

We address by checking that all calls to set*id on all threads give
the same result, and only abort if we see success followed by failure
(or vice versa).
ChangeLog
NEWS
nptl/Makefile
nptl/allocatestack.c
nptl/descr.h
nptl/nptl-init.c
nptl/pthreadP.h
nptl/tst-setuid3.c [new file with mode: 0644]