Re: [PATCH] Fix kallsyms/insmod/rmmod race [try #2]

2005-01-27 Thread Rusty Russell
On Thu, 2005-01-27 at 14:08 +, David Howells wrote: > Signed-Off-By: David Howells <[EMAIL PROTECTED]> Excellent. Thanks David! Rusty. -- A bad analogy is like a leaky screwdriver -- Richard Braakman - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

[PATCH] Fix kallsyms/insmod/rmmod race [try #2]

2005-01-27 Thread David Howells
The attached patch fixes a race between kallsyms and insmod/rmmod. The problem is this: (1) The various kallsyms functions poke around in the module list without any locking so that they can be called from the oops handler. (2) Although insmod and rmmod use locks to exclude each other, t