aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/csource.go
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 /pkg/csource/csource.go
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 'pkg/csource/csource.go')
-rw-r--r--pkg/csource/csource.go15
1 files changed, 8 insertions, 7 deletions
diff --git a/pkg/csource/csource.go b/pkg/csource/csource.go
index b81bf6b4f..2754686ae 100644
--- a/pkg/csource/csource.go
+++ b/pkg/csource/csource.go
@@ -75,13 +75,14 @@ func Write(p *prog.Prog, opts Options) ([]byte, error) {
}
// Must match timeouts in executor/executor.cc.
specialCallTimeouts := map[string]int{
- "syz_usb_connect": 2000,
- "syz_usb_control_io": 300,
- "syz_usb_ep_write": 300,
- "syz_usb_ep_read": 300,
- "syz_usb_disconnect": 300,
- "syz_open_dev$hiddev": 50,
- "syz_mount_image": 100,
+ "syz_usb_connect": 3000,
+ "syz_usb_connect_ath9k": 3000,
+ "syz_usb_control_io": 300,
+ "syz_usb_ep_write": 300,
+ "syz_usb_ep_read": 300,
+ "syz_usb_disconnect": 300,
+ "syz_open_dev$hiddev": 50,
+ "syz_mount_image": 100,
}
timeoutExpr := "45"
for i, call := range p.Calls {