Re: zram: fix invalid memory references during disk write

From: Greg KH
Date: Sat Dec 08 2012 - 14:45:01 EST


On Fri, Dec 07, 2012 at 04:50:37PM -0800, Nitin Gupta wrote:
> On Thu, Nov 29, 2012 at 10:45 PM, Nitin Gupta <ngupta@xxxxxxxxxx> wrote:
> > Fixes a bug introduced by commit c8f2f0db1 ("zram: Fix handling
> > of incompressible pages") which caused invalid memory references
> > during disk write. Invalid references could occur in two cases:
> > - Incoming data expands on compression: In this case, reference was
> > made to kunmap()'ed bio page.
> > - Partial (non PAGE_SIZE) write with incompressible data: In this
> > case, reference was made to a kfree()'ed buffer.
> >
> > Fixes bug 50081:
> > https://bugzilla.kernel.org/show_bug.cgi?id=50081
> >
> > Upstream commit ID: c8f2f0d: zram: Fix handling of incompressible pages
> > Apply to versions: 3.6.5, 3.6.6, 3.6.7, 3.6.8
> >
>
> Greg: can you please apply these patches to above stable versions
> and also 3.6.9?

Hm, sorry, I thought this was for the 3.7 tree, I'll queue this up for
the next round of 3.6-stable patches.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/