From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8551C2C85 for ; Thu, 7 Oct 2021 13:11:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633612310; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eqM+38+1666otMDxUxP23EDEsopNR9XAHWL2lQ2kgfc=; b=ZV5DQKQP231P1Q2/tX9XiqwEg4bIEpymmiAlr4DqLLPF86apsK+OPG1w0xCWZ7WTwHq6+B VjRFVSj45/ZP1SxVjh6D7Zs0MUq2mb8Lupf4bEWv3t25MUN3fTlmcsOeIHLwDtLgc+whZe VAdwm/9GtB7j+C/rkn8D8WHaCrktVMo= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-474-w3fsHYQlPV6bjInVP3498A-1; Thu, 07 Oct 2021 09:11:09 -0400 X-MC-Unique: w3fsHYQlPV6bjInVP3498A-1 Received: by mail-ed1-f72.google.com with SMTP id c8-20020a50d648000000b003daa53c7518so5787730edj.21 for ; Thu, 07 Oct 2021 06:11:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=eqM+38+1666otMDxUxP23EDEsopNR9XAHWL2lQ2kgfc=; b=o6Y7b3XhA1h+1OI20lQR869t1gJ7ESfT1miHAsZ3bgA1qFSaYgAO3R3/a/xWABkweR 7+v7Fphuk5XYpg+/aXvXD5d2qtPw4B/58c6GP2qlSvEEynwoHU5JAPB3kk0HI6YMO67Q aqUvEhV2LHDndpDTQdfhGIuAN1gs7ytZNsLcmRCMnWzeZIkksXT4TaQE9Npg6qHAL8Zt nKGX42iaEknz+ZbJqd5GC5NkPkwwBVKmFj4kw4wFKGbhr+t7zh7NUM3GFxHbhTX6ZASy 8Kd3vox/9432fw1rQqSAAIVZgL2JiViHhlV+qEIEsG5ofJZm1JNxPcqltb1afKPtBh0r R0TA== X-Gm-Message-State: AOAM5339r1djWU3eZBxAQ2z4MoCTUm53sOb+XuuwkqPicJNZrPcpTpsz 9ZgQfccUAUsYmsRpxEgT+b8/IgOa9u2bGWdbGCiTygPxfowCzbEZu1xx+feD/OkZic4d8eqxa6d WXaGeJhnCSSLMn3BMkk0IJgM= X-Received: by 2002:a50:d844:: with SMTP id v4mr6448394edj.378.1633612267054; Thu, 07 Oct 2021 06:11:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxaz7OxfUIIghs/oRquOlhvCDJwMg/5qNk9fzNgCZqbYrPdU0eKdvWOBedFKMh6YzIgao5ug== X-Received: by 2002:a50:d844:: with SMTP id v4mr6448015edj.378.1633612263354; Thu, 07 Oct 2021 06:11:03 -0700 (PDT) Received: from redhat.com ([2.55.132.170]) by smtp.gmail.com with ESMTPSA id fx4sm10121597ejb.113.2021.10.07.06.11.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 06:11:02 -0700 (PDT) Date: Thu, 7 Oct 2021 09:10:59 -0400 From: "Michael S. Tsirkin" To: Corentin =?iso-8859-1?Q?No=EBl?= Cc: stable@vger.kernel.org, Jason Wang , virtualization@lists.linux-foundation.org, regressions@lists.linux.dev, Eric Dumazet , Xuan Zhuo Subject: Re: virtio-net: kernel panic in virtio_net.c Message-ID: <20211007090601-mutt-send-email-mst@kernel.org> References: <5edaa2b7c2fe4abd0347b8454b2ac032b6694e2c.camel@collabora.com> Precedence: bulk X-Mailing-List: regressions@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <5edaa2b7c2fe4abd0347b8454b2ac032b6694e2c.camel@collabora.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mst@redhat.com X-Mimecast-Spam-Score: 1 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Thu, Oct 07, 2021 at 02:04:22PM +0200, Corentin Noël wrote: > I've been experiencing crashes with 5.14-rc1 and above that do not > occur with 5.13, > > here is the crash trace: > > [ 61.346677] skbuff: skb_over_panic: text:ffffffff881ae2c7 len:3762 > put:3762 head:ffff8a5ec8c22000 data:ffff8a5ec8c22010 tail:0xec2 > end:0xec0 dev: > [ 61.369192] kernel BUG at net/core/skbuff.c:111! > [ 61.372840] invalid opcode: 0000 [#1] SMP PTI > [ 61.374892] CPU: 5 PID: 0 Comm: swapper/5 Not tainted 5.14.0- > rc1linux-v5.14-rc1-for-mesa-ci.tar.bz2 #1 > [ 61.376450] Hardware name: ChromiumOS crosvm, BIOS 0 > [ 61.377222] RIP: 0010:skb_panic+0x43/0x45 > [ 61.377833] Code: 4f 70 50 8b 87 bc 00 00 00 50 8b 87 b8 00 00 00 50 > ff b7 c8 00 00 00 4c 8b 8f c0 00 00 00 48 c7 c7 18 f1 cf 88 e8 6a 43 fb > ff <0f> 0b 48 8b 14 24 48 c7 c1 20 35 b1 88 e8 ab ff ff ff 48 c7 c6 60 > [ 61.380566] RSP: 0018:ffffae258017cce0 EFLAGS: 00010246 > [ 61.381267] RAX: 000000000000008b RBX: 0000000000000010 RCX: > 00000000ffffdfff > [ 61.382246] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: > 0000000000000000 > [ 61.383376] RBP: ffffde6a80230880 R08: ffffffff88f45568 R09: > 0000000000009ffb > [ 61.384494] R10: 00000000ffffe000 R11: 3fffffffffffffff R12: > ffff8a5ec7461200 > [ 61.385696] R13: ffff8a5ec8c22000 R14: 0000000000000000 R15: > 0000000000000eb2 > [ 61.386825] FS: 0000000000000000(0000) GS:ffff8a5febd40000(0000) > knlGS:0000000000000000 > [ 61.388055] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 61.389221] CR2: 000000000148a060 CR3: 000000011ae0e005 CR4: > 0000000000370ee0 > [ 61.390871] DR0: 0000000000000000 DR1: 0000000000000000 DR2: > 0000000000000000 > [ 61.392335] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: > 0000000000000400 > [ 61.393635] Call Trace: > [ 61.394127] > [ 61.394488] skb_put.cold+0x10/0x10 > [ 61.395095] page_to_skb+0xf7/0x410 > [ 61.395689] receive_buf+0x81/0x1660 > [ 61.396228] ? netif_receive_skb_list_internal+0x1ad/0x2b0 > [ 61.397180] ? napi_gro_flush+0x97/0xe0 > [ 61.397896] ? detach_buf_split+0x67/0x120 > [ 61.398573] virtnet_poll+0x2cf/0x420 > [ 61.399197] __napi_poll+0x25/0x150 > [ 61.399764] net_rx_action+0x22f/0x280 > [ 61.400394] __do_softirq+0xba/0x257 > [ 61.401012] irq_exit_rcu+0x8e/0xb0 > [ 61.401618] common_interrupt+0x7b/0xa0 > [ 61.402270] > [ 61.402620] asm_common_interrupt+0x1e/0x40 > [ 61.403302] RIP: 0010:default_idle+0xb/0x10 > [ 61.404018] Code: 8b 04 25 00 6d 01 00 f0 80 60 02 df c3 0f ae f0 0f > ae 38 0f ae f0 eb b9 0f 1f 80 00 00 00 00 eb 07 0f 00 2d df 3e 44 00 fb > f4 cc cc cc cc 65 8b 15 31 2f a4 77 89 d2 48 8b 05 d0 a1 0c 01 48 > [ 61.407636] RSP: 0018:ffffae258008fef8 EFLAGS: 00000202 > [ 61.408394] RAX: ffffffff885ce620 RBX: 0000000000000005 RCX: > ffff8a5febd56f80 > [ 61.409451] RDX: 0000000000c1ec32 RSI: 7ffffff1b7a1e726 RDI: > ffff8a5febd5dd00 > [ 61.410530] RBP: ffff8a5fc01f8000 R08: 0000000000c1ec32 R09: > 0000000000000000 > [ 61.411715] R10: 0000000000000006 R11: 0000000000000002 R12: > 0000000000000000 > [ 61.412984] R13: 0000000000000000 R14: 0000000000000000 R15: > 0000000000000000 > [ 61.414183] ? mwait_idle+0x70/0x70 > [ 61.414805] ? mwait_idle+0x70/0x70 > [ 61.415592] default_idle_call+0x2a/0xa0 > [ 61.416216] do_idle+0x1e8/0x250 > [ 61.416722] cpu_startup_entry+0x14/0x20 > [ 61.417347] secondary_startup_64_no_verify+0xc2/0xcb > [ 61.418144] Modules linked in: > [ 61.418622] ---[ end trace 3741c3e580a52bbd ]--- > [ 61.419399] RIP: 0010:skb_panic+0x43/0x45 > [ 61.420054] Code: 4f 70 50 8b 87 bc 00 00 00 50 8b 87 b8 00 00 00 50 > ff b7 c8 00 00 00 4c 8b 8f c0 00 00 00 48 c7 c7 18 f1 cf 88 e8 6a 43 fb > ff <0f> 0b 48 8b 14 24 48 c7 c1 20 35 b1 88 e8 ab ff ff ff 48 c7 c6 60 > [ 61.422606] RSP: 0018:ffffae258017cce0 EFLAGS: 00010246 > [ 61.423865] RAX: 000000000000008b RBX: 0000000000000010 RCX: > 00000000ffffdfff > [ 61.425031] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: > 0000000000000000 > [ 61.426229] RBP: ffffde6a80230880 R08: ffffffff88f45568 R09: > 0000000000009ffb > [ 61.427439] R10: 00000000ffffe000 R11: 3fffffffffffffff R12: > ffff8a5ec7461200 > [ 61.428615] R13: ffff8a5ec8c22000 R14: 0000000000000000 R15: > 0000000000000eb2 > [ 61.429799] FS: 0000000000000000(0000) GS:ffff8a5febd40000(0000) > knlGS:0000000000000000 > [ 61.431048] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 61.431997] CR2: 000000000148a060 CR3: 000000011ae0e005 CR4: > 0000000000370ee0 > [ 61.433206] DR0: 0000000000000000 DR1: 0000000000000000 DR2: > 0000000000000000 > [ 61.434502] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: > 0000000000000400 > [ 61.435799] Kernel panic - not syncing: Fatal exception in interrupt > [ 61.439250] Kernel Offset: 0x6a00000 from 0xffffffff81000000 > (relocation range: 0xffffffff80000000-0xffffffffbfffffff) > > Here is my kernel config: > https://gitlab.freedesktop.org/tintou/mesa/-/raw/7cf2be0e1c53d1040ff8a973ddeeeb3d93250f8e/.gitlab-ci/container/x86_64.config > > > here is the decoded trace: > > [ 61.346677] skbuff: skb_over_panic: text:ffffffff881ae2c7 len:3762 > put:3762 head:ffff8a5ec8c22000 data:ffff8a5ec8c22010 tail:0xec2 > end:0xec0 dev: > [ 61.369192] kernel BUG at net/core/skbuff.c:111! > [ 61.372840] invalid opcode: 0000 [#1] SMP PTI > [ 61.374892] CPU: 5 PID: 0 Comm: swapper/5 Not tainted 5.14.0- > rc1linux-v5.14-rc1-for-mesa-ci.tar.bz2 #1 > [ 61.376450] Hardware name: ChromiumOS crosvm, BIOS 0 > [ 61.377222] RIP: skb_panic+0x43/0x45 > [ 61.377833] Code: 4f 70 50 8b 87 bc 00 00 00 50 8b 87 b8 00 00 00 50 > ff b7 c8 00 00 00 4c 8b 8f c0 00 00 00 48 c7 c7 18 f1 cf 88 e8 6a 43 fb > ff <0f> 0b 48 8b 14 24 48 c7 c1 20 35 b1 88 e8 ab ff ff ff 48 c7 c6 60 > All code > ======== > 0: 4f 70 50 rex.WRXB jo 0x53 > 3: 8b 87 bc 00 00 00 mov 0xbc(%rdi),%eax > 9: 50 push %rax > a: 8b 87 b8 00 00 00 mov 0xb8(%rdi),%eax > 10: 50 push %rax > 11: ff b7 c8 00 00 00 pushq 0xc8(%rdi) > 17: 4c 8b 8f c0 00 00 00 mov 0xc0(%rdi),%r9 > 1e: 48 c7 c7 18 f1 cf 88 mov $0xffffffff88cff118,%rdi > 25: e8 6a 43 fb ff callq 0xfffffffffffb4394 > 2a:* 0f 0b ud2 <-- trapping > instruction > 2c: 48 8b 14 24 mov (%rsp),%rdx > 30: 48 c7 c1 20 35 b1 88 mov $0xffffffff88b13520,%rcx > 37: e8 ab ff ff ff callq 0xffffffffffffffe7 > 3c: 48 rex.W > 3d: c7 .byte 0xc7 > 3e: c6 (bad) > 3f: 60 (bad) > > Code starting with the faulting instruction > =========================================== > 0: 0f 0b ud2 > 2: 48 8b 14 24 mov (%rsp),%rdx > 6: 48 c7 c1 20 35 b1 88 mov $0xffffffff88b13520,%rcx > d: e8 ab ff ff ff callq 0xffffffffffffffbd > 12: 48 rex.W > 13: c7 .byte 0xc7 > 14: c6 (bad) > 15: 60 (bad) > [ 61.380566] RSP: 0018:ffffae258017cce0 EFLAGS: 00010246 > [ 61.381267] RAX: 000000000000008b RBX: 0000000000000010 RCX: > 00000000ffffdfff > [ 61.382246] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: > 0000000000000000 > [ 61.383376] RBP: ffffde6a80230880 R08: ffffffff88f45568 R09: > 0000000000009ffb > [ 61.384494] R10: 00000000ffffe000 R11: 3fffffffffffffff R12: > ffff8a5ec7461200 > [ 61.385696] R13: ffff8a5ec8c22000 R14: 0000000000000000 R15: > 0000000000000eb2 > [ 61.386825] FS: 0000000000000000(0000) GS:ffff8a5febd40000(0000) > knlGS:0000000000000000 > [ 61.388055] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 61.389221] CR2: 000000000148a060 CR3: 000000011ae0e005 CR4: > 0000000000370ee0 > [ 61.390871] DR0: 0000000000000000 DR1: 0000000000000000 DR2: > 0000000000000000 > [ 61.392335] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: > 0000000000000400 > [ 61.393635] Call Trace: > [ 61.394127] > [ 61.394488] skb_put.cold+0x10/0x10 > [ 61.395095] page_to_skb+0xf7/0x410 > [ 61.395689] receive_buf+0x81/0x1660 > [ 61.396228] ? netif_receive_skb_list_internal+0x1ad/0x2b0 > [ 61.397180] ? napi_gro_flush+0x97/0xe0 > [ 61.397896] ? detach_buf_split+0x67/0x120 > [ 61.398573] virtnet_poll+0x2cf/0x420 > [ 61.399197] __napi_poll+0x25/0x150 > [ 61.399764] net_rx_action+0x22f/0x280 > [ 61.400394] __do_softirq+0xba/0x257 > [ 61.401012] irq_exit_rcu+0x8e/0xb0 > [ 61.401618] common_interrupt+0x7b/0xa0 > [ 61.402270] > [ 61.402620] asm_common_interrupt+0x1e/0x40 > [ 61.403302] RIP: default_idle+0xb/0x10 > [ 61.404018] Code: 8b 04 25 00 6d 01 00 f0 80 60 02 df c3 0f ae f0 0f > ae 38 0f ae f0 eb b9 0f 1f 80 00 00 00 00 eb 07 0f 00 2d df 3e 44 00 fb > f4 cc cc cc cc 65 8b 15 31 2f a4 77 89 d2 48 8b 05 d0 a1 0c 01 48 > All code > ======== > 0: 8b 04 25 00 6d 01 00 mov 0x16d00,%eax > 7: f0 80 60 02 df lock andb $0xdf,0x2(%rax) > c: c3 retq > d: 0f ae f0 mfence > 10: 0f ae 38 clflush (%rax) > 13: 0f ae f0 mfence > 16: eb b9 jmp 0xffffffffffffffd1 > 18: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) > 1f: eb 07 jmp 0x28 > 21: 0f 00 2d df 3e 44 00 verw 0x443edf(%rip) # 0x443f07 > 28: fb sti > 29: f4 hlt > 2a:* c3 retq <-- trapping > instruction > 2b: cc int3 > 2c: cc int3 > 2d: cc int3 > 2e: cc int3 > 2f: 65 8b 15 31 2f a4 77 mov %gs:0x77a42f31(%rip),%edx > # 0x77a42f67 > 36: 89 d2 mov %edx,%edx > 38: 48 8b 05 d0 a1 0c 01 mov 0x10ca1d0(%rip),%rax # > 0x10ca20f > 3f: 48 rex.W > > Code starting with the faulting instruction > =========================================== > 0: c3 retq > 1: cc int3 > 2: cc int3 > 3: cc int3 > 4: cc int3 > 5: 65 8b 15 31 2f a4 77 mov %gs:0x77a42f31(%rip),%edx > # 0x77a42f3d > c: 89 d2 mov %edx,%edx > e: 48 8b 05 d0 a1 0c 01 mov 0x10ca1d0(%rip),%rax # > 0x10ca1e5 > 15: 48 rex.W > [ 61.407636] RSP: 0018:ffffae258008fef8 EFLAGS: 00000202 > [ 61.408394] RAX: ffffffff885ce620 RBX: 0000000000000005 RCX: > ffff8a5febd56f80 > [ 61.409451] RDX: 0000000000c1ec32 RSI: 7ffffff1b7a1e726 RDI: > ffff8a5febd5dd00 > [ 61.410530] RBP: ffff8a5fc01f8000 R08: 0000000000c1ec32 R09: > 0000000000000000 > [ 61.411715] R10: 0000000000000006 R11: 0000000000000002 R12: > 0000000000000000 > [ 61.412984] R13: 0000000000000000 R14: 0000000000000000 R15: > 0000000000000000 > [ 61.414183] ? mwait_idle+0x70/0x70 > [ 61.414805] ? mwait_idle+0x70/0x70 > [ 61.415592] default_idle_call+0x2a/0xa0 > [ 61.416216] do_idle+0x1e8/0x250 > [ 61.416722] cpu_startup_entry+0x14/0x20 > [ 61.417347] secondary_startup_64_no_verify+0xc2/0xcb > [ 61.418144] Modules linked in: > [ 61.418622] ---[ end trace 3741c3e580a52bbd ]--- > [ 61.419399] RIP: skb_panic+0x43/0x45 > [ 61.420054] Code: 4f 70 50 8b 87 bc 00 00 00 50 8b 87 b8 00 00 00 50 > ff b7 c8 00 00 00 4c 8b 8f c0 00 00 00 48 c7 c7 18 f1 cf 88 e8 6a 43 fb > ff <0f> 0b 48 8b 14 24 48 c7 c1 20 35 b1 88 e8 ab ff ff ff 48 c7 c6 60 > All code > ======== > 0: 4f 70 50 rex.WRXB jo 0x53 > 3: 8b 87 bc 00 00 00 mov 0xbc(%rdi),%eax > 9: 50 push %rax > a: 8b 87 b8 00 00 00 mov 0xb8(%rdi),%eax > 10: 50 push %rax > 11: ff b7 c8 00 00 00 pushq 0xc8(%rdi) > 17: 4c 8b 8f c0 00 00 00 mov 0xc0(%rdi),%r9 > 1e: 48 c7 c7 18 f1 cf 88 mov $0xffffffff88cff118,%rdi > 25: e8 6a 43 fb ff callq 0xfffffffffffb4394 > 2a:* 0f 0b ud2 <-- trapping > instruction > 2c: 48 8b 14 24 mov (%rsp),%rdx > 30: 48 c7 c1 20 35 b1 88 mov $0xffffffff88b13520,%rcx > 37: e8 ab ff ff ff callq 0xffffffffffffffe7 > 3c: 48 rex.W > 3d: c7 .byte 0xc7 > 3e: c6 (bad) > 3f: 60 (bad) > > Code starting with the faulting instruction > =========================================== > 0: 0f 0b ud2 > 2: 48 8b 14 24 mov (%rsp),%rdx > 6: 48 c7 c1 20 35 b1 88 mov $0xffffffff88b13520,%rcx > d: e8 ab ff ff ff callq 0xffffffffffffffbd > 12: 48 rex.W > 13: c7 .byte 0xc7 > 14: c6 (bad) > 15: 60 (bad) > [ 61.422606] RSP: 0018:ffffae258017cce0 EFLAGS: 00010246 > [ 61.423865] RAX: 000000000000008b RBX: 0000000000000010 RCX: > 00000000ffffdfff > [ 61.425031] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: > 0000000000000000 > [ 61.426229] RBP: ffffde6a80230880 R08: ffffffff88f45568 R09: > 0000000000009ffb > [ 61.427439] R10: 00000000ffffe000 R11: 3fffffffffffffff R12: > ffff8a5ec7461200 > [ 61.428615] R13: ffff8a5ec8c22000 R14: 0000000000000000 R15: > 0000000000000eb2 > [ 61.429799] FS: 0000000000000000(0000) GS:ffff8a5febd40000(0000) > knlGS:0000000000000000 > > Regards, > Corentin Don't see anything obvious.. could be a net stack change. Any chance of a bisect? -- MST