[PULL-REQUEST] md: avoid bogus read error on large-PAGE_SIZE machines

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

 




Hoping this isn't too late for 2.6.28.

This fixes a bug that makes it impossible to start md arrays with
write-intent-bitmaps on machines with 64K PAGE_SIZE.
We read whole pages and as easily fall off the end of the device.

It is a bug that has been around for a long time and is suitable for
any currently maintained -stable.  As such it has a 
Cc: stable@xxxxxxxxxx
line.

Thanks,
NeilBrown



The following changes since commit 55dac3a5553b13891f0ae4bbd11920619b5436d4:
  Linus Torvalds (1):
        Merge branch 'i2c-fixes' of git://aeryn.fluff.org.uk/bjdooks/linux

are available in the git repository at:

  git://neil.brown.name/md/ for-linus

NeilBrown (1):
      md: Don't read past end of bitmap when reading bitmap.

 drivers/md/bitmap.c |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux