Re: [PATCH 2/2] sd: Fix overflow with big physical blocks

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

 



On Mon, Sep 27 2010 at 12:41pm -0400,
Martin K. Petersen <martin.petersen@xxxxxxxxxx> wrote:

> The hw_sector_size variable could overflow if a device reported huge
> physical blocks.  Switch to the more accurate physical_block_size
> terminology and make sure we use an unsigned int to match the range
> permitted by READ CAPACITY(16).
> 
> Also print a warning of the physical block size exceeds the page size.
> 
> Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>

Acked-by: Mike Snitzer <snitzer@xxxxxxxxxx>

(with the understanding that we may/will look to limit
physical_block_size to PAGE_SIZE in a follow-on patch).
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux