Re: [PATCH] fuzz: fix sparse memory access in the DMA callback

2021-07-06 Thread Philippe Mathieu-Daudé
On 7/6/21 6:17 PM, Alexander Bulekov wrote: > The code mistakenly relied on address_space_translate to store the > length remaining until the next memory-region. We care about this > because when there is RAM or sparse-memory neighboring on an MMIO > region, we should only write up to the border, t

Re: [PATCH] fuzz: fix sparse memory access in the DMA callback

2021-07-06 Thread Darren Kenny
On Tuesday, 2021-07-06 at 12:17:35 -04, Alexander Bulekov wrote: > The code mistakenly relied on address_space_translate to store the > length remaining until the next memory-region. We care about this > because when there is RAM or sparse-memory neighboring on an MMIO > region, we should only writ

[PATCH] fuzz: fix sparse memory access in the DMA callback

2021-07-06 Thread Alexander Bulekov
The code mistakenly relied on address_space_translate to store the length remaining until the next memory-region. We care about this because when there is RAM or sparse-memory neighboring on an MMIO region, we should only write up to the border, to prevent inadvertently invoking MMIO handlers withi