Re: [PATCH] softmmu: Use memmove in flatview_write_continue

2023-01-30 Thread Alexander Bulekov
On 230130 1528, Peter Xu wrote: > On Mon, Jan 30, 2023 at 03:03:00PM -0500, Alexander Bulekov wrote: > > On 230130 2251, Akihiko Odaki wrote: > > > We found a case where the source passed to flatview_write_continue() may > > > overlap with the destination when fuzzing igb, a new proposed network >

Re: [PATCH] softmmu: Use memmove in flatview_write_continue

2023-01-30 Thread Philippe Mathieu-Daudé
On 30/1/23 14:51, Akihiko Odaki wrote: We found a case where the source passed to flatview_write_continue() may overlap with the destination when fuzzing igb, a new proposed network device with sanitizers. igb uses pci_dma_map() to get Tx packet, and pci_dma_write() to write Rx buffer. While

Re: [PATCH] softmmu: Use memmove in flatview_write_continue

2023-01-30 Thread Peter Xu
On Mon, Jan 30, 2023 at 03:03:00PM -0500, Alexander Bulekov wrote: > On 230130 2251, Akihiko Odaki wrote: > > We found a case where the source passed to flatview_write_continue() may > > overlap with the destination when fuzzing igb, a new proposed network > > device with sanitizers. > > > > igb

Re: [PATCH] softmmu: Use memmove in flatview_write_continue

2023-01-30 Thread Alexander Bulekov
On 230130 2251, Akihiko Odaki wrote: > We found a case where the source passed to flatview_write_continue() may > overlap with the destination when fuzzing igb, a new proposed network > device with sanitizers. > > igb uses pci_dma_map() to get Tx packet, and pci_dma_write() to write Rx > buffer.

Re: [PATCH] softmmu: Use memmove in flatview_write_continue

2023-01-30 Thread Peter Xu
On Mon, Jan 30, 2023 at 10:51:52PM +0900, Akihiko Odaki wrote: > We found a case where the source passed to flatview_write_continue() may > overlap with the destination when fuzzing igb, a new proposed network > device with sanitizers. > > igb uses pci_dma_map() to get Tx packet, and

[PATCH] softmmu: Use memmove in flatview_write_continue

2023-01-30 Thread Akihiko Odaki
We found a case where the source passed to flatview_write_continue() may overlap with the destination when fuzzing igb, a new proposed network device with sanitizers. igb uses pci_dma_map() to get Tx packet, and pci_dma_write() to write Rx buffer. While pci_dma_write() is usually used to write