[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] SCSI improved LBA-out-of-range checks
From: |
Ronnie Sahlberg |
Subject: |
[Qemu-devel] [PATCH] SCSI improved LBA-out-of-range checks |
Date: |
Thu, 12 Jul 2012 16:52:46 +1000 |
Paolo, List
Please find a small patch to the scsi emulation.
This patch improves the checkign that the requested lbas are all available.
We check both that lba+len is not going past the end of the device
but also if lba+len < lba
This second condition could occur for deviously crafted scsi packets where
lba is set to 0xffffffffffffffff and len is set to 2
in which case lba+len would wrap to 1
- [Qemu-devel] [PATCH] SCSI improved LBA-out-of-range checks,
Ronnie Sahlberg <=