e6c9c9e7f4
Peter and coverity report:
We've passed '&data' 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 pointer value and
then continue with whatever happens to be on the host stack
after that.
Indeed the intention was to write 64 bytes of data at the address given.
Fix the parameter to address_space_write().
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Link: https://lore.kernel.org/all/CAFEAcA-u4sytGwTKsb__Y+_+0O2-WwARntm3x8WNhvL1WfHOBg@mail.gmail.com/
Fixes:
|
||
---|---|---|
.. | ||
cxl_type3_stubs.c | ||
cxl_type3.c | ||
Kconfig | ||
memory-device-stubs.c | ||
memory-device.c | ||
meson.build | ||
npcm7xx_mc.c | ||
nvdimm.c | ||
pc-dimm.c | ||
sparse-mem.c | ||
trace-events | ||
trace.h |