Re: kernel panic while using netcat since linux-2.6.9

From: Ondrej Zary
Date: Sun Nov 07 2004 - 08:02:39 EST


Ramsés Rodríguez Martínez wrote:
Hi,
Sorry i don't include any dump, but it seems kernel-patch-lkcd for 2.6.9 is
not available yet. I could handcopy the kernel-oops if you want. I think
it'll be something related with bind() as it fails with "netcat".

The problem is only present with 2.6.9 (or at least not with 2.6.8 nor
2.6.5)

------------------------
SCRIPT TO REPRODUCE:
su
apt-get install nc
exit
nc -p2000 127.0.0.1 2000 # kernel panic

------------------------

It does the same thing for me. Here's the BUG output from serial console.


------------[ cut here ]------------
kernel BUG at net/ipv4/tcp_output.c:277!
invalid operand: 0000 [#1]
PREEMPT
Modules linked in: 3c509 snd_sb16 snd_opl3_lib snd_hwdep snd_sb16_dsp snd_sb_common
CPU: 0
EIP: 0060:[<c02dd6da>] Not tainted VLI
EFLAGS: 00010246 (2.6.9-pentium)
EIP is at tcp_transmit_skb+0x8ca/0x8e0
eax: c7fb72c0 ebx: c6424210 ecx: 00000020 edx: c727bf60
esi: c6424040 edi: c6424210 ebp: c727b920 esp: c4869dd4
ds: 007b es: 007b ss: 0068
Process nc (pid: 2263, threadinfo=c4869000 task=c64cb560)
Stack: ffffff60 c727b880 c727bf60 000000a0 00000246 c727bf60 c727b880 00000020
c727bf98 c6424178 c727bf60 c6424040 c6424210 c6424040 c6424040 c727b920
c02dc200 00000218 c7fb7478 c727b920 c6424040 c6424210 00000028 c02dcb25
Call Trace:
[<c02dc200>] tcp_rcv_synsent_state_process+0x500/0x550
[<c02dcb25>] tcp_rcv_state_process+0x8d5/0x9d0
[<c02e4161>] tcp_v4_do_rcv+0x71/0xf0
[<c02b4ca7>] __release_sock+0x47/0x70
[<c02b53bc>] release_sock+0x6c/0x70
[<c02f11fb>] inet_wait_for_connect+0x7b/0xd0
[<c0111870>] autoremove_wake_function+0x0/0x30
[<c0111870>] autoremove_wake_function+0x0/0x30
[<c02f12f3>] inet_stream_connect+0xa3/0x180
[<c02b320c>] sys_connect+0x5c/0x80
[<c02b3e79>] sock_setsockopt+0x99/0x510
[<c02b1e7f>] sock_map_fd+0xff/0x140
[<c011eabe>] do_sigaction+0x15e/0x1f0
[<c01173bb>] do_setitimer+0x15b/0x1d0
[<c02b3a61>] sys_socketcall+0x81/0x1a0
[<c011e17a>] sys_rt_sigprocmask+0x7a/0xd0
[<c0103d77>] syscall_call+0x7/0xb
Code: ff 7f e9 44 f8 ff ff 8a 87 2f 01 00 00 84 c0 0f 84 2c f8 ff ff 8b 54 24 1c 25 ff 00 00 00 8d 54 c2 04 89 54 24 1c e9 16 f8 ff ff <0f> 0b 15 01 9b e9 33 c0 e9 86
<0>Kernel panic - not syncing: Fatal exception in interrupt


--
Ondrej Zary
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/