diff options
| author | Jiang Liu <liuj97@gmail.com> | 2013-06-07 00:07:26 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-11 18:35:24 -0700 |
| commit | 408fd687175ed6a1fea8cb901882c369ce1d4478 (patch) | |
| tree | d8ae07983e1c0b8c72a81b9e5b70d72e59e7d88a /include/linux | |
| parent | f7b071d02492426c5b5c1086fe082ba7a0de6de8 (diff) | |
zram: avoid access beyond the zram device
commit 12a7ad3b810e77137d0caf97a6dd97591e075b30 upstream.
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 <jiang.liu@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
