From: Ronnie Sahlberg <ronniesahlberg@gmail.com>
To: pbonzini@redhat.com, qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] SCSI improved LBA-out-of-range checks
Date: Thu, 12 Jul 2012 16:52:46 +1000 [thread overview]
Message-ID: <1342075967-26378-1-git-send-email-ronniesahlberg@gmail.com> (raw)
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
next reply other threads:[~2012-07-12 6:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-12 6:52 Ronnie Sahlberg [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1342075967-26378-1-git-send-email-ronniesahlberg@gmail.com \
--to=ronniesahlberg@gmail.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).