Re: [PATCH][RESEND] staging: zram: fix invalid memory referencesduring disk write

From: Nitin Gupta
Date: Fri Jan 04 2013 - 15:25:19 EST

On Wed, Jan 2, 2013 at 8:53 AM, 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:

Greg: can you please add this to staging? It fixes an important issue
and is tested by many users.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at