[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4FD1A872.7070906@vflare.org>
Date: Fri, 08 Jun 2012 00:23:30 -0700
From: Nitin Gupta <ngupta@...are.org>
To: Minchan Kim <minchan@...nel.org>
CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Seth Jennings <sjenning@...ux.vnet.ibm.com>,
Jerome Marchand <jmarchan@...hat.com>
Subject: Re: [PATCH] zram: fix random data read
On 06/07/2012 11:39 PM, Minchan Kim wrote:
> fd1a30de makes a bug that it uses (struct page *) as zsmalloc's handle
> although it's a uncompressed page so that it can access random page,
> return random data or even crashed by get_first_page in zs_map_object.
>
> Cc: Nitin Gupta <ngupta@...are.org>
> Cc: Seth Jennings <sjenning@...ux.vnet.ibm.com>
> Cc: Jerome Marchand <jmarchan@...hat.com>
> Signed-off-by: Minchan Kim <minchan@...nel.org>
> ---
> drivers/staging/zram/zram_drv.c | 15 ++++++++-------
> 1 file changed, 8 insertions(+), 7 deletions(-)
>
Great catch! The problem goes away after your next patch for using
zsmalloc for all the cases, still this fix can never hurt.
Acked-by: Nitin Gupta <ngupta@...are.org>
Thanks,
Nitin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists