From: Jun Sun <jsun@mvista.com>
To: Krishna Kondaka <krishna@Sanera.net>
Cc: linux-mips@oss.sgi.com
Subject: Re: kernel BUG at slab.c:1073!
Date: Wed, 24 Jul 2002 11:45:17 -0700 [thread overview]
Message-ID: <3D3EF5BD.60802@mvista.com> (raw)
In-Reply-To: 200207241834.g6OIYDi28110@icarus.sanera.net
Krishna Kondaka wrote:
> Hi,
>
> My system panics with the following message, when I do insmod of a
> driver.
>
> kernel BUG at slab.c:1073!
> Unable to handle kernel paging request at virtual address 00000000, epc ==
> 80131490, ra == 80131490
> Oops in fault.c:do_page_fault, line 172:
> $0 : 00000000 10009f00 0000001b 0000000a
> $4 : 80282ab0 00000001 00000001 00000000
> $8 : 802a2f42 b0060170 0000001b 0000000d
> $12: 00000000 0000001b 10009f00 0000000a
> $16: 00000000 000000f0 8fe40600 000000f0
> $20: 00000001 1002d948 00000060 8fdd4ec0
> $24: 802a2f27 ffffffff
> $28: 8f3b6000 8f3b7df8 00000008 80131490
> epc : 0000000080131490
> Status : 10009f03
> Cause : 1080000c
>
> BadAddr: 000000008fdd4ec0Process insmod (pid: 67, stackpage=8f3b6000)
> Stack: 8022a860 8022a878 00000431 8fe40600 8fe40600 000000f0 ffffffff ffffffea
> 8f1b7000 80131988 0000003e 0000003c 00000059 80116110 00000000 00000000
> 00000000 c0021538 10009f01 ffffffea 00000008 c001f000 10033338 ffffffea
> 00000008 c001f000 10033338 ffffffea c0021b68 c0021b58 c00244b4 c00244a8
> 00000043 00000002 00000000 c001f000 80117678 80116f98 80101c00 00030002
> 80135e80 ...
> Call Trace: [<8022a860>] [<8022a878>] [<80131988>] [<80116110>] [<c0021538>]
> [<c001f000>]
> [<c001f000>] [<c0021b68>] [<c0021b58>] [<c00244b4>] [<c00244a8>] [<c001f000>]
> [<80117678>] [<80116f98>] [<80101c00>] [<80135e80>] [<c0014000>] [<c001f060>]
> [<8010d924>] [<c001f060>]
>
> Code: 24a5a878 0c0457ca 24060431 <ae000000> 24020020 126200c4 24140001
> 40056000 34a10001
> Kernel panic: Aiee, killing interrupt handler!
> In interrupt handler - not syncing
> Rebooting in 5 seconds..swarm_linux_exit called...passing control back to CFE
>
> slab.c : line 1072-1073 is
>
> if (in_interrupt() && (flags & SLAB_LEVEL_MASK) != SLAB_ATOMIC)
> BUG();
>
> The driver being loaded is a small proprietary driver. The init routine of
> the driver is doing kmalloc() with GFP_KERNEL as the second argument. I know
> that I can fix my driver to use GFP_ATOMIC if running in interrupt context.
>
> My question is why is the "insmod" command running in interrupt context?
>
I don't think insmod should have interrupt context set.
Do you have preemptible kernel enabled? This problem often happens if
preemptible kernel is enabled and there is a missing interrupt path not pre-k
ready.
Jun
next prev parent reply other threads:[~2002-07-24 18:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-24 18:34 kernel BUG at slab.c:1073! Krishna Kondaka
2002-07-24 18:45 ` Jun Sun [this message]
2002-07-24 18:58 ` Ralf Baechle
-- strict thread matches above, loose matches on Subject: below --
2002-07-24 19:08 Krishna Kondaka
2002-07-24 19:14 ` Ralf Baechle
2002-07-24 19:15 ` Jun Sun
2002-07-25 12:06 ` Steven Seeger
2002-07-25 12:06 ` Steven Seeger
2002-07-25 13:53 ` Ralf Baechle
2002-07-24 19:16 Krishna Kondaka
2002-07-24 19:23 Krishna Kondaka
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=3D3EF5BD.60802@mvista.com \
--to=jsun@mvista.com \
--cc=krishna@Sanera.net \
--cc=linux-mips@oss.sgi.com \
/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