Re: [BUG 2.6.36-rc6] list corruption in module_bug_finalize

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rusty Russell
Date: Monday, October 4, 2010 - 9:18 pm

On Mon, 4 Oct 2010 06:21:08 am Thomas Gleixner wrote:

I've never even *seen* this code before :(

Looks like it went through Adrian Bunk to Andrew, but despite the fact that
it (foolishly) doesn't touch kernel/module.c, it's generic code and I should
have seen it.  It did change the linux/module.h header.

So, it used to be protected by module_mutex, but Linus and I cleaned that up.

So, we need a lock around this list for adding and removal.  I'd use
list_add_rcu to try to help the lockless traversal too...

And moving it from all the archs into kernel/module.c would be a nice bonus.

Nice catch!
Rusty.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[BUG 2.6.36-rc6] list corruption in module_bug_finalize, Thomas Gleixner, (Sun Oct 3, 12:51 pm)
Re: [BUG 2.6.36-rc6] list corruption in module_bug_finalize, Rusty Russell, (Mon Oct 4, 9:18 pm)
Re: [BUG 2.6.36-rc6] list corruption in module_bug_finalize, Thomas Gleixner, (Tue Oct 5, 12:30 am)
Re: [BUG 2.6.36-rc6] list corruption in module_bug_finalize, Thomas Gleixner, (Tue Oct 5, 10:43 am)