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

Artem Bityutskiy dedekind1 at gmail.com
Tue Feb 9 08:33:01 EST 2010


On Tue, 2010-02-09 at 16:30 +0300, Anton Vorontsov wrote:
> 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()

Right, I actually do not have this one. I have 4 other ones. Sorry for
confusion.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list