[patch 1/5] jffs2: fix memory corruption in jffs2_read_inode_range()

Anton Vorontsov avorontsov at ru.mvista.com
Tue Feb 9 08:30:55 EST 2010


On Tue, Feb 09, 2010 at 03:26:32PM +0200, Artem Bityutskiy wrote:
> On Tue, 2010-02-02 at 14:43 -0800, akpm at linux-foundation.org wrote:
> > From: Anton Vorontsov <avorontsov at ru.mvista.com>
> > 
> > In 2.6.23 kernel, commit a32ea1e1f925399e0d81ca3f7394a44a6dafa12c ("Fix
> > read/truncate race") fixed a race in the generic code, and as a side
> > effect, now do_generic_file_read() can ask us to readpage() past the
> > i_size, which seems to be correctly handled by the block routines (e.g. 
> > block_read_full_page() fills the page with zeroes in case if somebody is
> > trying to read past the last inode's block).
[...]
> > Signed-off-by: Anton Vorontsov <avorontsov at ru.mvista.com>
> > Cc: David Woodhouse <dwmw2 at infradead.org>
> > Cc: Neil Brown <neilb at suse.de>
> > Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
> 
> All 5 patches you sent in this series are also sitting in my l2-mtd-2.6
> tree.

Please drop this particular patch, David's version of this patch
is already in Linus' tree:

commit 199bc9ff5ca5e4b3bcaff8927b2983c65f34c263
Author: David Woodhouse <dwmw2 at infradead.org>
Date:   Mon Nov 30 09:06:40 2009 +0000

    jffs2: Fix memory corruption in jffs2_read_inode_range()


Thanks!

-- 
Anton Vorontsov
email: cbouatmailru at gmail.com
irc://irc.freenode.net/bd2



More information about the linux-mtd mailing list