Messages in this thread | ![/](/images/icornerl.gif) | | Subject | Re: [2.6.37-rc1] /proc/vmstat failure. | From | Tetsuo Handa <> | Date | Thu, 4 Nov 2010 06:54:48 +0900 |
| |
Wu Fengguang wrote: > On Wed, Nov 03, 2010 at 07:11:11PM +0800, Tetsuo Handa wrote: > > Hello. > > > > "cat /proc/vmstat" triggered below failure. > > > > BUG: unable to handle kernel paging request at 07c06d16 > > IP: [<c050c336>] strnlen+0x6/0x20 > > It seems that m->private is of type (void *) while the original v is > (unsigned long *). Can be fixed by the following patch.
Fixed by this patch. Thank you.
By the way, GCC treats "(void *) + offset" as "(char *) + offset" but it is GCC specific extention. Maybe we should avoid such usage in order to avoid build failure for other compilers.
| ![\](/images/icornerr.gif) |