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.
--