From b318694d0fc0781d0bc1e3aebfb916aa36731024 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 26 Aug 2021 14:34:47 +0000 Subject: executor: fix remote coverage collection Currently the data_offset field of cover_t is only initialized for per-syscall coverage collection. As a result, remote coverage is read from an invalid location, fails to pass sanity checks and is not returned to syzkaller. Fix the initialization of cover_t fields. --- executor/executor.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index 254a5d74a..e35e48189 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -1113,8 +1113,6 @@ void thread_create(thread_t* th, int id) th->created = true; th->id = id; th->executing = false; - th->cov.data_offset = is_kernel_64_bit ? sizeof(uint64_t) : sizeof(uint32_t); - th->cov.pc_offset = 0; event_init(&th->ready); event_init(&th->done); event_set(&th->done); -- cgit mrf-deployment