aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2020-10-02 12:01:39 +0300
committerDmitry Vyukov <dvyukov@google.com>2020-10-05 15:05:59 +0200
commitc08b5b69b246ffabf41061b686968f4391146b4b (patch)
treeaf02a53fca9e40a91d7b88b07c5aed6a1e108141 /executor/executor.cc
parenta9f27fea2a48250098012d797d6f83500c35a67b (diff)
executor: increase prog_extra_cover_timeout for progs that inject 802.11 frames
This is required because we can only collect remote kcov coverage for these injected frames.
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 174d4bb15..e759a7083 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -722,7 +722,9 @@ retry:
if (prog_extra_timeout < call->attrs.prog_timeout)
prog_extra_timeout = call->attrs.prog_timeout;
if (strncmp(syscalls[call_num].name, "syz_usb", strlen("syz_usb")) == 0)
- prog_extra_cover_timeout = 500;
+ prog_extra_cover_timeout = std::max(prog_extra_cover_timeout, (uint64)500);
+ if (strncmp(syscalls[call_num].name, "syz_80211_inject_frame", strlen("syz_80211_inject_frame")) == 0)
+ prog_extra_cover_timeout = std::max(prog_extra_cover_timeout, (uint64)300);
uint64 copyout_index = read_input(&input_pos);
uint64 num_args = read_input(&input_pos);
if (num_args > kMaxArgs)