Re: [PATCH] cgroup: add a validation check to cgroup_add_cftyps()

2014-02-18 Thread Tejun Heo
On Mon, Feb 17, 2014 at 10:41:50AM +0800, Li Zefan wrote: > Fengguang reported this bug: > > BUG: unable to handle kernel NULL pointer dereference at 003c > IP: [] cgroup_cfts_commit+0x27/0x1c1 > ... > Call Trace: > [] ? kmem_cache_alloc_trace+0x33f/0x3b7 > [] cgroup_add_cftypes+0x8f/0xca

[PATCH] cgroup: add a validation check to cgroup_add_cftyps()

2014-02-16 Thread Li Zefan
Fengguang reported this bug: BUG: unable to handle kernel NULL pointer dereference at 003c IP: [] cgroup_cfts_commit+0x27/0x1c1 ... Call Trace: [] ? kmem_cache_alloc_trace+0x33f/0x3b7 [] cgroup_add_cftypes+0x8f/0xca [] cgroup_init+0x6a/0x26a [] start_kernel+0x4d7/0x57a [] i386_start_