Skip to content

Commit a718459

Browse files
milantracygvisor-bot
authored andcommitted
Update docs for preadv2/pwritev2 unsupported RWF flags.
PiperOrigin-RevId: 834415691
1 parent e3403be commit a718459

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/sentry/syscalls/linux/linux64.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ var AMD64 = &kernel.SyscallTable{
382382
// Syscalls implemented after 325 are "backports" from versions
383383
// of Linux after 4.4.
384384
326: syscalls.ErrorWithEvent("copy_file_range", linuxerr.ENOSYS, "", nil),
385-
327: syscalls.SupportedPoint("preadv2", Preadv2, PointPreadv2),
386-
328: syscalls.SupportedPoint("pwritev2", Pwritev2, PointPwritev2),
385+
327: syscalls.PartiallySupportedPoint("preadv2", Preadv2, PointPreadv2, "RWF flags are not supported.", []string{"gvisor.dev/issue/2601"}),
386+
328: syscalls.PartiallySupportedPoint("pwritev2", Pwritev2, PointPwritev2, "RWF flags are not supported.", []string{"gvisor.dev/issue/2601"}),
387387
329: syscalls.ErrorWithEvent("pkey_mprotect", linuxerr.ENOSYS, "", nil),
388388
330: syscalls.ErrorWithEvent("pkey_alloc", linuxerr.ENOSYS, "", nil),
389389
331: syscalls.ErrorWithEvent("pkey_free", linuxerr.ENOSYS, "", nil),
@@ -703,8 +703,8 @@ var ARM64 = &kernel.SyscallTable{
703703

704704
// Syscalls after 284 are "backports" from versions of Linux after 4.4.
705705
285: syscalls.ErrorWithEvent("copy_file_range", linuxerr.ENOSYS, "", nil),
706-
286: syscalls.SupportedPoint("preadv2", Preadv2, PointPreadv2),
707-
287: syscalls.SupportedPoint("pwritev2", Pwritev2, PointPwritev2),
706+
286: syscalls.PartiallySupportedPoint("preadv2", Preadv2, PointPreadv2, "RWF flags are not supported.", []string{"gvisor.dev/issue/2601"}),
707+
287: syscalls.PartiallySupportedPoint("pwritev2", Pwritev2, PointPwritev2, "RWF flags are not supported.", []string{"gvisor.dev/issue/2601"}),
708708
288: syscalls.ErrorWithEvent("pkey_mprotect", linuxerr.ENOSYS, "", nil),
709709
289: syscalls.ErrorWithEvent("pkey_alloc", linuxerr.ENOSYS, "", nil),
710710
290: syscalls.ErrorWithEvent("pkey_free", linuxerr.ENOSYS, "", nil),

0 commit comments

Comments
 (0)