aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common.h
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2020-03-13 00:32:32 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-03-13 07:44:43 +0100
commitd89275f2aaa8ae95a2bcb8e8f8b022708d2d6951 (patch)
tree9dd63965cdab5e5e3e3d041fa39aba4072d57a50 /executor/common.h
parentd850e9d08467726cd94b6a9caaf8090c594721ba (diff)
executor, sys/linux: add ath9k usb descriptions
Among other things this changes timeout for USB programs from 2 to 3 seconds. ath9k fuzzing also requires ath9k firmware to be present, so system images need to be regenerated with the updated script.
Diffstat (limited to 'executor/common.h')
-rw-r--r--executor/common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/executor/common.h b/executor/common.h
index c79221de2..8591110be 100644
--- a/executor/common.h
+++ b/executor/common.h
@@ -41,7 +41,8 @@ NORETURN void doexit(int status)
#if SYZ_EXECUTOR || SYZ_MULTI_PROC || SYZ_REPEAT && SYZ_CGROUPS || \
SYZ_NET_DEVICES || __NR_syz_mount_image || __NR_syz_read_part_table || \
- __NR_syz_usb_connect || (GOOS_freebsd || GOOS_openbsd || GOOS_netbsd) && SYZ_NET_INJECTION
+ __NR_syz_usb_connect || __NR_syz_usb_connect_ath9k || \
+ (GOOS_freebsd || GOOS_openbsd || GOOS_netbsd) && SYZ_NET_INJECTION
static unsigned long long procid;
#endif
@@ -138,7 +139,7 @@ static void kill_and_wait(int pid, int* status)
#if !GOOS_windows
#if SYZ_EXECUTOR || SYZ_THREADED || SYZ_REPEAT && SYZ_EXECUTOR_USES_FORK_SERVER || \
- __NR_syz_usb_connect
+ __NR_syz_usb_connect || __NR_syz_usb_connect_ath9k
static void sleep_ms(uint64 ms)
{
usleep(ms * 1000);