qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] check SCSI read/write requests against max LBA


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] check SCSI read/write requests against max LBA
Date: Thu, 29 Jan 2009 13:59:16 -0600
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Rik van Riel wrote:
The bdrv layer uses a signed offset. Furthermore, block-raw-posix
only seeks when that offset is positive. Passing a negative offset
to block-raw-posix can result in data being written at the current
seek cursor's position.

It may be possible to exploit this to seek to the end of the disk
and extend the virtual disk by writing data to a negative sector
offset.  After a reboot, this could lead to the guest having a
larger disk than it had before.

Close the hole by sanity checking the lba against the size of the
disk.

Signed-off-by: Rik van Riel <address@hidden>
Applied.  Thanks.

Regards,

Anthony Liguori





reply via email to

[Prev in Thread] Current Thread [Next in Thread]