From: Robert Olsson <Robert.Olsson@data.slu.se>
To: Jesper Dangaard Brouer <hawk@diku.dk>
Cc: Robert Olsson <Robert.Olsson@data.slu.se>,
Jens Laas <jens.laas@data.slu.se>,
Hans Liss <hans.liss@its.uu.se>,
"David S. Miller" <davem@davemloft.net>,
Stephen Hemminger <shemminger@osdl.org>,
"Paul E. McKenney" <paulmck@us.ibm.com>,
Patrick McHardy <kaber@trash.net>,
linux-kernel@vger.kernel.org, linux-net@vger.kernel.org
Subject: BUG in FIB trie v.0.404 kernel 2.6.16
Date: Sun, 26 Mar 2006 12:25:38 +0200 [thread overview]
Message-ID: <17446.27682.102290.341183@robur.slu.se> (raw)
In-Reply-To: <Pine.LNX.4.61.0603252254300.25755@ask.diku.dk>
Jesper Dangaard Brouer writes:
> BUG report for: FIB trie v.0.404
> Kernel version: 2.6.16
>
> When booting the kernel, the following debug output is printed. I assume
> its a bug in the FIB trie code, as it is printed right after the fib tree
> code is activated, and some of the functions refer to the trie code.
> Linux version 2.6.16-orig (hawk@host) (gcc version 3.3.4) #1 SMP PREEMPT Sat Mar 25 22:26:15 CET 2006
> ...
> IPv4 FIB: Using LC-trie version 0.404
> Debug: sleeping function called from invalid context at mm/slab.c:2729
> in_atomic():1, irqs_disabled():0
> [<c0103c4e>] show_trace+0x20/0x24
Hello!
I've have enabled debugging and was expecting to see this as well but I don't.
I'll assume this disapears if you change GFP_KERNEL to GFP_ATOMIC for tnode
and leaf allocations well replace throughout fib_trie.c
Cheers.
--ro
grep GFP /usr/src/git/new/net/ipv4/fib_trie.c
return kcalloc(size, 1, GFP_KERNEL);
pages = alloc_pages(GFP_KERNEL|__GFP_ZERO, get_order(size));
struct leaf *l = kmalloc(sizeof(struct leaf), GFP_KERNEL);
struct leaf_info *li = kmalloc(sizeof(struct leaf_info), GFP_KERNEL);
GFP_KERNEL);
stat = kmalloc(sizeof(*stat), GFP_KERNEL);
struct fib_trie_iter *s = kmalloc(sizeof(*s), GFP_KERNEL);
struct fib_trie_iter *s = kmalloc(sizeof(*s), GFP_KERNEL);
next prev parent reply other threads:[~2006-03-26 10:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-25 22:14 Jesper Dangaard Brouer
2006-03-26 10:25 ` Robert Olsson [this message]
2006-03-26 12:20 ` Jesper Dangaard Brouer
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=17446.27682.102290.341183@robur.slu.se \
--to=robert.olsson@data.slu.se \
--cc=davem@davemloft.net \
--cc=hans.liss@its.uu.se \
--cc=hawk@diku.dk \
--cc=jens.laas@data.slu.se \
--cc=kaber@trash.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=paulmck@us.ibm.com \
--cc=shemminger@osdl.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®