From 13c3a9996267a61c26f140209560dc44e32232de Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Wed, 26 Jun 2019 18:28:06 +0200 Subject: sys/linux, executor: add syz_usb_ep_read syzkall syz_usb_ep_read reads data from USB endpoints other than #0. --- executor/executor.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'executor/executor.cc') 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); -- cgit mrf-deployment