diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-05-03 17:20:07 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-05-04 12:34:39 +0200 |
| commit | 3a5604637f3a205052b07863f7157900a8bd936e (patch) | |
| tree | 2842e0ad3fe99a7f4ad03c9ba13d5c720d2fbaba /executor/common_linux.h | |
| parent | 8e1412d59319a19d61ea48985b13ef550e3ab9ec (diff) | |
executor: resolve pseudo syscall compilation problems
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index a2736624a..f9de21c0a 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -111,6 +111,7 @@ static bool write_file(const char* file, const char* what, ...) #if SYZ_EXECUTOR || SYZ_NET_DEVICES || SYZ_NET_INJECTION || SYZ_DEVLINK_PCI || SYZ_WIFI || SYZ_802154 || \ __NR_syz_genetlink_get_family_id || __NR_syz_80211_inject_frame || __NR_syz_80211_join_ibss || SYZ_NIC_VF #include <arpa/inet.h> +#include <errno.h> #include <net/if.h> #include <netinet/in.h> #include <stdbool.h> @@ -2364,7 +2365,9 @@ static long syz_extract_tcp_res(volatile long a0, volatile long a1, volatile lon #define MAX_FDS 30 #endif -#if SYZ_EXECUTOR || __NR_syz_usb_connect || __NR_syz_usb_connect_ath9k +#if SYZ_EXECUTOR || __NR_syz_usb_connect || __NR_syz_usb_connect_ath9k || \ + __NR_syz_usb_ep_write || __NR_syz_usb_ep_read || __NR_syz_usb_control_io || \ + __NR_syz_usb_disconnect #include <errno.h> #include <fcntl.h> #include <linux/usb/ch9.h> @@ -2889,6 +2892,7 @@ static long syz_genetlink_get_family_id(volatile long name, volatile long sock_a #include <errno.h> #include <fcntl.h> #include <linux/loop.h> +#include <stdbool.h> #include <sys/ioctl.h> #include <sys/stat.h> #include <sys/types.h> @@ -5314,6 +5318,7 @@ static volatile long syz_fuse_handle_req(volatile long a0, // /dev/fuse fd. #endif #if SYZ_EXECUTOR || __NR_syz_80211_inject_frame +#include <errno.h> #include <linux/genetlink.h> #include <linux/if_ether.h> #include <linux/nl80211.h> |
