aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2019-06-18 18:55:58 +0200
committerAndrey Konovalov <andreyknvl@gmail.com>2019-06-24 17:24:44 +0200
commitfa26c3cf35b4c8849e53da15351f1941aee227e1 (patch)
treeef72b0d8e7b8ab81ba72571468256ce911aeb11a /pkg/csource
parent35a4434115fb4c8bbf33b3d0bdae863688d9ffde (diff)
sys/linux, executor: add basic USB HID fuzzing support
This commit adds the necessary descriptions and executor adjustments to enable targeted fuzzing of the enumeration process of USB HID devices.
Diffstat (limited to 'pkg/csource')
-rw-r--r--pkg/csource/csource.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/csource/csource.go b/pkg/csource/csource.go
index de99313d2..2a27ed42d 100644
--- a/pkg/csource/csource.go
+++ b/pkg/csource/csource.go
@@ -76,6 +76,7 @@ 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": 200,
"syz_usb_disconnect": 200,
}
timeoutExpr := "45"