mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: torvalds@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Fix for module initialization failure
Date: Thu, 30 Oct 2003 11:01:14 +1100	[thread overview]
Message-ID: <16288.21706.380647.350667@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20031029233556.939E52C472@lists.samba.org>

Rusty Russell writes:

> Need a module_arch_cleanup() after a successful module_finalize()
> call: it was missing in the case where module->init() fails.  Since
> module_arch_cleanup() is a noop on x86, I didn't spot it earlier.
> 
> Thanks to Paul Mackerras for prodding me about this again...

Linus: this fixes a real bug which causes an oops on PPC in the case
where you try to load one module, but the init routine fails, and then
you try to load another module.  What happens is that the
module_finalize() call on the first module adds the module to a list
used in BUG() handling.  If the init routine fails, the code currently
doesn't call module_arch_cleanup(), which is where we remove the
module from the list used for BUG handling.  When you try to load the
next module, the BUG list head is pointing to a module which is no
longer there and you get an oops.

Please apply.

Thanks,
Paul.

      reply	other threads:[~2003-10-29 23:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-29 23:35 Rusty Russell
2003-10-30  0:01 ` Paul Mackerras [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16288.21706.380647.350667@cargo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®