diff options
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index e83bad6c0..f53a0e781 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -2046,8 +2046,11 @@ static long syz_usbip_server_init(volatile long a0) bool usb3 = (speed == USB_SPEED_SUPER); int socket_pair[2]; - if (socketpair(AF_UNIX, SOCK_STREAM, 0, socket_pair)) - fail("syz_usbip_server_init: socketpair failed"); + if (socketpair(AF_UNIX, SOCK_STREAM, 0, socket_pair)) { + // This can happen if the test calls prlimit(RLIMIT_AS). + debug("syz_usbip_server_init: socketpair failed (%d)\n", errno); + return -1; + } int client_fd = socket_pair[0]; int server_fd = socket_pair[1]; |
