Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp552645rwd; Sat, 27 May 2023 02:24:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7X7tWLOXDn3RexgHVTdBWypZAgtNC5am2vsOT9keitB7Y1JwdFOYCkAe4tkW43E9Ti0AHc X-Received: by 2002:a17:90a:bf8c:b0:253:25c3:7a95 with SMTP id d12-20020a17090abf8c00b0025325c37a95mr1868997pjs.14.1685179455748; Sat, 27 May 2023 02:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685179455; cv=none; d=google.com; s=arc-20160816; b=aZgFRKa4trJoW7J2ATY1JDRACpnb3wdQNoyo6JT+LGbm+vxrfYh8/7TPhE+w9qmfiK W3/ArqfezLcvnA9BINbAdXt2zfWcOAQPFMN1Q6VE9h9z5zMiSX/n7Cxha3v5fL1IV3sJ Zwl6UzgelL55WkL5AHUiuUVpo6NHceT82iB//iqjhwt1lCtiW2SnKmcnUHvsFHT8k0l/ JlPy/5fffXp7F/4ZBoS8wnWPGfU8SB2mugGZFYQiA2Pm2qa6Er1C2fzYvOmFDuguquBC UtCeA61cGZUnZlMkoPK+1wmfkplADjYmOeAaEmNmoi+DCpVkQe34fLY0CZVLiegdI/UC fcag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=4/R0iJbnS1a9VbE09MhGVXroMkMbEeyg20yC6EwusTE=; b=rP/v0AI12XIwbtbCYk+lcHad9GlfYP/1izGHxb/t+W5/egUCn3ZC+HPHYA6tCV8T3z 3c/YXH5AOchLhAQ99PoU26k9ejcEv6Kw0puODIgNV/hRYZQ2fOi2cJa75o0qq1IQHd/o FfLg2KCdM/gnwG1Azmh1ljDYX6TWh/m/sYtcmWhJLtnGWo7OMCA0QkkbLgnCNMGOLeqD 46YZJhmcpggpJgln6Vf/f2G18Q38VNByOzDNw7SDoRZU5uSyFkjs8ofjv/6T+FO+AQ2s FvR+379j/3lDN/SI51FGFghyFTY7mUO7A58mQw0TC9SZ1a4UpJnkt13/enbcgTMPW6uM RUSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 22-20020a17090a005600b0024e2bb99e67si5478580pjb.7.2023.05.27.02.24.00; Sat, 27 May 2023 02:24:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231559AbjE0Ivj (ORCPT + 99 others); Sat, 27 May 2023 04:51:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjE0Ivi (ORCPT ); Sat, 27 May 2023 04:51:38 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80E91EA; Sat, 27 May 2023 01:51:35 -0700 (PDT) Received: from dggpemm500012.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QSwSm0FH3zsSLw; Sat, 27 May 2023 16:49:12 +0800 (CST) Received: from localhost.localdomain (10.175.124.27) by dggpemm500012.china.huawei.com (7.185.36.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sat, 27 May 2023 16:51:22 +0800 From: gaoxingwang To: , , , , CC: , , , Subject: ip6_gre: paninc in ip6gre_header Date: Sat, 27 May 2023 16:51:00 +0800 Message-ID: <20230527085100.4114825-1-gaoxingwang1@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500012.china.huawei.com (7.185.36.89) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: I am doing some fuzz test for kernel, the following crash was triggered. My kernel version is 5.10.0.Have you encountered similar problems? If there is a fix, please let me know. Thank you very much. skbuff: skb_under_panic: text:ffffffff8ad94c6b len:-2047924812 put:-2047924888 head:ffff888034c9c000 data:ffff887faeda9bf8 tail:0x1ac end:0xec0 dev:team1 ------------[ cut here ]------------ kernel BUG at net/core/skbuff.c:110! invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 1 PID: 1546 Comm: syz-fuzzer Not tainted 5.10.0 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1.1 04/01/2014 RIP: 0010:skb_panic+0x171/0x183 net/core/skbuff.c:110 Code: f5 4c 8b 4c 24 10 41 56 8b 4b 70 45 89 e8 4c 89 e2 41 57 48 89 ee 48 c7 c7 20 f2 2d 8e ff 74 24 10 ff 74 24 20 e8 da 59 62 ff <0f> 0b 48 c7 c7 00 2f 5e 92 48 83 c4 20 e8 cb 6f 6d ff e8 9c c5 5b RSP: 0000:ffff8880bcc096f0 EFLAGS: 00010282 RAX: 0000000000000099 RBX: ffff88801e080f00 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff815ffb62 RDI: ffffed10179812d0 RBP: ffffffff8e2df720 R08: 0000000000000099 R09: ffffed1017981267 R10: ffff8880bcc09337 R11: ffffed1017981266 R12: ffffffff8ad94c6b R13: 0000000085ef2568 R14: ffff888062b8c000 R15: 0000000000000ec0 FS: 000000c01741c490(0000) GS:ffff8880bcc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c021635000 CR3: 000000001fdb6000 CR4: 0000000000150ee0 Call Trace: skb_under_panic net/core/skbuff.c:120 [inline] skb_push.cold+0x24/0x24 net/core/skbuff.c:1942 ip6gre_header+0xcb/0xaf0 net/ipv6/ip6_gre.c:1380 dev_hard_header include/linux/netdevice.h:3210 [inline] neigh_connected_output+0x2a4/0x400 net/core/neighbour.c:1541 neigh_output include/net/neighbour.h:524 [inline] ip6_finish_output2+0xa20/0x1d20 net/ipv6/ip6_output.c:145 __ip6_finish_output net/ipv6/ip6_output.c:210 [inline] __ip6_finish_output+0x35d/0x920 net/ipv6/ip6_output.c:189 ip6_finish_output+0x38/0x1c0 net/ipv6/ip6_output.c:220 NF_HOOK_COND include/linux/netfilter.h:293 [inline] ip6_output+0x1cc/0x400 net/ipv6/ip6_output.c:243 dst_output include/net/dst.h:453 [inline] NF_HOOK include/linux/netfilter.h:304 [inline] mld_sendpack+0x5ca/0xb80 net/ipv6/mcast.c:1679 mld_send_cr net/ipv6/mcast.c:1975 [inline] mld_ifc_timer_expire+0x3c0/0x810 net/ipv6/mcast.c:2474 call_timer_fn+0x3f/0x200 kernel/time/timer.c:1414 expire_timers+0x21c/0x3b0 kernel/time/timer.c:1459 __run_timers kernel/time/timer.c:1753 [inline] run_timer_softirq+0x2ad/0x7f0 kernel/time/timer.c:1766 __do_softirq+0x19b/0x612 kernel/softirq.c:322 asm_call_irq_on_stack+0x12/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x37/0x50 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:417 [inline] __irq_exit_rcu kernel/softirq.c:447 [inline] irq_exit_rcu+0x1a2/0x240 kernel/softirq.c:459 sysvec_apic_timer_interrupt+0x36/0x80 arch/x86/kernel/apic/apic.c:1116 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0033:0x41e83e Code: 44 89 c1 45 89 d5 41 d3 ea 41 0f ba e2 04 0f 83 ec 00 00 00 48 89 44 24 58 41 0f a3 cd 0f 83 87 00 00 00 4e 8d 14 20 4d 8b 12 <66> 90 4d 85 d2 74 79 4d 89 d5 4d 29 e2 4c 39 d2 77 6e 89 4c 24 3c RSP: 002b:000000c002629e88 EFLAGS: 00000207 RAX: 0000000000000008 RBX: 000000c000041698 RCX: 0000000000000001 RDX: 0000000000000040 RSI: 0000000000203002 RDI: 000000c0205f4800 RBP: 000000c002629f10 R08: 0000000000000001 R09: 00007f954fcd92d0 R10: 000000c00350bee0 R11: 00007f954fe52fff R12: 000000c0090c5a00 R13: 00000000000000fa R14: 000000c007b66ea0 R15: ffffffffffffffff Modules linked in: kernel fault(0x1) notification starting on CPU 1 kernel fault(0x1) notification finished on CPU 1 ---[ end trace 854b3d6f97989351 ]--- RIP: 0010:skb_panic+0x171/0x183 net/core/skbuff.c:110 Code: f5 4c 8b 4c 24 10 41 56 8b 4b 70 45 89 e8 4c 89 e2 41 57 48 89 ee 48 c7 c7 20 f2 2d 8e ff 74 24 10 ff 74 24 20 e8 da 59 62 ff <0f> 0b 48 c7 c7 00 2f 5e 92 48 83 c4 20 e8 cb 6f 6d ff e8 9c c5 5b RSP: 0000:ffff8880bcc096f0 EFLAGS: 00010282 RAX: 0000000000000099 RBX: ffff88801e080f00 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff815ffb62 RDI: ffffed10179812d0 RBP: ffffffff8e2df720 R08: 0000000000000099 R09: ffffed1017981267 R10: ffff8880bcc09337 R11: ffffed1017981266 R12: ffffffff8ad94c6b R13: 0000000085ef2568 R14: ffff888062b8c000 R15: 0000000000000ec0 FS: 000000c01741c490(0000) GS:ffff8880bcc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c021635000 CR3: 000000001fdb6000 CR4: 0000000000150ee0