aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common.h
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2019-04-10 18:11:44 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-05-31 13:35:25 +0200
commitc054a92ddef28b343db8a733b3e191cf96c28768 (patch)
tree8709cecaf8839ef445a1ad4367ff6ec3dba1fd11 /executor/common.h
parenta8482b78fba29ae70c98729401928daccd5201e0 (diff)
pkg/csource: generate timeouts for USB syzcalls
This patch only covers per call timeouts, per prog one is not adjusted yet.
Diffstat (limited to 'executor/common.h')
-rw-r--r--executor/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/executor/common.h b/executor/common.h
index db2e1204e..642b23102 100644
--- a/executor/common.h
+++ b/executor/common.h
@@ -479,7 +479,7 @@ again:
if (collide && (call % 2) == 0)
break;
#endif
- event_timedwait(&th->done, 45);
+ event_timedwait(&th->done, /*CALL_TIMEOUT*/);
break;
}
}
@@ -619,6 +619,7 @@ static void loop(void)
executed_calls = now_executed;
last_executed = now;
}
+ // TODO: adjust timeout for progs with syz_usb_connect call.
if ((now - start < 5 * 1000) && (now - start < 3 * 1000 || now - last_executed < 1000))
continue;
#else