From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 8 Dec 2012 11:47:26 -0800 From: Greg KH To: Nitin Gupta Cc: Jerome Marchand , Minchan Kim , Seth Jennings , Konrad Rzeszutek Wilk , Dan Carpenter , Sam Hansen , Linux Driver Project , linux-kernel , stable@vger.kernel.org Subject: Re: zram: fix invalid memory references during disk write Message-ID: <20121208194726.GD3897@kroah.com> References: <1354257909-2380-1-git-send-email-ngupta@vflare.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: On Fri, Dec 07, 2012 at 04:50:37PM -0800, Nitin Gupta wrote: > On Thu, Nov 29, 2012 at 10:45 PM, Nitin Gupta 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