summaryrefslogtreecommitdiffstats
path: root/drivers/atm/atmsar11.start
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2007-01-26 00:57:03 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-01-26 13:50:59 -0800
commitf49d5e62d9352d33b30c9befbaf0fd9c88265ec1 (patch)
tree32dee76e54b4922eac8ab09c30b1e8399b3107aa /drivers/atm/atmsar11.start
parent1031be7a5fafd3a858dfaabb74d98f9ca20744a8 (diff)
downloadlinux-stable-f49d5e62d9352d33b30c9befbaf0fd9c88265ec1.tar.gz
linux-stable-f49d5e62d9352d33b30c9befbaf0fd9c88265ec1.tar.bz2
linux-stable-f49d5e62d9352d33b30c9befbaf0fd9c88265ec1.zip
[PATCH] md: avoid reading past the end of a bitmap file
In most cases we check the size of the bitmap file before reading data from it. However when reading the superblock, we always read the first PAGE_SIZE bytes, which might not always be appropriate. So limit that read to the size of the file if appropriate. Also, we get the count of available bytes wrong in one place, so that too can read past the end of the file. Cc: "yang yin" <yinyang801120@gmail.com> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/atm/atmsar11.start')
0 files changed, 0 insertions, 0 deletions