From b566f4bca32045dd5c56f5566754b0d8b970cac6 Mon Sep 17 00:00:00 2001 From: Ruihan Li Date: Mon, 19 Jan 2026 23:32:51 +0800 Subject: [PATCH] Triage some gvisor tests --- test/initramfs/src/syscall/gvisor/blocklists/inotify_test | 8 +++++--- .../gvisor/blocklists/socket_unix_dgram_local_test | 1 + .../src/syscall/gvisor/blocklists/socket_unix_pair_test | 3 --- .../gvisor/blocklists/socket_unix_seqpacket_local_test | 1 + .../src/syscall/gvisor/blocklists/socket_unix_stream_test | 3 +-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/initramfs/src/syscall/gvisor/blocklists/inotify_test b/test/initramfs/src/syscall/gvisor/blocklists/inotify_test index bf342e4fa..9bd5d47fa 100644 --- a/test/initramfs/src/syscall/gvisor/blocklists/inotify_test +++ b/test/initramfs/src/syscall/gvisor/blocklists/inotify_test @@ -1,7 +1,5 @@ -# TODO: Generate `DELETE_SELF`/`IGNORED` after closing the last FD. +# TODO: Generate `CLOSE`/`CLOSE_NOWRITE` after closing the last FD. Inotify.DupFD -Inotify.IncludeUnlinkedFile -Inotify.IncludeUnlinkedFile_NoRandomSave # Symbolic links to the busybox binary does not work: # "gvisor_test_temp_1103_1767603858010282988: applet not found" @@ -17,6 +15,10 @@ Inotify.ExcludeUnlinkInodeEvents_NoRandomSave Inotify.ExcludeUnlinkMultipleChildren Inotify.ExcludeUnlinkMultipleChildren_NoRandomSave +# TODO: Generate `DELETE_SELF`/`IGNORED` after closing the last FD. +Inotify.IncludeUnlinkedFile +Inotify.IncludeUnlinkedFile_NoRandomSave + # TODO: Report `MOVE_*` events at the `rename()` system call. Inotify.MoveGeneratesEvents Inotify.MoveWatchedTargetGeneratesEvents diff --git a/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_dgram_local_test b/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_dgram_local_test index ed8c77acd..dc1e358ae 100644 --- a/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_dgram_local_test +++ b/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_dgram_local_test @@ -12,4 +12,5 @@ DgramUnixSockets/NonStreamSocketPairTest.MsgTruncTruncationRecvmsgMsghdrFlagMsgT DgramUnixSockets/NonStreamSocketPairTest.RecvmsgMsgTruncZeroLen/* DgramUnixSockets/NonStreamSocketPairTest.RecvmsgMsgTruncMsgPeekZeroLen/* +# TODO: Implement `SO_SNDBUF` behavior DgramUnixSockets/DgramUnixSocketPairTest.IncreasedSocketSendBufUnblocksWrites/* diff --git a/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_pair_test b/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_pair_test index 2b8ac0d37..e5342d46d 100644 --- a/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_pair_test +++ b/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_pair_test @@ -6,9 +6,6 @@ AllUnixDomainSockets/UnixSocketPairTest.TIOCINQSucceeds/* AllUnixDomainSockets/UnixSocketPairTest.TIOCOUTQSucceeds/* AllUnixDomainSockets/UnixSocketPairTest.NetdeviceIoctlsSucceed/* -# TODO: Fix operations on `/proc/*/fd/*` -AllUnixDomainSockets/UnixSocketPairTest.SocketReopenFromProcfs/* - # TODO: Report `MSG_(C)TRUNC` after truncating the (control) message AllUnixDomainSockets/UnixSocketPairCmsgTest.BasicFDPassNoSpaceMsgCtrunc/* AllUnixDomainSockets/UnixSocketPairCmsgTest.BasicFDPassNullControlMsgCtrunc/* diff --git a/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_seqpacket_local_test b/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_seqpacket_local_test index 20184384b..e2d323139 100644 --- a/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_seqpacket_local_test +++ b/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_seqpacket_local_test @@ -12,4 +12,5 @@ SeqpacketUnixSockets/NonStreamSocketPairTest.MsgTruncTruncationRecvmsgMsghdrFlag SeqpacketUnixSockets/NonStreamSocketPairTest.RecvmsgMsgTruncZeroLen/* SeqpacketUnixSockets/NonStreamSocketPairTest.RecvmsgMsgTruncMsgPeekZeroLen/* +# TODO: Implement `SO_SNDBUF` behavior SeqpacketUnixSockets/SeqpacketUnixSocketPairTest.IncreasedSocketSendBufUnblocksWrites/* diff --git a/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_stream_test b/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_stream_test index cf984a53e..3a51b79a6 100644 --- a/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_stream_test +++ b/test/initramfs/src/syscall/gvisor/blocklists/socket_unix_stream_test @@ -4,8 +4,7 @@ AllUnixDomainSockets/StreamUnixSocketPairTest.RecvmsgOneSideClosed/* # TODO: Support `ECONNRESET` errors on UNIX sockets AllUnixDomainSockets/StreamUnixSocketPairTest.ReadOneSideClosedWithUnreadData/* +# TODO: Implement `SO_SNDBUF` behavior AllUnixDomainSockets/StreamUnixSocketPairTest.IncreasedSocketSendBufUnblocksWrites/* - AllUnixDomainSockets/StreamUnixSocketPairTest.SendBufferOverflow/* - AllUnixDomainSockets/StreamUnixSocketPairTest.SetSocketSendBuf/*