From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Beregalov Subject: Re: 3.4.0-rc2: skb_put() -> skb_over_panic Date: Wed, 18 Apr 2012 10:37:51 +0400 Message-ID: References: <1334502964.28012.1.camel@edumazet-glaptop> <1334695506.2472.46.camel@edumazet-glaptop> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: netdev , Linux Kernel Mailing List To: Eric Dumazet Return-path: In-Reply-To: <1334695506.2472.46.camel@edumazet-glaptop> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 18 April 2012 00:45, Eric Dumazet wrote: > On Wed, 2012-04-18 at 00:15 +0400, Alexander Beregalov wrote: >> On 15 April 2012 19:16, Eric Dumazet wrote: >> > On Sun, 2012-04-15 at 16:24 +0400, Alexander Beregalov wrote: >> >> Hi >> >> >> >> kernel 3.4.0-rc2-00333-g668ce0a >> >> >> >> calltrace is lost on netconsole, sorry. >> >> >> >> ethernet is realtek/r8169 >> >> >> >> It happened already two times with rtorrent, perhaps I can reprod= uce >> >> it, what else can I provide to you? >> >> >> > full stack trace needed please. >> > >> >> This time calltrace is different (I saw few last lines of calltrace = on >> a display, but not enough) and netconsole transmitted complete >> message, but perhaps it is the same problem. At least 'end' is the >> same. >> >> >> skb_over_panic: text:ffffffff8136d919 len:1248 put:932 >> head:ffff8800babcf800 data:ffff8800babcfd10 tail:0x9f0 end:0x6c0 >> dev: >> ------------[ cut here ]------------ >> kernel BUG at net/core/skbuff.c:127! >> invalid opcode: 0000 [#1] SMP >> CPU 3 >> Modules linked in: >> >> Pid: 1926, comm: rtorrent Not tainted 3.4.0-rc2-00333-g668ce0a #1 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /D525MW >> RIP: 0010:[] =C2=A0[] skb_put+0x= 7c/0x86 >> RSP: 0018:ffff8800bed83d60 =C2=A0EFLAGS: 00010246 >> RAX: 0000000000000098 RBX: ffff8800b0b244c0 RCX: 000000000000003d >> RDX: 000000000000000d RSI: 0000000000000046 RDI: ffffffff8162a0b0 >> RBP: ffff8800bed83d80 R08: 0000000000000001 R09: 0000000000000000 >> R10: ffff88002ed840c0 R11: 00000000007e28f6 R12: ffff8800b9cb9180 >> R13: ffff8800b9cb96c0 R14: ffff8800b9cb91a8 R15: ffff8800b0b245a0 >> FS: =C2=A000007fe639e75720(0000) GS:ffff8800bed80000(0000) knlGS:000= 0000000000000 >> CS: =C2=A00010 DS: 0000 ES: 0000 CR0: 0000000080050033 >> CR2: 00007fe63571a000 CR3: 00000000b53fa000 CR4: 00000000000007e0 >> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 >> DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 >> Process rtorrent (pid: 1926, threadinfo ffff8800bb0a0000, task ffff8= 800bb1dddc0) >> Stack: >> =C2=A000000000000009f0 00000000000006c0 ffffffff814d06e7 ffff8800b9c= b9180 >> =C2=A0ffff8800bed83de0 ffffffff8136d919 ffff8800000003a4 0000013c815= 36640 >> =C2=A0ffff8800b0b245a0 000000cc00000006 ffff8800b0b244c0 ffff8800b0b= 244c0 >> Call Trace: >> =C2=A0 >> =C2=A0[] tcp_retransmit_skb+0x29a/0x529 >> =C2=A0[] tcp_retransmit_timer+0x358/0x4e7 >> =C2=A0[] tcp_write_timer+0x9c/0x17d >> =C2=A0[] run_timer_softirq+0x1eb/0x2bf >> =C2=A0[] ? tcp_retransmit_timer+0x4e7/0x4e7 >> =C2=A0[] ? native_smp_send_reschedule+0x4f/0x51 >> =C2=A0[] __do_softirq+0xbf/0x17d >> =C2=A0[] ? lapic_next_event+0x18/0x1c >> =C2=A0[] call_softirq+0x1c/0x30 >> =C2=A0[] do_softirq+0x33/0x69 >> =C2=A0[] irq_exit+0x44/0x9c >> =C2=A0[] smp_apic_timer_interrupt+0x86/0x94 >> =C2=A0[] apic_timer_interrupt+0x67/0x70 >> =C2=A0 >> =C2=A0[] ? sock_sendmsg+0xe6/0x106 >> =C2=A0[] ? tcp_poll+0xaf/0x168 >> =C2=A0[] ? ep_send_events_proc+0x67/0x116 >> =C2=A0[] sock_poll+0x15/0x17 >> =C2=A0[] ep_send_events_proc+0x76/0x116 >> =C2=A0[] ? ep_read_events_proc+0x99/0x99 >> =C2=A0[] ep_scan_ready_list.clone.6+0x8f/0x16f >> =C2=A0[] ep_poll+0x25f/0x2e2 >> =C2=A0[] ? sys_accept4+0x133/0x15f >> =C2=A0[] sys_epoll_wait+0x90/0xae >> =C2=A0[] system_call_fastpath+0x1a/0x1f >> Code: 8b 57 60 48 89 44 24 10 8b 87 ac 00 00 00 48 89 44 24 08 31 c0 >> 8b bf a8 00 00 00 48 89 3c 24 48 c7 c7 43 07 4d 81 e8 2c 27 09 00 <0= f> >> 0b 89 c0 49 8d 04 00 c9 c3 55 48 89 e5 41 57 41 56 41 55 41 >> RIP =C2=A0[] skb_put+0x7c/0x86 >> =C2=A0RSP >> ---[ end trace a721715cd86be064 ]--- > > Thanks a lot, I belive I know where the problem is. > > Could you check if commit a21d45726acacc963d8baddf74607d9b74e2b723 > (tcp: avoid order-1 allocations on wifi and tx path) > was in your tree ? > It was, git show a21d4572 v3.4-rc2..668ce0a shows it