Oops in tcp_sendmsg on T[12]000
This bug was originally reported for a T1000 a while back:
http://thread.gmane.org/gmane.linux.ports.sparc/6361/focusd13
On a T2000 I am able to trigger the Oops in 5 to 50 minutes by pushing a ton of traffic over lo with netcat:
nc -l -p 9000 >/dev/null
nc localhost </dev/zero
This works on 2.6.19, 2.6.20, and 2.6.21-rc2. I have added the debugging statement suggested in the original thread, and it's result along with the Oops is posted below. I've dug through the code a bit, but so far the issue is far beyond me. Thanks for any help!
[ 3416.753596] TCP DEBUG: Bogus skb->nohdr, word[58080000] [ 3416.753618] kernel BUG at include/linux/skbuff.h:482! [ 3416.753634] \|/ ____ \|/ [ 3416.753639] "@'/ .. \`@" [ 3416.753645] /_| \__/ |_\ [ 3416.753651] \__U_/ [ 3416.753697] nc(4770): Kernel bad sw trap 5 [#1] [ 3416.753712] TSTATE: 0000000011001604 TPC: 000000000063ca1c TNPC: 000000000063ca20 Y: 00000000 Not tainted [ 3416.753738] TPC: <tcp_sendmsg+0x420/0xc68> [ 3416.753750] g0: 00000000000001c0 g1: 0000000000000001 g2: 0000000000730f08 g3: 0000000000730f10 [ 3416.753770] g4: fffff807fc07c960 g5: fffff8000e5d7d40 g6: fffff807fd41c000 g7: 0000000000000000 [ 3416.753788] o0: 000000000000003c o1: 00000000006dfb60 o2: 00000000000001e2 o3: ffffffffffffffff [ 3416.753808] o4: 0000000000002000 o5: fffff807fcf9c140 sp: fffff807fd41f051 ret_pc: 000000000063ca14 [ 3416.753829] RPC: <tcp_sendmsg+0x418/0xc68> [ 3416.753842] l0: 0000000008000000 l1: fffff807fd085ca0 l2: 000000000041220c l3: 0000000000000000 [ 3416.753860] l4: 0000000000000010 l5: 0000000000000003 l6: fffff807fd41c000 l7: 00000000004953b0 [ 3416.753879] i0: ffffffffffffffe0 i1: fffff807fad93260 i2: 0000000000000000 i3: 0000000000000000 [ 3416.753897] i4: 0000000000002000 i5: 0000000000026080 i6: fffff807fd41f151 i7: 000000000065b95c [ 3416.753920] I7: <inet_sendmsg+0x48/0x54> [ 3416.753934] Caller[000000000065b95c]: inet_sendmsg+0x48/0x54 [ 3416.753952] Caller[000000000060d310]: sock_aio_write+0xe4/0xf0 [ 3416.753972] Caller[00000000004951f8]: do_sync_write+0x88/0xd0 [ 3416.753994] Caller[00000000004952cc]: vfs_write+0x8c/0x108 [ 3416.754011] Caller[00000000004953dc]: sys_write+0x34/0x60 [ 3416.754028] Caller[0000000000406b94]: linux_sparc_syscall32+0x3c/0x40 [ 3416.754053] Caller[0000000000012e10]: 0x12e18 [ 3416.754069] Instruction DUMP: 11001b7e 7ff76ec3 90122360
<91d02005> c65c60d8 84050010 8204c001 c4246088 80a04003
Signature · 3 lines
Michael Marineau Oregon State University [email protected]
From: "Michael Marineau" <[email protected]>
Date: Wed, 28 Feb 2007 23:13:20 -0800
Quoted 8 lines
This bug was originally reported for a T1000 a while back:
http://thread.gmane.org/gmane.linux.ports.sparc/6361/focusd13On a T2000 I am able to trigger the Oops in 5 to 50 minutes by pushing a ton of traffic over lo with netcat:
nc -l -p 9000 >/dev/null
nc localhost </dev/zero
Quoted 4 lines
This works on 2.6.19, 2.6.20, and 2.6.21-rc2. I have added the debugging statement suggested in the original thread, and it's result along with the Oops is posted below. I've dug through the code a bit, but so far the issue is far beyond me. Thanks for any help!
Thanks for the debugging information, I'll certainly try to track this down.
From: "Michael Marineau" <[email protected]>
Date: Wed, 28 Feb 2007 23:13:20 -0800
Quoted 7 lines
This bug was originally reported for a T1000 a while back:
http://thread.gmane.org/gmane.linux.ports.sparc/6361/focusd13On a T2000 I am able to trigger the Oops in 5 to 50 minutes by pushing a ton of traffic over lo with netcat:
nc -l -p 9000 >/dev/null
nc localhost </dev/zero
I've run the same and similar tests for quite some time and I can't get a trigger on both my T1000 and T2000. I let them keep running for a while just in case.
Your ability to trigger this in 5 minutes or so is too easy, and therefore I looked again at your original report and I see that you are using some fedora3 based distribution and the gcc-3.4.x that comes with it to build your kernel.
I really suspect the compiler or build tools at this point.
Quoted 15 lines · David Miller
From: "Michael Marineau" <[email protected]>
Date: Wed, 28 Feb 2007 23:13:20 -0800Quoted 7 lines
This bug was originally reported for a T1000 a while back:
http://thread.gmane.org/gmane.linux.ports.sparc/6361/focusd13On a T2000 I am able to trigger the Oops in 5 to 50 minutes by pushing a ton of traffic over lo with netcat:
nc -l -p 9000 >/dev/null
nc localhost </dev/zeroI've run the same and similar tests for quite some time and I can't get a trigger on both my T1000 and T2000. I let them keep running for a while just in case.
Quoted 7 lines
Your ability to trigger this in 5 minutes or so is too easy, and therefore I looked again at your original report and I see that you are using some fedora3 based distribution and the gcc-3.4.x that comes with it to build your kernel.
I really suspect the compiler or build tools at this point.
I'm not sure where you saw Fedora, this is running Gentoo, but yes the compiler is 3.4.6. Newer versions haven't been marked stable in Gentoo on sparc yet for some reason. I'll give gcc 4.1.2 a try and see if I can still reproduce it.
Signature · 3 lines
Michael Marineau Oregon State University [email protected]
From: "Michael Marineau" <[email protected]>
Date: Mon, 5 Mar 2007 21:22:22 -0800
Quoted 1 line
I'm not sure where you saw Fedora,
Sorry, that wasn't you, that was from Dennis Gilmore in the original T1000 crash thread. :-)
this is running Gentoo, but yes the
Quoted 3 lines
compiler is 3.4.6. Newer versions haven't been marked stable in Gentoo on sparc yet for some reason. I'll give gcc 4.1.2 a try and see if I can still reproduce it.
I'd be even more interested if you could reproduce it under Debian or Ubuntu, any release :-)
Quoted 12 lines · David Miller
From: "Michael Marineau" <[email protected]>
Date: Mon, 5 Mar 2007 21:22:22 -0800Quoted 1 line
I'm not sure where you saw Fedora,
Sorry, that wasn't you, that was from Dennis Gilmore in the original T1000 crash thread. :-)
this is running Gentoo, but yes the
Quoted 3 lines
compiler is 3.4.6. Newer versions haven't been marked stable in Gentoo on sparc yet for some reason. I'll give gcc 4.1.2 a try and see if I can still reproduce it.
Built the kernel with gcc 4.1.1 and I got the oops in just a few minutes, trying a second time now and it is lasting longer this time around.
Quoted 3 lines
I'd be even more interested if you could reproduce it under Debian or Ubuntu, any release :-)
I'd rather not have to rebuild the box, but I suppose that can be done if necessary.
Signature · 3 lines
Michael Marineau Oregon State University [email protected]
From: "Michael Marineau" <[email protected]>
Date: Mon, 5 Mar 2007 22:41:31 -0800
Quoted 6 lines · David Miller
Quoted 2 lines
I'd be even more interested if you could reproduce it under Debian or Ubuntu, any release :-)
I'd rather not have to rebuild the box, but I suppose that can be done if necessary.
Another way we could do this is someone builds you a test kernel using your kernel .config on a Debian/Ubuntu box, tar up the modules and kernel image for you, and you test that.
I'm very suspicious of this bug because there are no reports of it on Debian or Ubuntu systems, and that's also the environment under which I've been beating the crap out of Niagara with 2.6.x kernels.
David Miller napsal(a):
Quoted 17 lines
From: "Michael Marineau" <[email protected]>
Date: Mon, 5 Mar 2007 22:41:31 -0800Quoted 7 lines · David Miller
Quoted 3 lines
I'd be even more interested if you could reproduce it under Debian or Ubuntu, any release :-)
I'd rather not have to rebuild the box, but I suppose that can be done if necessary.
Another way we could do this is someone builds you a test kernel using your kernel .config on a Debian/Ubuntu box, tar up the modules and kernel image for you, and you test that.
Quoted 8 lines
I'm very suspicious of this bug because there are no reports of it on Debian or Ubuntu systems, and that's also the environment under which I've been beating the crap out of Niagara with 2.6.x kernels.
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
I am able to build kernel and put it to web. I you want my help let me know.
Dan
Quoted 4 lines · David Miller
I'm very suspicious of this bug because there are no reports of it on Debian or Ubuntu systems, and that's also the environment under which I've been beating the crap out of Niagara with 2.6.x kernels.
since i reported the problem previously. the patch provided fixed the issue completely. I'm running the corona Tree of aurora which has gcc 4.1.1 my T1000 is used as a build box for aurora extras. It regularly sees high loads.
Dennis
Quoted 10 lines · David Miller
From: "Michael Marineau" <[email protected]>
Date: Mon, 5 Mar 2007 22:41:31 -0800Quoted 6 lines · David Miller
Quoted 2 lines
I'd be even more interested if you could reproduce it under Debian or Ubuntu, any release :-)
I'd rather not have to rebuild the box, but I suppose that can be done if necessary.
Quoted 8 lines
Another way we could do this is someone builds you a test kernel using your kernel .config on a Debian/Ubuntu box, tar up the modules and kernel image for you, and you test that.
I'm very suspicious of this bug because there are no reports of it on Debian or Ubuntu systems, and that's also the environment under which I've been beating the crap out of Niagara with 2.6.x kernels.
I twiddled with my kernel configuration a bit to remove the need for any modules to make building elsewhere and copying it over easier. With this new config I am no longer able to trigger the bug (ran the test over night). I have no idea what change did this, I'll fiddle more with it as soon as I have time in the next day or two.
Signature · 3 lines
Michael Marineau Oregon State University [email protected]
From: "Michael Marineau" <[email protected]>
Date: Tue, 6 Mar 2007 11:48:50 -0800
Quoted 5 lines
I twiddled with my kernel configuration a bit to remove the need for any modules to make building elsewhere and copying it over easier. With this new config I am no longer able to trigger the bug (ran the test over night). I have no idea what change did this, I'll fiddle more with it as soon as I have time in the next day or two.
Thanks for continuing to help track this down.
Probably it's some module that has some "use after free" memory allocation bug.