Files
qemu-ios/linux-user
Peter Maydell a4a2c51f90 linux-user: Correct type for BLKSSZGET
The BLKSSZGET ioctl takes an argument which is a pointer to an int.
We were incorrectly declaring it to take a pointer to a long, which
meant that we would incorrectly write to memory which we should not
if the guest is a 64-bit architecture.

In particular, kpartx uses this ioctl to write to an int on the
stack, which tends to result in it crashing immediately.

Reported-by: Chanho Park <chanho61.park@samsung.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2016-07-19 15:23:16 +03:00
..
2016-06-16 18:39:03 +02:00
…
2016-01-29 15:07:22 +00:00
2016-01-29 15:07:22 +00:00
2016-06-16 18:39:03 +02:00
2016-06-26 13:17:21 +03:00
2016-01-29 15:07:22 +00:00
2016-01-29 15:07:22 +00:00