]> git.ipfire.org Git - thirdparty/glibc.git/commit
hurd: Fix race between calling RPC and handling a signal
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 9 Oct 2018 21:40:09 +0000 (23:40 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 28 Oct 2018 12:41:51 +0000 (13:41 +0100)
commit5c81be53407434ce22b849722a3d691295480016
tree930f36f9263b5d02c176d6b13b0ed5a762c8fd83
parent2d0d1d38761cd9aeb7063c5cce1993cec909f67f
hurd: Fix race between calling RPC and handling a signal

* sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
_hurd_intr_rpc_msg_about_to global point to start of controlled
assembly snippet. Make it check canceled flag.
* hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
the _hurd_intr_rpc_msg_about_to point.
* hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
issue, remove cancel flag check.
ChangeLog
hurd/hurdsig.c
hurd/intr-msg.c
sysdeps/mach/hurd/i386/intr-msg.h