Re: [RFC PATCH v1 6/8] zram: avoid access beyond the zram device

2013-06-05 Thread Jerome Marchand
On 06/04/2013 05:09 PM, Jiang Liu wrote: > On Tue 04 Jun 2013 09:15:43 PM CST, Jerome Marchand wrote: >> On 06/03/2013 05:42 PM, Jiang Liu wrote: >>> Function valid_io_request() should verify the entire request doesn't >>> exceed the zram device, otherwise it will cause invalid memory access. >>> >

Re: [RFC PATCH v1 6/8] zram: avoid access beyond the zram device

2013-06-04 Thread Jiang Liu
On Tue 04 Jun 2013 09:15:43 PM CST, Jerome Marchand wrote: > On 06/03/2013 05:42 PM, Jiang Liu wrote: >> Function valid_io_request() should verify the entire request doesn't >> exceed the zram device, otherwise it will cause invalid memory access. >> >> Signed-off-by: Jiang Liu >> --- >> drivers/

Re: [RFC PATCH v1 6/8] zram: avoid access beyond the zram device

2013-06-04 Thread Jerome Marchand
On 06/03/2013 05:42 PM, Jiang Liu wrote: > Function valid_io_request() should verify the entire request doesn't > exceed the zram device, otherwise it will cause invalid memory access. > > Signed-off-by: Jiang Liu > --- > drivers/staging/zram/zram_drv.c | 4 > 1 file changed, 4 insertions(+

[RFC PATCH v1 6/8] zram: avoid access beyond the zram device

2013-06-03 Thread Jiang Liu
Function valid_io_request() should verify the entire request doesn't exceed the zram device, otherwise it will cause invalid memory access. Signed-off-by: Jiang Liu --- drivers/staging/zram/zram_drv.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/zram/zram_drv.c b/drive