Re: [RFC PATCH V3 2/2] fs : Add sanity checks for block size > PAGE_SIZE

2014-01-21 Thread Raghavendra K T
On 01/22/2014 01:51 AM, Andrew Morton wrote: On Tue, 21 Jan 2014 17:00:00 +0530 Raghavendra K T wrote: We could hit null pointer dereference error during alloc_page_buffers in : (1) block size > PAGE_SIZE (2) low memory. Add sanity check for that. Signed-off-by: Raghavendra K T --- fs/blo

Re: [RFC PATCH V3 2/2] fs : Add sanity checks for block size > PAGE_SIZE

2014-01-21 Thread Andrew Morton
On Tue, 21 Jan 2014 17:00:00 +0530 Raghavendra K T wrote: > We could hit null pointer dereference error during alloc_page_buffers > in : (1) block size > PAGE_SIZE (2) low memory. > Add sanity check for that. > > Signed-off-by: Raghavendra K T > --- > fs/block_dev.c | 1 + > fs/buffer.c|

Re: [RFC PATCH V3 2/2] fs : Add sanity checks for block size > PAGE_SIZE

2014-01-21 Thread Matias Bjorling
On 01/21/2014 03:30 AM, Raghavendra K T wrote: > We could hit null pointer dereference error during alloc_page_buffers > in : (1) block size > PAGE_SIZE (2) low memory. > Add sanity check for that. > > Signed-off-by: Raghavendra K T > --- > fs/block_dev.c | 1 + > fs/buffer.c| 6 ++ > 2

[RFC PATCH V3 2/2] fs : Add sanity checks for block size > PAGE_SIZE

2014-01-21 Thread Raghavendra K T
We could hit null pointer dereference error during alloc_page_buffers in : (1) block size > PAGE_SIZE (2) low memory. Add sanity check for that. Signed-off-by: Raghavendra K T --- fs/block_dev.c | 1 + fs/buffer.c| 6 ++ 2 files changed, 7 insertions(+) diff --git a/fs/block_dev.c b/fs/