From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: gang_hu@soul.com.cn (hugang)
Cc: linux-kernel@vger.kernel.org ('linux-kernel@vger.kernel.org')
Subject: Re: [BUG] kmem_cache_grow.
Date: Mon, 15 Apr 2002 10:16:42 +0100 (BST) [thread overview]
Message-ID: <E16x2bK-0005mD-00@the-village.bc.nu> (raw)
In-Reply-To: <20020415144048.37318357.gang_hu@soul.com.cn> from "hugang" at Apr 15, 2002 02:40:48 PM
> Problem: first run "find /" , eject and insert pcmcia network's card, the kernel will crash.
Which network card and what kernel revision
> Kernel oops: at
> linux/mm/slab.c->kmem_cache_grow.
> if (in_interrupt() && (flags & SLAB_LEVEL_MASK) != SLAB_ATOMIC)
> BUG(); <-- here.
>
> Can I remove this check ?
The kernel realised it was being made to sleep in an interrupt. If you
remove the check it will crash anyway. If you did something like
if(..... as before ...)
{
flags&=~SLAB_LEVEL_MASK;
flags|=SLAB_ATOMIC;
printk(KERN_ERR "kmem: critical memory allocation level error.\n");
}
it ought to print a complaint and continue. Really however it wants fixing
prev parent reply other threads:[~2002-04-15 8:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-15 6:40 hugang
2002-04-15 7:38 ` Andrew Morton
2002-04-15 8:00 ` hugang
2002-04-15 9:16 ` Alan Cox [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=E16x2bK-0005mD-00@the-village.bc.nu \
--to=alan@lxorguk.ukuu.org.uk \
--cc=gang_hu@soul.com.cn \
--cc=linux-kernel@vger.kernel.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®