From ce7a4440cae8ee4b2a41808f967c9847cafd2937 Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Tue, 5 Jan 2021 14:43:35 -0800 Subject: Fix panic when parsing SO_TIMESTAMP cmsg PiperOrigin-RevId: 350223482 --- pkg/sentry/syscalls/linux/vfs2/socket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/sentry/syscalls/linux/vfs2') diff --git a/pkg/sentry/syscalls/linux/vfs2/socket.go b/pkg/sentry/syscalls/linux/vfs2/socket.go index 987012acc..f5795b4a8 100644 --- a/pkg/sentry/syscalls/linux/vfs2/socket.go +++ b/pkg/sentry/syscalls/linux/vfs2/socket.go @@ -1033,7 +1033,7 @@ func sendSingleMsg(t *kernel.Task, s socket.SocketVFS2, file *vfs.FileDescriptio return 0, err } - controlMessages, err := control.Parse(t, s, controlData) + controlMessages, err := control.Parse(t, s, controlData, t.Arch().Width()) if err != nil { return 0, err } -- cgit v1.2.3