qemu-e2k/softmmu
Alexander Bulekov fc1c8344e6 fuzz: ignore address_space_map is_write flag
We passed an is_write flag to the fuzz_dma_read_cb function to
differentiate between the mapped DMA regions that need to be populated
with fuzzed data, and those that don't. We simply passed through the
address_space_map is_write parameter. The goal was to cut down on
unnecessarily populating mapped DMA regions, when they are not read
from.

Unfortunately, nothing precludes code from reading from regions mapped
with is_write=true. For example, see:
https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg04729.html

This patch removes the is_write parameter to fuzz_dma_read_cb. As a
result, we will fill all mapped DMA regions with fuzzed data, ignoring
the specified transfer direction.

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Message-Id: <20210120060255.558535-1-alxndr@bu.edu>
2021-02-08 14:43:54 +01:00
..
arch_init.c 8bit AVR port from Michael Rolnik. 2020-07-11 19:27:59 +01:00
balloon.c qapi: Restrict balloon-related commands to machine code 2020-09-29 15:41:35 +02:00
bootdevice.c softmmu: move more files to softmmu/ 2020-10-12 11:50:21 -04:00
cpu-throttle.c qemu/atomic.h: rename atomic_ to qatomic_ 2020-09-23 16:07:44 +01:00
cpu-timers.c cpus: prepare new CpusAccel cpu accelerator interface 2020-10-05 16:41:22 +02:00
cpus.c accel: replace struct CpusAccel with AccelOpsClass 2021-02-05 10:24:15 -10:00
datadir.c vl: extract softmmu/datadir.c 2020-12-10 12:15:18 -05:00
device_tree.c vl: make qemu_get_machine_opts static 2020-12-15 12:51:55 -05:00
dma-helpers.c dma: Let dma_memory_set() propagate MemTxResult 2020-12-10 12:15:01 -05:00
globals.c qmp: generalize watchdog-set-action to -no-reboot/-no-shutdown 2020-12-15 12:51:57 -05:00
icount.c accel/tcg: split CpusAccel into three TCG variants 2020-12-10 17:44:10 -06:00
ioport.c softmmu: Add missing trace-events file 2020-09-09 17:15:18 +01:00
main.c meson: move SDL and SDL-image detection to meson 2020-08-21 06:30:44 -04:00
memory.c fuzz: ignore address_space_map is_write flag 2021-02-08 14:43:54 +01:00
memory_mapping.c softmmu: move softmmu only files from root 2020-07-10 18:02:24 -04:00
meson.build seccomp: convert to meson 2021-01-06 10:21:20 +01:00
physmem.c fuzz: ignore address_space_map is_write flag 2021-02-08 14:43:54 +01:00
qdev-monitor.c clock: Define and use new clock_display_freq() 2021-01-04 23:24:44 +01:00
qemu-seccomp.c seccomp: convert to meson 2021-01-06 10:21:20 +01:00
qtest.c accel: extend AccelState and AccelClass to user-mode 2021-02-05 10:24:15 -10:00
rtc.c qom: Allow optional sugar props 2021-02-08 16:57:37 +11:00
runstate-action.c runstate: cleanup reboot and panic actions 2021-01-21 13:00:41 +01:00
runstate.c block: move blk_exp_close_all() to qemu_cleanup() 2021-02-02 13:23:47 +01:00
timers-state.h cpu-timers, icount: new modules 2020-10-05 16:41:22 +02:00
tpm.c qapi: More complex uses of QAPI_LIST_APPEND 2021-01-28 08:08:45 +01:00
trace-events softmmu: Add missing trace-events file 2020-09-09 17:15:18 +01:00
trace.h softmmu: Add missing trace-events file 2020-09-09 17:15:18 +01:00
vl.c confidential guest support: Introduce cgs "ready" flag 2021-02-08 16:57:38 +11:00