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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arnd Bergmann
Date: Monday, October 4, 2010 - 4:00 am

On Sunday 03 October 2010, Thomas Gleixner wrote:

BKL hasn't been in this code path since before git.

I think this relatively recent change caused module_finalize to be
called without module_mutex held:

commit 75676500f8298f0ee89db12db97294883c4b768e
Author: Rusty Russell <rusty@rustcorp.com.au>
Date:   Sat Jun 5 11:17:36 2010 -0600

    module: make locking more fine-grained.
    
    Kay Sievers <kay.sievers@vrfy.org> reports that we still have some
    contention over module loading which is slowing boot.
    
    Linus also disliked a previous "drop lock and regrab" patch to fix the
    bne2 "gave up waiting for init of module libcrc32c" message.
    
    This is more ambitious: we only grab the lock where we need it.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Cc: Brandon Philips <brandon@ifup.org>
    Cc: Kay Sievers <kay.sievers@vrfy.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>

	Arnd
--
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, Arnd Bergmann, (Mon Oct 4, 4:00 am)
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)