aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2019-06-26 18:28:06 +0200
committerAndrey Konovalov <andreyknvl@gmail.com>2019-07-01 17:26:35 +0200
commit13c3a9996267a61c26f140209560dc44e32232de (patch)
treec518191adc0373857b65ba27306a4a0e01bbf2a0 /executor/executor.cc
parentdf9270ba7fd47318a5406fa3d0a3e1e97f455067 (diff)
sys/linux, executor: add syz_usb_ep_read syzkall
syz_usb_ep_read reads data from USB endpoints other than #0.
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 597f6d656..e104fc897 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -608,11 +608,19 @@ retry:
}
if (strncmp(syscalls[call_num].name, "syz_usb_control_io", strlen("syz_usb_control_io")) == 0) {
// Must match timeout in pkg/csource/csource.go.
- call_extra_timeout = 200;
+ call_extra_timeout = 300;
+ }
+ if (strncmp(syscalls[call_num].name, "syz_usb_ep_write", strlen("syz_usb_ep_write")) == 0) {
+ // Must match timeout in pkg/csource/csource.go.
+ call_extra_timeout = 300;
+ }
+ if (strncmp(syscalls[call_num].name, "syz_usb_ep_read", strlen("syz_usb_ep_read")) == 0) {
+ // Must match timeout in pkg/csource/csource.go.
+ call_extra_timeout = 300;
}
if (strncmp(syscalls[call_num].name, "syz_usb_disconnect", strlen("syz_usb_disconnect")) == 0) {
// Must match timeout in pkg/csource/csource.go.
- call_extra_timeout = 200;
+ call_extra_timeout = 300;
}
if (call_num == instr_copyin) {
char* addr = (char*)read_input(&input_pos);