gvisor/pkg/sentry
Michael Pratt b52cbd6028 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
2019-04-17 13:43:20 -07:00
..
arch Internal change 2019-04-10 18:00:18 -07:00
context Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
control Add profiling commands to runsc 2019-03-11 11:47:30 -07:00
device Save/restore simple devices. 2019-04-01 15:39:16 -07:00
fs Use FD limit and file size limit from host 2019-04-17 12:57:40 -07:00
hostcpu Remove license comments 2019-01-31 11:12:53 -08:00
inet Remove license comments 2019-01-31 11:12:53 -08:00
kernel Don't allow sigtimedwait to catch unblockable signals 2019-04-17 13:43:20 -07:00
limits Allow threads with CAP_SYS_RESOURCE to raise hard rlimits. 2019-04-10 12:36:45 -07:00
loader Use open fids when fstat()ing gofer files. 2019-04-11 00:43:04 -07:00
memmap Call memmap.Mappable.Translate with more conservative usermem.AccessType. 2019-03-25 12:42:43 -07:00
memutil Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
mm Internal change 2019-04-10 18:00:18 -07:00
pgalloc Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
platform Allow BP and OF can be called from user space 2019-03-21 22:04:50 -07:00
safemem Priority-inheritance futex implementation 2019-03-05 23:40:18 -08:00
sighandling Remove license comments 2019-01-31 11:12:53 -08:00
socket Convert poll/select to operate more directly on linux.PollFD 2019-04-17 12:15:01 -07:00
state Treat ENOSPC as a state-file error during save. 2019-03-29 12:26:25 -07:00
strace Format FDs in strace logs 2019-04-11 16:48:39 -07:00
syscalls Convert poll/select to operate more directly on linux.PollFD 2019-04-17 12:15:01 -07:00
time Move package sync to third_party 2019-01-31 17:49:14 -08:00
unimpl Remove license comments 2019-01-31 11:12:53 -08:00
uniqueid Remove license comments 2019-01-31 11:12:53 -08:00
usage Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
usermem Convert []byte to string without copying in usermem.CopyStringIn. 2019-03-27 10:46:28 -07:00
watchdog Remove license comments 2019-01-31 11:12:53 -08:00
BUILD Remove license comments 2019-01-31 11:12:53 -08:00