Re: [PATCH 1/1] pagemap: fix buffer overflow in add_page_map()

2013-08-12 Thread Andrew Morton
On Fri, 9 Aug 2013 13:16:41 +0800 yonghua zheng wrote: > Hi, > > Recently we met quite a lot of random kernel panic issues after enable > CONFIG_PROC_PAGE_MONITOR in kernel, after debuggint sometime we found > this has something to do with following bug in pagemap: > > In struc pagemapread: >

Re: [PATCH 1/1] pagemap: fix buffer overflow in add_page_map()

2013-08-12 Thread Naoya Horiguchi
On Sat, Aug 10, 2013 at 08:49:34AM +0800, yonghua zheng wrote: > Update the patch according to Naoya's comment, I also run > ./scripts/checkpatch.pl, and it passed ;D. Reviewed-by: Naoya Horiguchi # Sorry if I missed something, but I guess that your MTA might replace tabs # with spaces. Document

Re: [PATCH 1/1] pagemap: fix buffer overflow in add_page_map()

2013-08-10 Thread KOSAKI Motohiro
On Fri, Aug 9, 2013 at 8:49 PM, yonghua zheng wrote: > Update the patch according to Naoya's comment, I also run > ./scripts/checkpatch.pl, and it passed ;D. > > From 96826b0fdf9ec6d6e16c2c595f371dbb841250f7 Mon Sep 17 00:00:00 2001 > From: Yonghua Zheng > Date: Mon, 5 Aug 2013 12:12:24 +0800 > S

Re: [PATCH 1/1] pagemap: fix buffer overflow in add_page_map()

2013-08-09 Thread yonghua zheng
Update the patch according to Naoya's comment, I also run ./scripts/checkpatch.pl, and it passed ;D. >From 96826b0fdf9ec6d6e16c2c595f371dbb841250f7 Mon Sep 17 00:00:00 2001 From: Yonghua Zheng Date: Mon, 5 Aug 2013 12:12:24 +0800 Subject: [PATCH 1/1] pagemap: fix buffer overflow in add_to_pagemap

Re: [PATCH 1/1] pagemap: fix buffer overflow in add_page_map()

2013-08-09 Thread Naoya Horiguchi
On Fri, Aug 09, 2013 at 01:16:41PM +0800, yonghua zheng wrote: > Hi, > > Recently we met quite a lot of random kernel panic issues after enable > CONFIG_PROC_PAGE_MONITOR in kernel, after debuggint sometime we found > this has something to do with following bug in pagemap: > > In struc pagemaprea

[PATCH 1/1] pagemap: fix buffer overflow in add_page_map()

2013-08-08 Thread yonghua zheng
Hi, Recently we met quite a lot of random kernel panic issues after enable CONFIG_PROC_PAGE_MONITOR in kernel, after debuggint sometime we found this has something to do with following bug in pagemap: In struc pagemapread: struct pagemapread { int pos, len; pagemap_entry_t *buffer; b