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

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

 



On Sun, 24 Jun 2012 18:23:18 +1000
ronnie sahlberg <ronniesahlberg@xxxxxxxxx> wrote:

> From 965fec3eaa3fda37c3798825320090b437109efb Mon Sep 17 00:00:00 2001
> From: Ronnie Sahlberg <ronniesahlberg@xxxxxxxxx>
> 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@xxxxxxxxx>
> ---
>  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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux