From: Francois Cartegnie <fcartegnie@free.fr>
To: linux-kernel@vger.kernel.org
Subject: Crash on kmalloc with GFP_KERNEL
Date: Mon, 11 Aug 2003 11:09:26 +0200 [thread overview]
Message-ID: <200308111109.26569.fcartegnie@free.fr> (raw)
Hello,
I'm currently extending the u32 classifier (linux traffic control).
I've experienced some strange behaviour with memory allocation :
A single kmalloc with GFP_KERNEL leads to kernel panic (BUG, slab.c) when
there's multiple requests matching the classifier.
Thinking about concurrent access, I tried to lock the allocation with
semaphores.
The only way to solve it was to use GFP_ATOMIC (but I also experienced It
still crash in some cases).
This is really similar to the bug report made on netfilter buzilla:
https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=68
So I guess the memory allocations are interrupted by arrival of new packets
and then crash.
-Is there any way to fix it to use GFP_KERNEL memory allocations ?
-Also, the original u32 code uses GFP_KERNEL for storing it's matching rules.
I guess It would crash here too if the rules are created under heavy network
traffic. Any idea ?
Greetings,
reply other threads:[~2003-08-11 8:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200308111109.26569.fcartegnie@free.fr \
--to=fcartegnie@free.fr \
--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®