diff options
author | Paul E. Murphy <murphyp@linux.vnet.ibm.com> | 2016-01-11 17:24:04 -0500 |
---|---|---|
committer | Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> | 2016-01-15 16:53:08 -0200 |
commit | a3e5b4feeb54cb92657ec2bc6d9be1fcef9e8575 (patch) | |
tree | f538c5cf1a10d4d8ec7821cf086df977d5dc8ea3 /nptl/tst-barrier5.c | |
parent | 692de4b3960dc90bdcfb871513ee4d81d314cf69 (diff) | |
download | glibc-a3e5b4feeb54cb92657ec2bc6d9be1fcef9e8575.tar.gz |
Fix race in tst-mqueue5
The check is done on line 117 by a thread spawned
from do_child(), forked from do_test(). This test
generates a signal in the forked process.
Either thread may handle the signal, and on ppc,
it happens to be done on do_child, on the thread
which is not doing the check on line 117.
This exposes a race condition whereby the test
incorrectly fails as the signal is caught during
or after the check.
This is mitigated by ensuring the signal is blocked
in the child thread while thread is running.
Diffstat (limited to 'nptl/tst-barrier5.c')
0 files changed, 0 insertions, 0 deletions