From cb704a294c54aed90281c016a6dc0c40ae295601 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 10 Dec 2019 16:04:18 +0100 Subject: 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. --- executor/executor.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'executor/executor.cc') 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) -- cgit mrf-deployment