aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2021-08-26 14:34:47 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2021-08-26 19:29:53 +0200
commitb318694d0fc0781d0bc1e3aebfb916aa36731024 (patch)
treebbb634683d76354341bebb3c1c464b9d01c052d9 /executor/executor.cc
parentb599f2fcc734e2183016a340d4f6fc2891d8e41f (diff)
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.
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc2
1 files changed, 0 insertions, 2 deletions
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);