From: Jiang Liu Date: Thu, 6 Jun 2013 16:07:26 +0000 (+0800) Subject: zram: avoid access beyond the zram device X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~226 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12a7ad3b810e77137d0caf97a6dd97591e075b30;p=pandora-kernel.git zram: avoid access beyond the zram device Function valid_io_request() should verify the entire request are within the zram device address range. Otherwise it may cause invalid memory access when accessing/modifying zram->meta->table[index] because the 'index' is out of range. Then it may access non-exist memory, randomly modify memory belong to other subsystems, which is hard to track down. Signed-off-by: Jiang Liu Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed