Re: [PATCH] hw/cxl: Fix read from bogus memory

2024-06-03 Thread Philippe Mathieu-Daudé
On 3/6/24 17:05, Michael S. Tsirkin wrote: On Mon, Jun 03, 2024 at 02:53:35PM +0200, Philippe Mathieu-Daudé wrote: On 31/5/24 18:22, Ira Weiny wrote: Peter and coverity report: We've passed '' to address_space_write(), which means "read from the address on the stack where the

Re: [PATCH] hw/cxl: Fix read from bogus memory

2024-06-03 Thread Michael S. Tsirkin
On Mon, Jun 03, 2024 at 02:53:35PM +0200, Philippe Mathieu-Daudé wrote: > On 31/5/24 18:22, Ira Weiny wrote: > > Peter and coverity report: > > > > We've passed '' to address_space_write(), which means "read > > from the address on the stack where the function argument 'data' > >

Re: [PATCH] hw/cxl: Fix read from bogus memory

2024-06-03 Thread Philippe Mathieu-Daudé
On 31/5/24 18:22, Ira Weiny wrote: Peter and coverity report: We've passed '' to address_space_write(), which means "read from the address on the stack where the function argument 'data' lives", so instead of writing 64 bytes of data to the guest , we'll write 64

Re: [PATCH] hw/cxl: Fix read from bogus memory

2024-06-03 Thread Jonathan Cameron via
On Fri, 31 May 2024 11:22:05 -0500 Ira Weiny wrote: > Peter and coverity report: > > We've passed '' to address_space_write(), which means "read > from the address on the stack where the function argument 'data' > lives", so instead of writing 64 bytes of data to the guest , >

Re: [PATCH] hw/cxl: Fix read from bogus memory

2024-06-02 Thread Michael S. Tsirkin
On Fri, May 31, 2024 at 11:22:05AM -0500, Ira Weiny wrote: > Peter and coverity report: > > We've passed '' to address_space_write(), which means "read > from the address on the stack where the function argument 'data' > lives", so instead of writing 64 bytes of data to the

Re: [PATCH] hw/cxl: Fix read from bogus memory

2024-05-31 Thread Peter Maydell
On Fri, 31 May 2024 at 17:22, Ira Weiny wrote: > > Peter and coverity report: > > We've passed '' to address_space_write(), which means "read > from the address on the stack where the function argument 'data' > lives", so instead of writing 64 bytes of data to the guest ,

[PATCH] hw/cxl: Fix read from bogus memory

2024-05-31 Thread Ira Weiny
Peter and coverity report: We've passed '' to address_space_write(), which means "read from the address on the stack where the function argument 'data' lives", so instead of writing 64 bytes of data to the guest , we'll write 64 bytes which start with a host