qdisc oops fix
Subsystems (2)
Hi,
Pass those net patches to the maintainers (not Alan, not Linus, not Marcello) and CC netdev (optionally cc lk)?
I dont understand why
- sch = kmalloc(size, GFP_KERNEL);
+ sch = kmalloc(size, GFP_ATOMIC);
mysteriously fixes the problem? Could the problem be elsewhere? Can you repost what the issue was? I am not on lk and i just saw the posting on a web page.
cheers,
jamal
Quoted 10 lines
I dont understand why
(quoted diff) +1
-1- sch = kmalloc(size, GFP_KERNEL); + sch = kmalloc(size, GFP_ATOMIC);mysteriously fixes the problem? Could the problem be elsewhere? Can you repost what the issue was? I am not on lk and i just saw the posting on a web page.
Here.
Date: Sat, 12 Apr 2003 10:21:37 +0200
From: Martin Volf <[email protected]>
To: [email protected]
Subject: qdisc misbehavior detected at slab.c:1128 + fix
Hello,
when loading hundreds of QoS rules by tc on SMP machine (2 Xeons with HT) right after booting the system, I always get kernel BUG at slab.c:1128:
ksymoops 2.4.8 on i686 2.4.20. Options used
-V (default)
-k /proc/ksyms (default)
-l /proc/modules (default)
-o /lib/modules/2.4.20/ (default)
-m /boot/System.map (specified)
kernel BUG at slab.c:1128!
invalid operand: 0000 CPU: 0 EIP: 0010:[<c01367b8>] Not tainted
Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00010202
eax: 000001f0 ebx: 00000000 ecx: 000001f0 edx: 00000000
esi: dfff9450 edi: 000001f0 ebp: dc7bda00 esp: dc5e3bfc
ds: 0018 es: 0018 ss: 0018
Process tc (pid: 303, stackpage=dc5e3000)
Stack: 00000246 000001f0 000001f0 dfff9458 dfff9460 dfff9450 00000246 000001f0
dc7bda00 c01376fd dfff9450 000001f0 000001f0 dc652e00 c02d3a60 dc711460
dc7bda00 c021b809 dfff9450 000001f0 c15fea00 00000064 dc652e00 dc5b8034
Call Trace: [<c01376fd>] [<c021b809>] [<e0a4b71d>] [<e0a48108>] [<c021d5aa>]
[<e0a4d1e0>] [<c0219b18>] [<c0219740>] [<c0219450>] [<c022121a>] [<c02209f1>]
[<c0220f71>] [<c020a5c5>] [<c020bce7>] [<c0130010>] [<c012d5b5>] [<c012d821>]
[<c0117f48>] [<c020b11d>] [<c020c1d6>] [<c0117dc0>] [<c0107800>] [<c010770f>]
Code: 0f 0b 68 04 f9 63 27 c0 c7 44 24 0c 01 00 00 00 89 c8 25 f0 Quoted 5 lines
Quoted 5 lines
EIP;
c01367b8<kmem_cache_grow+58/270> <=====esi;
dfff9450<_end+1fc91518/20686128>
ebp;dc7bda00<_end+1c455ac8/20686128>
esp;dc5e3bfc<_end+1c27bcc4/20686128>
Trace; c01376fd <__kmem_cache_alloc+6d/140> Trace; c021b809 <qdisc_create_dflt+29/c0> Trace; e0a4b71d <[sch_htb]htb_change_class+40d/600> Trace; e0a48108 <[sch_htb]htb_find+58/70> Trace; c021d5aa <tc_ctl_tclass+14a/2b0> Trace; e0a4d1e0 <[sch_htb]htb_class_ops+0/0> Trace; c0219b18 <rtnetlink_rcv_msg+1a8/26d> Trace; c0219740 <rtnetlink_rcv+c0/1e0> Trace; c0219450 <rtnetlink_dump_ifinfo+0/90> Trace; c022121a <netlink_data_ready+7a/80> Trace; c02209f1 <netlink_unicast+281/330> Trace; c0220f71 <netlink_sendmsg+1f1/290> Trace; c020a5c5 <sock_sendmsg+75/c0>
Trace; c020bce7 <sys_sendmsg+1b7/210> Trace; c0130010 <do_buffer_fdatasync+30/b0> Trace; c012d5b5 <do_anonymous_page+115/130> Trace; c012d821 <handle_mm_fault+81/120> Trace; c0117f48 <do_page_fault+188/523> Trace; c020b11d <sys_socket+3d/60>
Trace; c020c1d6 <sys_socketcall+246/270> Trace; c0117dc0 <do_page_fault+0/523> Trace; c0107800 <error_code+34/3c>
Trace; c010770f <system_call+33/38>
Code; c01367b8 <kmem_cache_grow+58/270>
00000000 <_EIP>:
Code; c01367b8 <kmem_cache_grow+58/270> <=====
0: 0f 0b ud2a <=====
Code; c01367ba <kmem_cache_grow+5a/270>
2: 68 04 f9 63 27 push $0x2763f904
Code; c01367bf <kmem_cache_grow+5f/270>
7: c0 c7 44 rol $0x44,%bh
Code; c01367c2 <kmem_cache_grow+62/270>
a: 24 0c and $0xc,%al
Code; c01367c4 <kmem_cache_grow+64/270>
c: 01 00 add %eax,(%eax)
Code; c01367c6 <kmem_cache_grow+66/270>
e: 00 00 add %al,(%eax)
Code; c01367c8 <kmem_cache_grow+68/270>
10: 89 c8 mov %ecx,%eax
Code; c01367ca <kmem_cache_grow+6a/270>
12: 25 f0 00 00 00 and $0xf0,%eax
<0>Kernel panic: Aiee, killing interrupt handler!
On UP machine even with SMP kernel (the same configuration) it never happened. Guided by the comment in slab.c:1122 I tried (without knowing what I was doing;-) following little patch to net/sched/sch_generic.c and it seems to fix it.
sch_generic.c 2003-04-12 08:58:34.000000000 +0200 renamed from sch_generic.c.orig 2003-01-04 14:42:02.000000000 +0100 +1 -1
@@ -372,7 +372,7 @@ struct Qdisc *sch; int size = sizeof(*sch) + ops->priv_size; - sch = kmalloc(size, GFP_KERNEL); + sch = kmalloc(size, GFP_ATOMIC); if (!sch) return NULL; memset(sch, 0, size);
Is it the correct fix?
Thanks,
Martin Volf
Can you try a different qdisc - not htb to reproduce the problem?
cheers,
jamal
Quoted 24 lines · Tomas Szepe
Trace;
c01376fd<__kmem_cache_alloc+6d/140> Trace;c021b809<qdisc_create_dflt+29/c0> Trace;e0a4b71d<[sch_htb]htb_change_class+40d/600> Trace;e0a48108<[sch_htb]htb_find+58/70> Trace;c021d5aa<tc_ctl_tclass+14a/2b0> Trace;e0a4d1e0<[sch_htb]htb_class_ops+0/0> Trace;c0219b18<rtnetlink_rcv_msg+1a8/26d> Trace;c0219740<rtnetlink_rcv+c0/1e0> Trace;c0219450<rtnetlink_dump_ifinfo+0/90> Trace;c022121a<netlink_data_ready+7a/80> Trace;c02209f1<netlink_unicast+281/330> Trace;c0220f71<netlink_sendmsg+1f1/290> Trace;c020a5c5<sock_sendmsg+75/c0>
Trace;c020bce7<sys_sendmsg+1b7/210> Trace;c0130010<do_buffer_fdatasync+30/b0> Trace;c012d5b5<do_anonymous_page+115/130> Trace;c012d821<handle_mm_fault+81/120> Trace;c0117f48<do_page_fault+188/523> Trace;c020b11d<sys_socket+3d/60>
Trace;c020c1d6<sys_socketcall+246/270> Trace;c0117dc0<do_page_fault+0/523> Trace;c0107800<error_code+34/3c>
Trace;c010770f<system_call+33/38>
Quoted 3 lines
Can you try a different qdisc - not htb to reproduce the problem?
Not quite possible I'm afraid.
Signature · 1 line
Tomas Szepe <[email protected]>
Quoted 6 lines
(quoted diff) +1
-1- sch = kmalloc(size, GFP_KERNEL); + sch = kmalloc(size, GFP_ATOMIC);mysteriously fixes the problem? Could the problem be elsewhere? Can you repost what the issue was? I am not on lk and i just saw the posting on a web page.
With many rules (~5000 classes and ~3500 qdiscs and ~50000 filters) the kernel oopses in slab.c:1128.
It happens on high rates (~15mbit).
On low rates, doesn't.
Seems that an interrupt come and broke the memory allocation.
Quoted 6 lines
Quoted 6 lines
EIP;
c0127ab4<kmem_cache_grow+44/1d8> <=====EAX; ffffffff <END_OF_CODE+3fd31247/????>
EBX;c12c52c0<END_OF_CODE+ff6508/????>
EDI;c12c52c0<END_OF_CODE+ff6508/????>
ESP;ceab1c60<END_OF_CODE+e7e2ea8/????>
Trace; c0127e0f <kmalloc+eb/110>
Trace; c01d3cac <qdisc_create_dflt+20/bc>
Trace; d081ecc7 <END_OF_CODE+1054ff0f/????>
Trace; c01d5265 <tc_ctl_tclass+1cd/214>
Trace; d0820600 <END_OF_CODE+10551848/????>
Trace; c01d27e4 <rtnetlink_rcv+298/3bc>
Trace; c01d0605 <__neigh_event_send+89/1b4>
Trace; c01d7cd4 <netlink_data_ready+1c/60>
Trace; c01d7730 <netlink_unicast+230/278>
Trace; c01d7b73 <netlink_sendmsg+1fb/20c>
Trace; c01c79d5 <sock_sendmsg+69/88>
Trace; c01c8b48 <sys_sendmsg+18c/1e8>
Trace; c0120010 <map_user_kiobuf+8/f8>
Quoted 9 lines
cheers,
jamal
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
---
Catalin(ux) BOIE
[email protected]
This is a different problem from previous one posted.
Theres a small window (exposed given that you are provisioning a lot of qdiscs and running traffic at the same time) that an incoming packet interupt will cause the BUG().
GFP_ATOMIC will fix it, but i wonder if it appropriate.
Alexey or Manfred?
cheers,
jamal
PS:- 15mbits is not a lot of traffic ;->
Quoted 37 lines · Catalin BOIE
Quoted 6 lines
(quoted diff) +1
-1- sch = kmalloc(size, GFP_KERNEL); + sch = kmalloc(size, GFP_ATOMIC);mysteriously fixes the problem? Could the problem be elsewhere? Can you repost what the issue was? I am not on lk and i just saw the posting on a web page.
With many rules (~5000 classes and ~3500 qdiscs and ~50000 filters) the kernel oopses in slab.c:1128.
It happens on high rates (~15mbit).
On low rates, doesn't.Seems that an interrupt come and broke the memory allocation.
Quoted 6 lines
Quoted 6 lines
EIP;
c0127ab4<kmem_cache_grow+44/1d8> <=====EAX; ffffffff <END_OF_CODE+3fd31247/????>
EBX;c12c52c0<END_OF_CODE+ff6508/????>
EDI;c12c52c0<END_OF_CODE+ff6508/????>
ESP;ceab1c60<END_OF_CODE+e7e2ea8/????>Trace;
c0127e0f<kmalloc+eb/110>
Trace;c01d3cac<qdisc_create_dflt+20/bc>
Trace;d081ecc7<END_OF_CODE+1054ff0f/????>
Trace;c01d5265<tc_ctl_tclass+1cd/214>
Trace;d0820600<END_OF_CODE+10551848/????>
Trace;c01d27e4<rtnetlink_rcv+298/3bc>
Trace;c01d0605<__neigh_event_send+89/1b4>
Trace;c01d7cd4<netlink_data_ready+1c/60>
Trace;c01d7730<netlink_unicast+230/278>
Trace;c01d7b73<netlink_sendmsg+1fb/20c>
Trace;c01c79d5<sock_sendmsg+69/88>
Trace;c01c8b48<sys_sendmsg+18c/1e8>
Trace;c0120010<map_user_kiobuf+8/f8>
Quoted 9 lines · jamal
This is a different problem from previous one posted.
Theres a small window (exposed given that you are provisioning a lot of qdiscs and running traffic at the same time) that an incoming packet interupt will cause the
BUG().
GFP_ATOMICwill fix it, but i wonder if it appropriate.
This is a 2.4 kernel, correct?
Quoted 3 lines
Quoted 3 lines
With many rules (~5000 classes and ~3500 qdiscs and ~50000 filters) the kernel oopses in slab.c:1128.
This check?
if (in_interrupt() && (flags & SLAB_LEVEL_MASK) != SLAB_ATOMIC)
BUG();It's triggered, because someone does something like
spin_lock_bh(&my_lock);
p = kmalloc(,GFP_KERNEL);
I don't like the proposed fix: usually code that calls kmalloc(,GFP_KERNEL) assumes that it runs at process space, e.g. uses semaphores, or non-bh spinlocks, etc. slab just happens to contain a test that complains about illegal calls.
Quoted 9 lines
Quoted 9 lines
Trace;
c0127e0f<kmalloc+eb/110>
Trace;c01d3cac<qdisc_create_dflt+20/bc>
Trace;d081ecc7<END_OF_CODE+1054ff0f/????>
Trace;c01d5265<tc_ctl_tclass+1cd/214>
Trace;d0820600<END_OF_CODE+10551848/????>
Trace;c01d27e4<rtnetlink_rcv+298/3bc>
Trace;c01d0605<__neigh_event_send+89/1b4>
Trace;c01d7cd4<netlink_data_ready+1c/60>
Trace;c01d7730<netlink_unicast+230/278>
Quoted 8 lines
Quoted 8 lines
Trace;
c01d7b73<netlink_sendmsg+1fb/20c>
Trace;c01c79d5<sock_sendmsg+69/88>
Trace;c01c8b48<sys_sendmsg+18c/1e8>
Trace;c0120010<map_user_kiobuf+8/f8>
I don't understand the backtrace. Were any modules loaded? Perhaps 0xd081ecc7 is a module.
I'd add a
if(in_interrupt()) show_stack(NULL);
into qdisc_create_dflt(), and try to reproduce the bug without modules.
--
Manfred
Quoted 16 lines
Quoted 6 lines
Quoted 6 lines
Trace;
c0127e0f<kmalloc+eb/110>
Trace;c01d3cac<qdisc_create_dflt+20/bc>
Trace;d081ecc7<END_OF_CODE+1054ff0f/????>
Trace;c01d5265<tc_ctl_tclass+1cd/214>
Trace;d0820600<END_OF_CODE+10551848/????>
Trace;c01d27e4<rtnetlink_rcv+298/3bc>Quoted 8 lines
Quoted 8 lines
Trace;
c01d0605<__neigh_event_send+89/1b4>
Trace;c01d7cd4<netlink_data_ready+1c/60>
Trace;c01d7730<netlink_unicast+230/278>
Trace;c01d7b73<netlink_sendmsg+1fb/20c>
Trace;c01c79d5<sock_sendmsg+69/88>
Trace;c01c8b48<sys_sendmsg+18c/1e8>
Trace;c0120010<map_user_kiobuf+8/f8>
Quoted 2 lines
I don't understand the backtrace. Were any modules loaded? Perhaps
0xd081ecc7is a module.
The original backtrace as provided by Martin Volf does not contain any weird addresses such as 0xd081ecc7 above:
http://marc.theaimsgroup.com/?l=linux-kernel&m=105013596721774&w=2
Signature · 1 line
Tomas Szepe <[email protected]>
Quoted 6 lines · Tomas Szepe
The original backtrace as provided by Martin Volf does not contain any weird addresses such as
0xd081ecc7above:http://marc.theaimsgroup.com/?l=linux-kernel&m=105013596721774&w=2
Thanks.
The bug was caused by sch_tree_lock() in htb_change_class(). 2.4.21-pre7 contains a fix.
--
Manfred
On Wednesday 16 April 2003 18:52, Manfred Spraul wrote:
Hi Manfred,
Quoted 6 lines
Quoted 3 lines
The original backtrace as provided by Martin Volf does not contain any weird addresses such as
0xd081ecc7above:
http://marc.theaimsgroup.com/?l=linux-kernel&m=105013596721774&w=2Thanks.
The bug was caused bysch_tree_lock()inhtb_change_class(). 2.4.21-pre7 contains a fix.
am I just blind or isn't there a fix in -pre7|current-BK?
ciao, Marc
Quoted 4 lines · Marc-Christian Petersen
On Wednesday 16 April 2003 18:52, Manfred Spraul wrote:
Hi Manfred,
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
The original backtrace as provided by Martin Volf does not contain any weird addresses such as
0xd081ecc7above:
http://marc.theaimsgroup.com/?l=linux-kernel&m=105013596721774&w=2Thanks.
The bug was caused bysch_tree_lock()inhtb_change_class(). 2.4.21-pre7 contains a fix.am I just blind or isn't there a fix in -pre7|current-BK?
No you are not ;-> Yes, the fix for that specific problem is in 2.4.21-pre7. I think Tomas might have missed that we moved on to the next problem.
cheers,
jamal
Quoted 4 lines · Manfred Spraul
Quoted 2 lines · jamal
This is a different problem from previous one posted.
Quoted 9 lines
Quoted 7 lines
Theres a small window (exposed given that you are provisioning a lot of qdiscs and running traffic at the same time) that an incoming packet interupt will cause the
BUG().
GFP_ATOMICwill fix it, but i wonder if it appropriate.This is a 2.4 kernel, correct?
Catalin, Can you what kernel that is?
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
With many rules (~5000 classes and ~3500 qdiscs and ~50000 filters) the kernel oopses in slab.c:1128.
This check?
if (in_interrupt() && (flags & SLAB_LEVEL_MASK) != SLAB_ATOMIC) BUG();
thats the one i meant.
Quoted 8 lines
It's triggered, because someone does something like
spin_lock_bh(&my_lock); p = kmalloc(,GFP_KERNEL);I don't like the proposed fix: usually code that calls
kmalloc(,GFP_KERNEL)assumes that it runs at process space, e.g. uses semaphores, or non-bh spinlocks, etc.
slab just happens to contain a test that complains about illegal calls.
ok. Nice.
Quoted 18 lines
Quoted 10 lines
Quoted 10 lines
Trace;
c0127e0f<kmalloc+eb/110>
Trace;c01d3cac<qdisc_create_dflt+20/bc>
Trace;d081ecc7<END_OF_CODE+1054ff0f/????>
Trace;c01d5265<tc_ctl_tclass+1cd/214>
Trace;d0820600<END_OF_CODE+10551848/????>
Trace;c01d27e4<rtnetlink_rcv+298/3bc>
Trace;c01d0605<__neigh_event_send+89/1b4>
Trace;c01d7cd4<netlink_data_ready+1c/60>
Trace;c01d7730<netlink_unicast+230/278>Quoted 8 lines
Quoted 8 lines
Trace;
c01d7b73<netlink_sendmsg+1fb/20c>
Trace;c01c79d5<sock_sendmsg+69/88>
Trace;c01c8b48<sys_sendmsg+18c/1e8>
Trace;c0120010<map_user_kiobuf+8/f8>
Quoted 3 lines
I don't understand the backtrace. Were any modules loaded? Perhaps
0xd081ecc7is a module.
Probably a module. Again Catalin, run no modules.
Quoted 4 lines
I'd add a
if(in_interrupt()) show_stack(NULL);into
qdisc_create_dflt(), and try to reproduce the bug without modules.
Catalin - again instead of your fix can you please add this call?
cheers,
jamal
Hello,
Quoted 1 line · jamal
Quoted 1 line
Quoted 1 line
This is a different problem from previous one posted.
The problem should be the same. This 'lock bh + GFP_KERNEL'
BUG happens only when slab allocates pages, not on each kmalloc.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Theres a small window (exposed given that you are provisioning a lot of qdiscs and running traffic at the same time) that an incoming packet interupt will cause the
BUG().
This should not happen, may be you see another place that violates
the above rule? IMO, the only problem is that it is not good to hold locks (including bh one) while using GFP_KERNEL.
Regards
--
Julian Anastasov <[email protected]>
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
The original backtrace as provided by Martin Volf does not contain any weird addresses such as
0xd081ecc7above:
http://marc.theaimsgroup.com/?l=linux-kernel&m=105013596721774&w=2Thanks.
The bug was caused bysch_tree_lock()inhtb_change_class(). 2.4.21-pre7 contains a fix.
Quoted 6 lines
Quoted 2 lines
am I just blind or isn't there a fix in -pre7|current-BK?
No you are not ;-> Yes, the fix for that specific problem is in 2.4.21-pre7. I think Tomas might have missed that we moved on to the next problem.
Trouble is, the fix went in for already -pre5 (cset 1.930.3.5), so if you only look at the pre6->pre7 changelog (like I did), you aren't likely to find it. 8)
T.
Hi!
Quoted 1 line
This is a different problem from previous one posted.
Same oops in slab.c:1128. Why do you think is different.
Quoted 4 lines
Theres a small window (exposed given that you are provisioning a lot of qdiscs and running traffic at the same time) that an incoming packet interupt will cause the
BUG().
Quoted 8 lines
GFP_ATOMICwill fix it, but i wonder if it appropriate.Alexey or Manfred?
cheers,
jamalPS:- 15mbits is not a lot of traffic ;->
Yes, I know. I was comparing 15mbit with almost no traffic on the machine running same qdiscs/filters/classes... :)
Quoted 25 lines · Catalin BOIE
Quoted 23 lines
Quoted 7 lines
(quoted diff) +1
-1- sch = kmalloc(size, GFP_KERNEL); + sch = kmalloc(size, GFP_ATOMIC);mysteriously fixes the problem? Could the problem be elsewhere? Can you repost what the issue was? I am not on lk and i just saw the posting on a web page.
With many rules (~5000 classes and ~3500 qdiscs and ~50000 filters) the kernel oopses in slab.c:1128.
It happens on high rates (~15mbit).
On low rates, doesn't.Seems that an interrupt come and broke the memory allocation.
Quoted 6 lines
Quoted 6 lines
EIP;
c0127ab4<kmem_cache_grow+44/1d8> <=====EAX; ffffffff <END_OF_CODE+3fd31247/????>
EBX;c12c52c0<END_OF_CODE+ff6508/????>
EDI;c12c52c0<END_OF_CODE+ff6508/????>
ESP;ceab1c60<END_OF_CODE+e7e2ea8/????>
Quoted 16 lines
Quoted 5 lines
Trace;
c0127e0f<kmalloc+eb/110>
Trace;c01d3cac<qdisc_create_dflt+20/bc>
Trace;d081ecc7<END_OF_CODE+1054ff0f/????>
Trace;c01d5265<tc_ctl_tclass+1cd/214>
Trace;d0820600<END_OF_CODE+10551848/????>Quoted 10 lines
Trace;
c01d27e4<rtnetlink_rcv+298/3bc>
Trace;c01d0605<__neigh_event_send+89/1b4>
Trace;c01d7cd4<netlink_data_ready+1c/60>
Trace;c01d7730<netlink_unicast+230/278>
Trace;c01d7b73<netlink_sendmsg+1fb/20c>
Trace;c01c79d5<sock_sendmsg+69/88>
Trace;c01c8b48<sys_sendmsg+18c/1e8>
Trace;c0120010<map_user_kiobuf+8/f8>
---
Catalin(ux) BOIE
[email protected]
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Trace;
c0127e0f<kmalloc+eb/110>
Trace;c01d3cac<qdisc_create_dflt+20/bc>
Trace;d081ecc7<END_OF_CODE+1054ff0f/????>
Trace;c01d5265<tc_ctl_tclass+1cd/214>
Trace;d0820600<END_OF_CODE+10551848/????>
Trace;c01d27e4<rtnetlink_rcv+298/3bc>
Trace;c01d0605<__neigh_event_send+89/1b4>
Trace;c01d7cd4<netlink_data_ready+1c/60>
Trace;c01d7730<netlink_unicast+230/278>
Trace;c01d7b73<netlink_sendmsg+1fb/20c>
Trace;c01c79d5<sock_sendmsg+69/88>
Trace;c01c8b48<sys_sendmsg+18c/1e8>
Trace;c0120010<map_user_kiobuf+8/f8>
Quoted 2 lines
Quoted 2 lines
I don't understand the backtrace. Were any modules loaded? Perhaps
0xd081ecc7is a module.
Yes, is htb module. I don't know why it didn't resolved.
Quoted 8 lines
The original backtrace as provided by Martin Volf does not contain any weird addresses such as
0xd081ecc7above:http://marc.theaimsgroup.com/?l=linux-kernel&m=105013596721774&w=2
--
Tomas Szepe <[email protected]>
---
Catalin(ux) BOIE
[email protected]
Quoted 1 line
Catalin, Can you what kernel that is?
2.4.20pre10 works ok but 2.4.20 crash.
With traffic -> no crash with 2.4.20. Without traffic, on other machine, no crash.
Quoted 29 lines
Quoted 8 lines
It's triggered, because someone does something like
spin_lock_bh(&my_lock); p = kmalloc(,GFP_KERNEL);I don't like the proposed fix: usually code that calls
kmalloc(,GFP_KERNEL)assumes that it runs at process space, e.g. uses semaphores, or non-bh spinlocks, etc.
slab just happens to contain a test that complains about illegal calls.ok. Nice.
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Trace;
c0127e0f<kmalloc+eb/110>
Trace;c01d3cac<qdisc_create_dflt+20/bc>
Trace;d081ecc7<END_OF_CODE+1054ff0f/????>
Trace;c01d5265<tc_ctl_tclass+1cd/214>
Trace;d0820600<END_OF_CODE+10551848/????>
Trace;c01d27e4<rtnetlink_rcv+298/3bc>
Trace;c01d0605<__neigh_event_send+89/1b4>
Trace;c01d7cd4<netlink_data_ready+1c/60>
Trace;c01d7730<netlink_unicast+230/278>
Trace;c01d7b73<netlink_sendmsg+1fb/20c>
Trace;c01c79d5<sock_sendmsg+69/88>
Trace;c01c8b48<sys_sendmsg+18c/1e8>
Trace;c0120010<map_user_kiobuf+8/f8>
Quoted 5 lines
Quoted 3 lines
I don't understand the backtrace. Were any modules loaded? Perhaps
0xd081ecc7is a module.Probably a module. Again Catalin, run no modules.
It's a production machine. I cannot test this. We plan to replace the machine, so I can test then.
Quoted 6 lines
Quoted 4 lines
I'd add a
if(in_interrupt()) show_stack(NULL);into
qdisc_create_dflt(), and try to reproduce the bug without modules.Catalin - again instead of your fix can you please add this call?
See above. I cannot test now. I'm very sorry!
Quoted 3 lines
cheers,
jamal
---
Catalin(ux) BOIE
[email protected]
Ok, I stand corrected. Tomas is right- same problem. You had htb loaded as a module, the other person had it compiled in ;->
Get yourself upgraded ;->
cheers,
jamal
Quoted 61 lines · Catalin BOIE
Quoted 1 line
Catalin, Can you what kernel that is?
2.4.20pre10 works ok but 2.4.20 crash.
With traffic -> no crash with 2.4.20. Without traffic, on other machine, no crash.Quoted 29 lines
Quoted 8 lines
It's triggered, because someone does something like
spin_lock_bh(&my_lock); p = kmalloc(,GFP_KERNEL);I don't like the proposed fix: usually code that calls
kmalloc(,GFP_KERNEL)assumes that it runs at process space, e.g. uses semaphores, or non-bh spinlocks, etc.
slab just happens to contain a test that complains about illegal calls.ok. Nice.
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Trace;
c0127e0f<kmalloc+eb/110>
Trace;c01d3cac<qdisc_create_dflt+20/bc>
Trace;d081ecc7<END_OF_CODE+1054ff0f/????>
Trace;c01d5265<tc_ctl_tclass+1cd/214>
Trace;d0820600<END_OF_CODE+10551848/????>
Trace;c01d27e4<rtnetlink_rcv+298/3bc>
Trace;c01d0605<__neigh_event_send+89/1b4>
Trace;c01d7cd4<netlink_data_ready+1c/60>
Trace;c01d7730<netlink_unicast+230/278>
Trace;c01d7b73<netlink_sendmsg+1fb/20c>
Trace;c01c79d5<sock_sendmsg+69/88>
Trace;c01c8b48<sys_sendmsg+18c/1e8>
Trace;c0120010<map_user_kiobuf+8/f8>Quoted 5 lines
Quoted 3 lines
I don't understand the backtrace. Were any modules loaded? Perhaps
0xd081ecc7is a module.Probably a module. Again Catalin, run no modules.
It's a production machine. I cannot test this. We plan to replace the machine, so I can test then.
Quoted 6 lines
Quoted 4 lines
I'd add a
if(in_interrupt()) show_stack(NULL);into
qdisc_create_dflt(), and try to reproduce the bug without modules.Catalin - again instead of your fix can you please add this call?
See above. I cannot test now. I'm very sorry!
Quoted 3 lines
cheers,
jamal---
Catalin(ux) BOIE
[email protected]
Quoted 3 lines
Ok, I stand corrected. Tomas is right- same problem. You had htb loaded as a module, the other person had it compiled in ;->
Get yourself upgraded ;->
I surely will!
Quoted 68 lines
cheers,
jamalQuoted 61 lines · Catalin BOIE
Quoted 1 line
Catalin, Can you what kernel that is?
2.4.20pre10 works ok but 2.4.20 crash.
With traffic -> no crash with 2.4.20. Without traffic, on other machine, no crash.Quoted 29 lines
Quoted 8 lines
It's triggered, because someone does something like
spin_lock_bh(&my_lock); p = kmalloc(,GFP_KERNEL);I don't like the proposed fix: usually code that calls
kmalloc(,GFP_KERNEL)assumes that it runs at process space, e.g. uses semaphores, or non-bh spinlocks, etc.
slab just happens to contain a test that complains about illegal calls.ok. Nice.
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Trace;
c0127e0f<kmalloc+eb/110>
Trace;c01d3cac<qdisc_create_dflt+20/bc>
Trace;d081ecc7<END_OF_CODE+1054ff0f/????>
Trace;c01d5265<tc_ctl_tclass+1cd/214>
Trace;d0820600<END_OF_CODE+10551848/????>
Trace;c01d27e4<rtnetlink_rcv+298/3bc>
Trace;c01d0605<__neigh_event_send+89/1b4>
Trace;c01d7cd4<netlink_data_ready+1c/60>
Trace;c01d7730<netlink_unicast+230/278>
Trace;c01d7b73<netlink_sendmsg+1fb/20c>
Trace;c01c79d5<sock_sendmsg+69/88>
Trace;c01c8b48<sys_sendmsg+18c/1e8>
Trace;c0120010<map_user_kiobuf+8/f8>Quoted 5 lines
Quoted 3 lines
I don't understand the backtrace. Were any modules loaded? Perhaps
0xd081ecc7is a module.Probably a module. Again Catalin, run no modules.
It's a production machine. I cannot test this. We plan to replace the machine, so I can test then.
Quoted 6 lines
Quoted 4 lines
I'd add a
if(in_interrupt()) show_stack(NULL);into
qdisc_create_dflt(), and try to reproduce the bug without modules.Catalin - again instead of your fix can you please add this call?
See above. I cannot test now. I'm very sorry!
Quoted 3 lines
cheers,
jamal---
Catalin(ux) BOIE
[email protected]
---
Catalin(ux) BOIE
[email protected]