Re: Integer overflow in target_core_device.c in Linux Kernel

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

 



On Fri, Apr 22, 2016 at 03:13:58AM +0500, Марк Коренберг wrote:
> Linux kernel commit 8a9ebe717a133ba7bc90b06047f43cc6b8bcb8b3
> 
> attrib->max_unmap_lba_count = (q->limits.max_discard_sectors << 9)
> 
> Since max_discard_sectors is 32-bit, there may be integer overflow,
> making wrong max_unmap_lba_count.
> 
> For example, LVM Thin provisioning reports that it have 16 GB maximal
> discard block.
> 
> Exactly the same bug in DRBD9, I have already reported.

Please report this to the mailing list for the subsystem, stable@
doesn't care about stuff like this until it is resolved.

thanks,

greg k-h
--
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]