fuzz: do not use POSIX shm for coverage bitmap
commitdda2f556c3503758680b6a868fc49c4886a5039f
authorAlexander Bulekov <alxndr@bu.edu>
Mon, 22 Jun 2020 16:50:40 +0000 (22 12:50 -0400)
committerThomas Huth <thuth@redhat.com>
Mon, 6 Jul 2020 05:37:02 +0000 (6 07:37 +0200)
tree4baa621568751788cf66acfb4ff939d181948d5d
parent45222b9a9016488289a1938a528239c3b83eddb1
fuzz: do not use POSIX shm for coverage bitmap

We used shm_open with mmap to share libfuzzer's coverage bitmap with
child (runner) processes. The same functionality can be achieved with
MAP_SHARED | MAP_ANONYMOUS, since we do not care about naming or
permissioning the shared memory object.

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Message-Id: <20200622165040.15121-1-alxndr@bu.edu>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/fuzz/fork_fuzz.c