diff options
| author | Alon Zahavi <zahavi.alon@gmail.com> | 2023-11-28 11:15:26 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-12-07 10:16:22 +0000 |
| commit | 28b24332d95f2f7df44ec7e7a5e0025bcadc6277 (patch) | |
| tree | 0fd034868b3b507331a8c1fe6acddf9bd5a8df1c /pkg/host/syscalls_linux.go | |
| parent | 0a02ce36aee886cafdc6907db66a49859cf17caf (diff) | |
sys/linux, pkg/host, executor: add NVMe-oF/TCP subsystem support
Add new pseudo-syscall for creating a socket in init netns and connecting to
NVMe-oF/TCP server on 127.0.0.1:4420. Also add descriptions for NVMe-oF/TCP.
Diffstat (limited to 'pkg/host/syscalls_linux.go')
| -rw-r--r-- | pkg/host/syscalls_linux.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/host/syscalls_linux.go b/pkg/host/syscalls_linux.go index 7037dc001..b1bcbfb8b 100644 --- a/pkg/host/syscalls_linux.go +++ b/pkg/host/syscalls_linux.go @@ -230,6 +230,10 @@ func isSyzInitNetSocketSupported(c *prog.Syscall, target *prog.Target, sandbox s return isSupportedSocket(c) } +func isSyzSocketConnectNvmeTCPSupported(c *prog.Syscall, target *prog.Target, sandbox string) (bool, string) { + return onlySandboxNone(sandbox) +} + func isSyzGenetlinkGetFamilyIDSupported(c *prog.Syscall, target *prog.Target, sandbox string) (bool, string) { fd, err := syscall.Socket(syscall.AF_NETLINK, syscall.SOCK_RAW, syscall.NETLINK_GENERIC) if fd == -1 { @@ -322,6 +326,7 @@ var syzkallSupport = map[string]func(*prog.Syscall, *prog.Target, string) (bool, "syz_clone": alwaysSupported, "syz_clone3": alwaysSupported, "syz_pkey_set": isSyzPkeySetSupported, + "syz_socket_connect_nvme_tcp": isSyzSocketConnectNvmeTCPSupported, } func isSupportedSyzkall(c *prog.Syscall, target *prog.Target, sandbox string) (bool, string) { |
