From: Ben Collins <bcollins@debian.org>
To: Andrew Morton <akpm@osdl.org>
Cc: Bradley Chapman <kakadu_croc@yahoo.com>,
linux-kernel@vger.kernel.org,
linux1394-devel@lists.sourceforge.net
Subject: Re: 2.6.0-test7-mm1
Date: Wed, 15 Oct 2003 13:40:47 -0400 [thread overview]
Message-ID: <20031015174047.GE971@phunnypharm.org> (raw)
In-Reply-To: <20031015102810.4017950f.akpm@osdl.org>
On Wed, Oct 15, 2003 at 10:28:10AM -0700, Andrew Morton wrote:
> Bradley Chapman <kakadu_croc@yahoo.com> wrote:
> >
> > You're welcome. Unfortunately I got this non-fatal Oops when I first booted:
> >
> > ohci1394: $Rev: 1045 $ Ben Collins <bcollins@debian.org>
> > ohci1394_0: OHCI-1394 1.1 (PCI): IRQ=[10] MMIO=[e8207000-e82077ff] Max
> > Packet=[2048]
> > Debug: sleeping function called from invalid context at mm/slab.c:1869
> > in_atomic():1, irqs_disabled():0
> > Call Trace:
> > [<c0123fc6>] __might_sleep+0xa0/0xc2
> > [<c0156bc4>] __kmalloc+0x204/0x216
> > [<e08a9ed4>] hpsb_create_hostinfo+0x6b/0xe8 [ieee1394]
> > [<e08af0e6>] nodemgr_add_host+0x23/0x1d2 [ieee1394]
> > [<c0216bd4>] sprintf+0x1f/0x23
> > [<e08aa789>] highlevel_add_host+0x6b/0x6f [ieee1394]
> > [<e08a9cce>] hpsb_add_host+0x6d/0x95 [ieee1394]
>
> highlevel_add_host() does read_lock() and then proceeds to do things like
> starting kernel threads under that lock. The locking is pretty broken
> in there :(
No, highlevel_add_host() itself doesn't start any threads. But it does
pass around data that needs to be locked from changes, and one of the
handlers happens to start a thread, and other things allocate memory
(such as this case).
It's ugly, and I've been trying to clean it up. This case can be fixed
quickly with a simple check in hpsb_create_hostinfo() to pass GFP_ATOMIC
to kmalloc.
My problem right now, is I don't use any architectures that support
preempt, so I don't see a lot of these problems, like I catch with
CONFIG_SMP.
--
Debian - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/
next prev parent reply other threads:[~2003-10-15 17:41 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-15 10:11 2.6.0-test7-mm1 Bradley Chapman
2003-10-15 10:22 ` 2.6.0-test7-mm1 Andrew Morton
2003-10-15 12:34 ` 2.6.0-test7-mm1 Bradley Chapman
2003-10-15 12:46 ` 2.6.0-test7-mm1 Tim Schmielau
2003-10-15 12:53 ` 2.6.0-test7-mm1 Bradley Chapman
2003-10-15 17:28 ` 2.6.0-test7-mm1 Andrew Morton
2003-10-15 17:40 ` Ben Collins [this message]
2003-10-15 17:53 ` 2.6.0-test7-mm1 Andrew Morton
2003-10-16 2:25 ` 2.6.0-test7-mm1 Ben Collins
2003-10-16 14:04 ` 2.6.0-test7-mm1 Anton Blanchard
2003-10-18 12:39 ` 2.6.0-test7-mm1 Kristian Høgsberg
2003-10-18 13:27 ` 2.6.0-test7-mm1 Ben Collins
2003-10-18 18:07 ` This bug appears under 2.6.0-test8 as well (was: 2.6.0-test7-mm1) Bradley Chapman
2003-10-18 19:46 ` Ben Collins
2003-10-27 20:13 ` Mike Fedyk
2003-10-27 20:21 ` Ben Collins
2003-10-15 21:14 ` 2.6.0-test7-mm1 Alexander Hoogerhuis
2003-10-15 21:44 ` 2.6.0-test7-mm1 Andrew Morton
[not found] <20031016083124.45a171a5.akpm@osdl.org>
2003-10-17 7:03 ` 2.6.0-test7-mm1 Bradley Chapman
2003-10-17 7:25 ` 2.6.0-test7-mm1 Andrew Morton
2003-10-17 9:15 ` 2.6.0-test7-mm1 Russell King
-- strict thread matches above, loose matches on Subject: below --
2003-10-16 14:44 2.6.0-test7-mm1 Steven Pratt
2003-10-16 14:58 ` 2.6.0-test7-mm1 Andrew Morton
2003-10-16 23:13 ` 2.6.0-test7-mm1 Steven Pratt
2003-10-17 7:23 ` 2.6.0-test7-mm1 Kirill Korotaev
2003-10-16 14:58 ` 2.6.0-test7-mm1 William Lee Irwin III
2003-10-19 14:16 ` 2.6.0-test7-mm1 Alexander Hoogerhuis
2003-10-15 12:17 2.6.0-test7-mm1 Jan Killius
2003-10-15 8:36 2.6.0-test7-mm1 Andrew Morton
2003-10-15 15:20 ` 2.6.0-test7-mm1 Luiz Capitulino
2003-10-15 15:42 ` 2.6.0-test7-mm1 Luiz Capitulino
2003-10-15 16:55 ` 2.6.0-test7-mm1 William Lee Irwin III
2003-10-15 21:40 ` 2.6.0-test7-mm1 William Lee Irwin III
2003-10-16 15:11 ` 2.6.0-test7-mm1 Luiz Capitulino
2003-10-17 8:58 ` 2.6.0-test7-mm1 Kirill Korotaev
2003-10-17 9:10 ` 2.6.0-test7-mm1 William Lee Irwin III
2003-10-17 12:02 ` 2.6.0-test7-mm1 Luiz Capitulino
2003-10-18 17:43 ` 2.6.0-test7-mm1 Thomas Schlichter
2003-10-18 17:50 ` 2.6.0-test7-mm1 Andrew Morton
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=20031015174047.GE971@phunnypharm.org \
--to=bcollins@debian.org \
--cc=akpm@osdl.org \
--cc=kakadu_croc@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
/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;
as well as URLs for NNTP newsgroup(s).