From 28a8d3d3f38c74a51cdb09cb4e582dec8009bbd6 Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Thu, 15 Feb 2024 14:51:41 -0800 Subject: [PATCH] Don't return EINTR from process_vm_{write,read}v syscalls Just repeat the Linux behavior here. PiperOrigin-RevId: 607463895 --- pkg/sentry/syscalls/linux/sys_process_vm.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/sentry/syscalls/linux/sys_process_vm.go b/pkg/sentry/syscalls/linux/sys_process_vm.go index 9f5820d05..2653d80b4 100644 --- a/pkg/sentry/syscalls/linux/sys_process_vm.go +++ b/pkg/sentry/syscalls/linux/sys_process_vm.go @@ -194,12 +194,6 @@ func doProcessVMOpMaybeLocked(t *kernel.Task, args processVMOpArgs) (int, error) start := 0 for bytes > start && 0 < len(writeIovecs) { - if t.Interrupted() { - if n == 0 { - return 0, linuxerr.EINTR - } - return n, nil - } writeLength := int(writeIovecs[0].Length()) if writeLength > (bytes - start) { writeLength = bytes - start