* Crash on kmalloc with GFP_KERNEL
@ 2003-08-11 9:09 Francois Cartegnie
0 siblings, 0 replies; only message in thread
From: Francois Cartegnie @ 2003-08-11 9:09 UTC (permalink / raw)
To: linux-kernel
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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-08-11 8:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-11 9:09 Crash on kmalloc with GFP_KERNEL Francois Cartegnie
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®