Skip to contentSkip to conversation

md: avoid bogus read error on large-PAGE_SIZE machines

PULL-REQUEST Neil Brown 1 participant 1 message Dec 19, 2008 MD RAID

lore
Share & tools
lore

Neil Brown

author
#0 lore raw

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: [email protected]
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(-)