Re: [PATCH 1/1] target: fix max_unmap_lba_count calc overflow

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

 



On Thu, 2016-06-02 at 20:12 -0500, mchristi@xxxxxxxxxx wrote:
> From: Mike Christie <mchristi@xxxxxxxxxx>
> 
> max_discard_sectors only 32bits, and some non scsi backend
> devices will set this to the max 0xffffffff, so we can end up
> overflowing during the max_unmap_lba_count calculation.
> 
> This fixes a regression caused by my patch:
> 
> commit 8a9ebe717a133ba7bc90b06047f43cc6b8bcb8b3
> Author: Mike Christie <mchristi@xxxxxxxxxx>
> Date:   Mon Jan 18 14:09:27 2016 -0600
> 
>     target: Fix WRITE_SAME/DISCARD conversion to linux 512b sectors
> 
> which can result in extra discards being sent to due the overflow
> causing max_unmap_lba_count to be smaller than what the backing
> device can actually support.
> 
> Signed-off-by: Mike Christie <mchristi@xxxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx
> 

Applied to target-pending/master.

Thanks MNC + Bart.

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



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]