aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-12-10 16:04:18 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-12-10 16:08:35 +0100
commitcb704a294c54aed90281c016a6dc0c40ae295601 (patch)
tree4aac076186076a786c43b9bdf584c980747d0617 /executor/executor.cc
parent5a5826a14e99564bdd4de163d3ac368056e5d992 (diff)
executor: fix syz_mount_image
1. It always crashed in cover_reset when coverage is disabled. 2. Use NONFAILING when accessing image segments. 3. Give it additional 100 ms as it may be slow. 4. Add a test for syz_mount_image.
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index c8a4b8b2e..c0e332190 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -709,6 +709,8 @@ retry:
call_extra_timeout = 300;
if (strncmp(syscalls[call_num].name, "syz_open_dev$hiddev", strlen("syz_open_dev$hiddev")) == 0)
call_extra_timeout = 50;
+ if (strncmp(syscalls[call_num].name, "syz_mount_image", strlen("syz_mount_image")) == 0)
+ call_extra_timeout = 50;
uint64 copyout_index = read_input(&input_pos);
uint64 num_args = read_input(&input_pos);
if (num_args > kMaxArgs)