[stgt] [PATCH] Fix the LBA out of bounds check for VERIFY16

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Thu Jun 28 01:57:28 CEST 2012


On Sun, 24 Jun 2012 18:23:18 +1000
ronnie sahlberg <ronniesahlberg at gmail.com> wrote:

> From 965fec3eaa3fda37c3798825320090b437109efb Mon Sep 17 00:00:00 2001
> From: Ronnie Sahlberg <ronniesahlberg at gmail.com>
> Date: Sun, 24 Jun 2012 18:16:53 +1000
> Subject: [PATCH] SBC: Fix the LBA out of range check in VERIFY16
> 
> This fixes the check for LBA out of range in VERIFY16 where very high LBAs
> could wrap back to 0 due to shifting LBA <<9 instead of shifting filesize>>9
> 
> Add a check for LBA+TL < LBA wrapping
> 
> Add a check for LBA out of range also when transfer length is 0
> 
> Signed-off-by: Ronnie Sahlberg <ronniesahlberg at gmail.com>
> ---
>  usr/sbc.c |   23 ++++++++++++++++-------
>  1 files changed, 16 insertions(+), 7 deletions(-)

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list