gvisor/test/syscalls/linux
Nayana Bidari 9338854ea3 Fix the error code for syscall test with null TOS.
The setsockopt with nullptr can fail with either EFAULT or zero.

PiperOrigin-RevId: 315777107
2020-06-10 15:06:45 -07:00
..
rseq Merge pull request #2060 from xiaobo55x:rseq 2020-04-20 12:31:22 -07:00
32bit.cc arm64: add a travis build ci 2020-02-21 22:44:19 -08:00
BUILD Implement flock(2) in VFS2 2020-06-09 18:46:42 -07:00
accept_bind.cc
accept_bind_stream.cc Import and structure cleanup. 2019-11-21 11:41:30 -08:00
access.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
affinity.cc
aio.cc
alarm.cc
arch_prctl.cc
bad.cc
base_poll_test.cc
base_poll_test.h Internal change. 2019-08-29 14:01:47 -07:00
bind.cc
brk.cc
chdir.cc
chmod.cc Import and structure cleanup. 2019-11-21 11:41:30 -08:00
chown.cc
chroot.cc Add notes to relevant tests. 2020-02-05 22:46:35 -08:00
clock_getres.cc
clock_gettime.cc
clock_nanosleep.cc
concurrency.cc
connect_external.cc
creat.cc
dev.cc
dup.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
epoll.cc
eventfd.cc
exceptions.cc
exec.cc Unshare files on exec 2020-06-05 14:45:32 -07:00
exec.h Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
exec_assert_closed_workload.cc
exec_basic_workload.cc
exec_binary.cc
exec_proc_exe_workload.cc Add notes to relevant tests. 2020-02-05 22:46:35 -08:00
exec_state_workload.cc
exit.cc Extract SleepSafe from test_util 2019-05-24 12:58:46 -07:00
exit_script.sh
fadvise64.cc
fallocate.cc Deflake fallocate syscall test. 2020-02-18 12:02:05 -08:00
fault.cc
fchdir.cc
fcntl.cc
file_base.h
flock.cc
fork.cc
fpsig_fork.cc
fpsig_nested.cc Fix header ordering and format all C++ code. 2020-01-27 18:27:20 -08:00
fsync.cc
futex.cc
getcpu.cc
getdents.cc
getrandom.cc
getrusage.cc
inotify.cc Add inotify events for extended attributes and splice. 2020-06-01 18:31:59 -07:00
ioctl.cc Implement F_GETOWN_EX and F_SETOWN_EX. 2019-12-05 17:28:52 -08:00
ip_socket_test_util.cc
ip_socket_test_util.h
iptables.cc Read iptables via sockopts. 2019-08-19 10:05:59 -07:00
iptables.h Prefer Type& over Type & 2020-01-28 11:18:17 -08:00
itimer.cc
kill.cc
link.cc
lseek.cc Cleanup for syscall tests on arm64. 2020-03-31 13:39:38 +08:00
madvise.cc Prefer Type& over Type & 2020-01-28 11:18:17 -08:00
memfd.cc
memory_accounting.cc
mempolicy.cc
mincore.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
mkdir.cc
mknod.cc
mlock.cc Cleanup for syscall tests on arm64. 2020-03-31 13:39:38 +08:00
mmap.cc Cleanup for syscall tests on arm64. 2020-03-31 13:39:38 +08:00
mount.cc
mremap.cc
msync.cc
munmap.cc
network_namespace.cc
open.cc
open_create.cc
packet_socket.cc
packet_socket_raw.cc
partial_bad_buffer.cc
pause.cc
ping_socket.cc
pipe.cc Don't unlink named pipes in pipe test. 2020-04-28 11:28:44 -07:00
poll.cc Fix error code returned due to Port exhaustion. 2020-06-05 13:43:01 -07:00
ppoll.cc
prctl.cc
prctl_setuid.cc
pread64.cc
preadv.cc
preadv2.cc Merge pull request #1471 from xiaobo55x:syscall_test 2020-01-30 16:12:25 -08:00
priority.cc
priority_execve.cc
proc.cc Deflake //third_party/gvisor/test/syscalls:proc_test_native 2020-05-04 12:58:24 -07:00
proc_net.cc proc net test: Annotate disable-save test with NoRandomSave. 2020-04-17 10:34:57 -07:00
proc_net_tcp.cc
proc_net_udp.cc Change to standard types. 2020-01-21 17:28:57 -08:00
proc_net_unix.cc
proc_pid_oomscore.cc
proc_pid_smaps.cc
proc_pid_uid_gid_map.cc
pselect.cc
ptrace.cc Enable syscall ptrace test on arm64. 2020-04-10 10:00:26 +08:00
pty.cc
pty_root.cc
pwrite64.cc
pwritev2.cc
raw_socket_hdrincl.cc
raw_socket_icmp.cc
raw_socket_ipv4.cc
read.cc
readahead.cc
readv.cc
readv_common.cc
readv_common.h
readv_socket.cc Clean up readv_socket test suite. 2019-12-03 19:42:20 -08:00
rename.cc
rlimits.cc
rseq.cc Add notes to relevant tests. 2020-02-05 22:46:35 -08:00
rtsignal.cc Add basic microbenchmarks. 2020-02-19 18:21:54 -08:00
sched.cc
sched_yield.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
seccomp.cc
select.cc
semaphore.cc
sendfile.cc
sendfile_socket.cc splice: cap splice calls to MAX_RW_COUNT 2020-04-08 23:03:12 -07:00
shm.cc
sigaction.cc
sigaltstack.cc
sigaltstack_check.cc
sigiret.cc
signalfd.cc
sigprocmask.cc Add notes to relevant tests. 2020-02-05 22:46:35 -08:00
sigstop.cc
sigtimedwait.cc Add basic microbenchmarks. 2020-02-19 18:21:54 -08:00
socket.cc Skip socket tests only if running on vfs1. 2020-05-21 16:32:48 -07:00
socket_abstract.cc
socket_bind_to_device.cc
socket_bind_to_device_distribution.cc
socket_bind_to_device_sequence.cc
socket_bind_to_device_util.cc
socket_bind_to_device_util.h
socket_blocking.cc
socket_blocking.h
socket_filesystem.cc
socket_generic.cc
socket_generic.h Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
socket_generic_stress.cc
socket_inet_loopback.cc
socket_inet_loopback_nogotsan.cc
socket_ip_loopback_blocking.cc
socket_ip_tcp_generic.cc
socket_ip_tcp_generic.h Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
socket_ip_tcp_generic_loopback.cc
socket_ip_tcp_loopback.cc
socket_ip_tcp_loopback_blocking.cc Wrap all GetSocketPairs() in unnamed namespaces 2020-01-30 14:17:58 -08:00
socket_ip_tcp_loopback_nonblock.cc
socket_ip_tcp_udp_generic.cc
socket_ip_udp_generic.cc
socket_ip_udp_generic.h
socket_ip_udp_loopback.cc
socket_ip_udp_loopback_blocking.cc
socket_ip_udp_loopback_nonblock.cc
socket_ip_unbound.cc
socket_ipv4_tcp_unbound_external_networking.cc
socket_ipv4_tcp_unbound_external_networking.h Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
socket_ipv4_tcp_unbound_external_networking_test.cc Refactor syscall tests 2020-02-07 13:19:18 -08:00
socket_ipv4_udp_unbound.cc Fix error code returned due to Port exhaustion. 2020-06-05 13:43:01 -07:00
socket_ipv4_udp_unbound.h Add tests for SO_REUSEADDR and SO_REUSEPORT. 2019-11-12 14:04:14 -08:00
socket_ipv4_udp_unbound_external_networking.cc
socket_ipv4_udp_unbound_external_networking.h Make some functions in IfAddrHelper const. 2020-04-09 16:22:02 -07:00
socket_ipv4_udp_unbound_external_networking_test.cc Refactor syscall tests 2020-02-07 13:19:18 -08:00
socket_ipv4_udp_unbound_loopback.cc
socket_netdevice.cc
socket_netlink.cc
socket_netlink_route.cc
socket_netlink_route_util.cc
socket_netlink_route_util.h Dedup netlink utility functions in tests. 2020-04-09 13:34:31 -07:00
socket_netlink_uevent.cc
socket_netlink_util.cc
socket_netlink_util.h
socket_non_blocking.cc
socket_non_blocking.h
socket_non_stream.cc
socket_non_stream.h
socket_non_stream_blocking.cc
socket_non_stream_blocking.h
socket_stream.cc Return correct length with MSG_TRUNC for unix sockets. 2020-01-08 17:24:05 -08:00
socket_stream.h Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
socket_stream_blocking.cc Fix header ordering and format all C++ code. 2020-01-27 18:27:20 -08:00
socket_stream_blocking.h
socket_stream_nonblock.cc
socket_stream_nonblock.h Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
socket_test_util.cc
socket_test_util.h
socket_test_util_impl.cc
socket_unix.cc
socket_unix.h Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
socket_unix_abstract_nonblock.cc
socket_unix_blocking_local.cc
socket_unix_cmsg.cc
socket_unix_cmsg.h
socket_unix_dgram.cc
socket_unix_dgram.h
socket_unix_dgram_local.cc
socket_unix_dgram_non_blocking.cc
socket_unix_domain.cc
socket_unix_filesystem_nonblock.cc
socket_unix_non_stream.cc
socket_unix_non_stream.h
socket_unix_non_stream_blocking_local.cc
socket_unix_pair.cc
socket_unix_pair_nonblock.cc
socket_unix_seqpacket.cc
socket_unix_seqpacket.h Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
socket_unix_seqpacket_local.cc
socket_unix_stream.cc
socket_unix_stream_blocking_local.cc
socket_unix_stream_local.cc
socket_unix_stream_nonblock_local.cc
socket_unix_unbound_abstract.cc Import and structure cleanup. 2019-11-21 11:41:30 -08:00
socket_unix_unbound_dgram.cc
socket_unix_unbound_filesystem.cc
socket_unix_unbound_seqpacket.cc
socket_unix_unbound_stream.cc Import and structure cleanup. 2019-11-21 11:41:30 -08:00
splice.cc
stat.cc
stat_times.cc
statfs.cc
sticky.cc Open a temp directory before changing capabilities and user ID-s 2020-03-24 10:58:51 -07:00
symlink.cc Resolve remaining TODOs for tmpfs. 2020-05-13 17:36:37 -07:00
sync.cc Import and structure cleanup. 2019-11-21 11:41:30 -08:00
sync_file_range.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
sysinfo.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
syslog.cc
sysret.cc Merge pull request #2177 from xiaobo55x:sysret_test 2020-03-26 11:37:45 -07:00
tcp_socket.cc
tgkill.cc
time.cc skip vsyscall test cases on Arm64 2020-02-28 14:47:50 +08:00
timerfd.cc
timers.cc
tkill.cc Add notes to relevant tests. 2020-02-05 22:46:35 -08:00
truncate.cc
tuntap.cc
tuntap_hostinet.cc test/runner: use proper filters for test cases 2020-03-04 12:52:13 -08:00
udp_bind.cc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
udp_socket.cc
udp_socket_errqueue_test_case.cc
udp_socket_test_cases.cc
udp_socket_test_cases.h
uidgid.cc
uname.cc
unix_domain_socket_test_util.cc
unix_domain_socket_test_util.h
unlink.cc
unshare.cc
utimes.cc
vdso.cc
vdso_clock_gettime.cc
vfork.cc
vsyscall.cc
wait.cc Change to standard types. 2020-01-21 17:28:57 -08:00
write.cc
xattr.cc