From d89275f2aaa8ae95a2bcb8e8f8b022708d2d6951 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Fri, 13 Mar 2020 00:32:32 +0100 Subject: 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. --- pkg/csource/csource.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'pkg/csource/csource.go') 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 { -- cgit mrf-deployment