linux/drivers/md
NeilBrown a2ed9615e3 md: Don't read past end of bitmap when reading bitmap.
When we read the write-intent-bitmap off the device, we currently
read a whole number of pages.
When PAGE_SIZE is 4K, this works due to the alignment we enforce
on the superblock and bitmap.
When PAGE_SIZE is 64K, this case read past the end-of-device
which causes an error.

When we write the superblock, we ensure to clip the last page
to just be the required size.  Copy that code into the read path
to just read the required number of sectors.

Signed-off-by: Neil Brown <neilb@suse.de>
Cc: stable@kernel.org
2008-12-19 16:25:01 +11:00
..
raid6test
.gitignore
bitmap.c md: Don't read past end of bitmap when reading bitmap. 2008-12-19 16:25:01 +11:00
dm-bio-list.h
dm-bio-record.h
dm-crypt.c
dm-delay.c
dm-exception-store.c
dm-io.c
dm-ioctl.c
dm-kcopyd.c
dm-linear.c
dm-log.c
dm-mpath.c dm mpath: warn if args ignored 2008-11-13 23:39:06 +00:00
dm-mpath.h
dm-path-selector.c
dm-path-selector.h
dm-raid1.c dm raid1: flush workqueue before destruction 2008-11-13 23:38:52 +00:00
dm-region-hash.c
dm-round-robin.c
dm-snap.c dm snapshot: wait for chunks in destructor 2008-10-30 13:33:16 +00:00
dm-snap.h dm snapshot: wait for chunks in destructor 2008-10-30 13:33:16 +00:00
dm-stripe.c dm stripe: fix init failure 2008-11-13 23:38:56 +00:00
dm-table.c block: fix setting of max_segment_size and seg_boundary mask 2008-12-03 12:55:55 +01:00
dm-target.c
dm-uevent.c
dm-uevent.h
dm-zero.c
dm.c dm: avoid destroying table in dm_any_congested 2008-11-13 23:39:14 +00:00
dm.h
faulty.c
Kconfig
linear.c md: linear: Fix a division by zero bug for very small arrays. 2008-11-06 19:41:24 +11:00
Makefile
md.c md: revert the recent addition of a call to the BLKRRPART ioctl. 2008-11-06 17:28:01 +11:00
mktables.c
multipath.c
raid0.c
raid1.c
raid5.c
raid6.h
raid6algos.c
raid6altivec.uc
raid6int.uc
raid6mmx.c
raid6recov.c
raid6sse1.c
raid6sse2.c
raid6x86.h
raid10.c md: fix bug in raid10 recovery. 2008-11-06 17:28:20 +11:00
unroll.pl