Re: kernel BUG at fs/dcache.c:1363 (from cgroup)

From: Li Zefan
Date: Fri Jan 14 2011 - 00:29:00 EST


Al Viro wrote:
> On Fri, Jan 14, 2011 at 12:56:17PM +0800, Li Zefan wrote:
>> Just mount the cgroupfs:
>>
>> # mount -t cgroup -o cpuset xxx /mnt
>> (oops!!)
>>
>> The bug is caused by:
>>
>> =========
>> commit 0df6a63f8735a7c8a877878bc215d4312e41ef81
>> Author: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
>> Date: Tue Dec 21 13:29:29 2010 -0500
>>
>> switch cgroup
>>
>> switching it to s_d_op allows to kill the cgroup_lookup() kludge.
>>
>> Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
>> =========
>>
>> This line:
>>
>> + sb->s_d_op = &cgroup_dops;
>
> Oh, crap... Right, it's using simple_lookup(). Let me check if anything
> else might be stepping on that.
>
> Umm... There's a very strange codepath in btrfs that also might.
> Interesting. Fix for cgroup, AFAICS, should be this:
>

patch tested. thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/