From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 A8BC433302 for ; Fri, 2 Jun 2023 18:39:59 +0000 (UTC) Received: from mail-il1-f206.google.com (mail-il1-f206.google.com [209.85.166.206]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F8EF197 for ; Fri, 2 Jun 2023 11:39:57 -0700 (PDT) Received: by mail-il1-f206.google.com with SMTP id e9e14a558f8ab-33b1beebbedso19471975ab.2 for ; Fri, 02 Jun 2023 11:39:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685731197; x=1688323197; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZhEwu3+y0st7jw3xMi6bjpgiy8dYyoE2vdnCTkWkN+Y=; b=RLq5xJ+70y4KmIpB5/u5lageIWn5gadqwPQ7B86jB4M0Iw5AGZZOr5vW0f73Y6ue8q ODkX2HArsTD4fbtYb3w9yR+/ozwvzbMeXNgnPVOa2RkL6gDBlQ8FeDsx1a3hevjJPspe 9RF3pnbF8YJ6wIG/NNzr2c4nj/iS/f3VzQ8fUPwyV1+QZUSzvvGZVNpxaWK67dGpB+Ws EDTuDG/62b2YMZcKKU6y9l4kN03cXLwPN7GEdTEJoe4v20iwzjfbIVH1XvKmwyEC9Efv JUFv1Y6zCDbwULs874mno1FLCCTdXz2axF3mQfXGn1X1Nsvl70y9QjwQ7qh6VNkH+H/g DRsA== X-Gm-Message-State: AC+VfDy77ED1Ex9APd21bDcRljlO/owJg/YRf42P/ryjDdvma3TvF3OH uQrSB11xBu8pEpc+8HUkEcFpqshfr4/wzHc5qi0E5b7on7MV X-Google-Smtp-Source: ACHHUZ6d4Kue8ZUkkRlr1ArwdxoOK5Ojy0C6PgsGvUDLwDDzB0sX6xQDFBByIwAKYJesPxnSkTtnHajoHjib+4qpka1cSWX16fUM Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:4c4:b0:331:1997:f88c with SMTP id f4-20020a056e0204c400b003311997f88cmr4506325ils.0.1685731196811; Fri, 02 Jun 2023 11:39:56 -0700 (PDT) Date: Fri, 02 Jun 2023 11:39:56 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000002c404a05fd29e1f1@google.com> Subject: [syzbot] [net?] [usb?] kernel BUG in cdc_ncm_fill_tx_frame From: syzbot To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, netdev@vger.kernel.org, oliver@neukum.org, pabeni@redhat.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Hello, syzbot found the following issue on: HEAD commit: 243ff7e6a035 usb: typec: mux: fix static inline syntax error git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing console output: https://syzkaller.appspot.com/x/log.txt?x=1566d371280000 kernel config: https://syzkaller.appspot.com/x/.config?x=8f4cf51e432f1270 dashboard link: https://syzkaller.appspot.com/bug?extid=1994e2ecf323ed90f255 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/10340f2fbad7/disk-243ff7e6.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/b167d8c15ccb/vmlinux-243ff7e6.xz kernel image: https://storage.googleapis.com/syzbot-assets/3cad21c537c2/bzImage-243ff7e6.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+1994e2ecf323ed90f255@syzkaller.appspotmail.com skbuff: skb_over_panic: text:ffffffff83e701ab len:428 put:172 head:ffff88810db35500 data:ffff88810db35500 tail:0x1ac end:0x140 dev: ------------[ cut here ]------------ kernel BUG at net/core/skbuff.c:200! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 3631 Comm: dhcpcd Not tainted 6.4.0-rc4-syzkaller-00151-g243ff7e6a035 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 RIP: 0010:skb_panic+0x152/0x1d0 net/core/skbuff.c:200 Code: 0f b6 04 01 84 c0 74 04 3c 03 7e 20 8b 4b 70 41 56 45 89 e8 48 c7 c7 c0 28 16 87 41 57 56 48 89 ee 52 4c 89 e2 e8 3e db 00 fc <0f> 0b 4c 89 4c 24 10 48 89 54 24 08 48 89 34 24 e8 39 43 66 fc 4c RSP: 0018:ffffc90006caf288 EFLAGS: 00010282 RAX: 0000000000000089 RBX: ffff888139b6ddc0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff812fd52c RDI: 0000000000000005 RBP: ffffffff87163720 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000403 R11: 00000000000000ae R12: ffffffff83e701ab R13: 00000000000000ac R14: ffffffff87162880 R15: 0000000000000140 FS: 00007f9bfdee2740(0000) GS:ffff8881f6700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff20c4f8d8 CR3: 000000011a135000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: skb_over_panic net/core/skbuff.c:205 [inline] skb_put+0x16f/0x1a0 net/core/skbuff.c:2390 skb_put_zero include/linux/skbuff.h:2605 [inline] cdc_ncm_ndp16 drivers/net/usb/cdc_ncm.c:1135 [inline] cdc_ncm_fill_tx_frame+0x20fb/0x38d0 drivers/net/usb/cdc_ncm.c:1310 cdc_ncm_tx_fixup+0xde/0x120 drivers/net/usb/cdc_ncm.c:1537 usbnet_start_xmit+0x156/0x2180 drivers/net/usb/usbnet.c:1365 __netdev_start_xmit include/linux/netdevice.h:4915 [inline] netdev_start_xmit include/linux/netdevice.h:4929 [inline] xmit_one net/core/dev.c:3578 [inline] dev_hard_start_xmit+0x187/0x700 net/core/dev.c:3594 sch_direct_xmit+0x25f/0x7f0 net/sched/sch_generic.c:342 __dev_xmit_skb net/core/dev.c:3805 [inline] __dev_queue_xmit+0x14c3/0x3ae0 net/core/dev.c:4210 dev_queue_xmit include/linux/netdevice.h:3085 [inline] packet_xmit+0x268/0x390 net/packet/af_packet.c:276 packet_snd net/packet/af_packet.c:3081 [inline] packet_sendmsg+0x348c/0x5040 net/packet/af_packet.c:3113 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg+0xde/0x190 net/socket.c:747 sock_write_iter+0x295/0x3d0 net/socket.c:1140 call_write_iter include/linux/fs.h:1868 [inline] do_iter_readv_writev+0x20b/0x3b0 fs/read_write.c:735 do_iter_write+0x185/0x7e0 fs/read_write.c:860 vfs_writev+0x1aa/0x670 fs/read_write.c:933 do_writev+0x279/0x2f0 fs/read_write.c:976 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f9bfdfb0e03 Code: 89 c7 48 89 44 24 08 e8 6a f2 f9 ff 48 8b 44 24 08 48 83 c4 28 c3 c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 14 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 6d 48 8b 15 f6 5f 0d 00 f7 d8 64 89 02 48 83 RSP: 002b:00007fff20c4f878 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fff20c5fb28 RCX: 00007f9bfdfb0e03 RDX: 0000000000000002 RSI: 00007fff20c4f890 RDI: 0000000000000005 RBP: 000056249631e9c7 R08: 0000000042424242 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000562496d9b7b0 R14: 00007fff20c4f928 R15: 00007fff20c4f8d8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:skb_panic+0x152/0x1d0 net/core/skbuff.c:200 Code: 0f b6 04 01 84 c0 74 04 3c 03 7e 20 8b 4b 70 41 56 45 89 e8 48 c7 c7 c0 28 16 87 41 57 56 48 89 ee 52 4c 89 e2 e8 3e db 00 fc <0f> 0b 4c 89 4c 24 10 48 89 54 24 08 48 89 34 24 e8 39 43 66 fc 4c RSP: 0018:ffffc90006caf288 EFLAGS: 00010282 RAX: 0000000000000089 RBX: ffff888139b6ddc0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff812fd52c RDI: 0000000000000005 RBP: ffffffff87163720 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000403 R11: 00000000000000ae R12: ffffffff83e701ab R13: 00000000000000ac R14: ffffffff87162880 R15: 0000000000000140 FS: 00007f9bfdee2740(0000) GS:ffff8881f6700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff20c4f8d8 CR3: 000000011a135000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the bug is already fixed, let syzbot know by replying with: #syz fix: exact-commit-title If you want to change bug's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the bug is a duplicate of another bug, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup