aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2019-11-18 19:10:37 +0100
committerAndrey Konovalov <andreyknvl@gmail.com>2019-11-19 15:33:25 +0100
commitb7a277d2bab922c7635c4281dcd6cfff76fd5d95 (patch)
tree474f1a52b5b78b9c10dce56338acc9f527107c0b /executor/common_linux.h
parente9c47538a4823830bc493b0137ea889f46452cf7 (diff)
executor: extend USB debug messages
When USB_DEBUG is enabled, syzkaller crashes on unknown USB requests. This helps to find missing descriptions for particular USB classes.
Diffstat (limited to 'executor/common_linux.h')
-rw-r--r--executor/common_linux.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index ee31b2061..38b67ef3e 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -72,7 +72,7 @@ static int event_timedwait(event_t* ev, uint64 timeout)
#if SYZ_EXECUTOR || SYZ_REPEAT || SYZ_NET_INJECTION || SYZ_FAULT || SYZ_SANDBOX_NONE || \
SYZ_SANDBOX_SETUID || SYZ_SANDBOX_NAMESPACE || SYZ_SANDBOX_ANDROID || \
- SYZ_FAULT || SYZ_LEAK || SYZ_BINFMT_MISC
+ SYZ_FAULT || SYZ_LEAK || SYZ_BINFMT_MISC || (__NR_syz_usb_connect && USB_DEBUG)
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>