On Wednesday, 2021-01-20 at 01:02:55 -05, Alexander Bulekov wrote: > 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 <alx...@bu.edu>
Reviewed-by: Darren Kenny <darren.ke...@oracle.com>