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. --- pkg/csource/csource.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/csource/csource.go') diff --git a/pkg/csource/csource.go b/pkg/csource/csource.go index 32fa2b3d1..b81bf6b4f 100644 --- a/pkg/csource/csource.go +++ b/pkg/csource/csource.go @@ -81,6 +81,7 @@ func Write(p *prog.Prog, opts Options) ([]byte, error) { "syz_usb_ep_read": 300, "syz_usb_disconnect": 300, "syz_open_dev$hiddev": 50, + "syz_mount_image": 100, } timeoutExpr := "45" for i, call := range p.Calls { -- cgit mrf-deployment