Bug#550010: [PATCH] hfsplus: Refuse to mount volumes larger than 2TB

2009-10-11 Thread Andrew Morton
On Sun, 11 Oct 2009 03:11:27 +0100 Ben Hutchings b...@decadent.org.uk wrote: As found in http://bugs.debian.org/550010, hfsplus is using type u32 rather than sector_t for some sector number calculations. In particular, hfsplus_get_block() does: u32 ablock, dblock, mask; ...

Bug#550010: [PATCH] hfsplus: Refuse to mount volumes larger than 2TB

2009-10-11 Thread Ben Hutchings
On Sun, 2009-10-11 at 00:51 -0700, Andrew Morton wrote: [...] --- a/fs/hfsplus/wrapper.c +++ b/fs/hfsplus/wrapper.c @@ -99,6 +99,10 @@ if (hfsplus_get_last_session(sb, part_start, part_size)) return -EINVAL; + if (part_start + part_size 0x1) { +

Bug#550010: [PATCH] hfsplus: Refuse to mount volumes larger than 2TB

2009-10-10 Thread Ben Hutchings
As found in http://bugs.debian.org/550010, hfsplus is using type u32 rather than sector_t for some sector number calculations. In particular, hfsplus_get_block() does: u32 ablock, dblock, mask; ... map_bh(bh_result, sb, (dblock HFSPLUS_SB(sb).fs_shift) +