summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-01-28 19:38:33 +0000
committergVisor bot <gvisor-bot@google.com>2020-01-28 19:38:33 +0000
commit03789f35d28783c6c3d659622ccf17b7f8082129 (patch)
treec301bcd69d92222a33c4605515b2091e343b90f1 /pkg/sentry/syscalls
parentc5ee06b929d2e005c624c2c2100f8f683ac61388 (diff)
parent76483b8b1ec4ee1fb6b6efb6bdcfaf6dba7be4ce (diff)
Merge release-20200115.0-118-g76483b8 (automated)
Diffstat (limited to 'pkg/sentry/syscalls')
-rw-r--r--pkg/sentry/syscalls/linux/sys_signal.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/syscalls/linux/sys_signal.go b/pkg/sentry/syscalls/linux/sys_signal.go
index 209be2990..7e1747a0c 100644
--- a/pkg/sentry/syscalls/linux/sys_signal.go
+++ b/pkg/sentry/syscalls/linux/sys_signal.go
@@ -245,6 +245,11 @@ func RtSigaction(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kernel.S
sig := linux.Signal(args[0].Int())
newactarg := args[1].Pointer()
oldactarg := args[2].Pointer()
+ sigsetsize := args[3].SizeT()
+
+ if sigsetsize != linux.SignalSetSize {
+ return 0, nil, syserror.EINVAL
+ }
var newactptr *arch.SignalAct
if newactarg != 0 {