qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] SCSI improved LBA-out-of-range checks
@ 2012-07-12  6:52 Ronnie Sahlberg
  2012-07-12  6:52 ` [Qemu-devel] [PATCH] SCSI: improve the lba-out-of-range tests for read/write/verify Ronnie Sahlberg
  0 siblings, 1 reply; 5+ messages in thread
From: Ronnie Sahlberg @ 2012-07-12  6:52 UTC (permalink / raw)
  To: pbonzini, qemu-devel


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-12  7:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-12  6:52 [Qemu-devel] [PATCH] SCSI improved LBA-out-of-range checks Ronnie Sahlberg
2012-07-12  6:52 ` [Qemu-devel] [PATCH] SCSI: improve the lba-out-of-range tests for read/write/verify Ronnie Sahlberg
2012-07-12  7:04   ` Paolo Bonzini
2012-07-12  7:06     ` ronnie sahlberg
2012-07-12  7:15       ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).