diff options
author | Michael Pratt <mpratt@google.com> | 2019-04-17 13:42:16 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-04-17 13:43:20 -0700 |
commit | b52cbd60280342f25411561702e97fe650fdaa9c (patch) | |
tree | 66cdc3cc800c07b708ab282d9323f11886834d83 /test/syscalls/linux/BUILD | |
parent | c8cee7108f1a1b37e89961c6dd69ccab97952c86 (diff) |
Don't allow sigtimedwait to catch unblockable signals
The existing logic attempting to do this is incorrect. Unary ^ has
higher precedence than &^, so mask always has UnblockableSignals
cleared, allowing dequeueSignalLocked to dequeue unblockable signals
(which allows userspace to ignore them).
Switch the logic so that unblockable signals are always masked.
PiperOrigin-RevId: 244058487
Change-Id: Ib19630ac04068a1fbfb9dc4a8eab1ccbdb21edc3
Diffstat (limited to 'test/syscalls/linux/BUILD')
-rw-r--r-- | test/syscalls/linux/BUILD | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/syscalls/linux/BUILD b/test/syscalls/linux/BUILD index 38faba267..d99733fc9 100644 --- a/test/syscalls/linux/BUILD +++ b/test/syscalls/linux/BUILD @@ -1825,6 +1825,7 @@ cc_binary( srcs = ["sigtimedwait.cc"], linkstatic = 1, deps = [ + "//test/util:file_descriptor", "//test/util:logging", "//test/util:signal_util", "//test/util:test_util", |