syzbot


WARNING in usbnet_start_xmit/usb_submit_urb

Status: fixed on 2023/09/27 12:10
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+7f13a95b8baf2254c48c@syzkaller.appspotmail.com
Fix commit: 1bebbd9b8037 net: usbnet: Fix WARNING in usbnet_start_xmit/usb_submit_urb
First crash: 580d, last: 509d
Fix bisection: fixed by (bisect log) :
commit 1bebbd9b8037a9cc75984317cb495dec4824c399
Author: Alan Stern <stern@rowland.harvard.edu>
Date: Wed Jul 12 14:15:10 2023 +0000

  net: usbnet: Fix WARNING in usbnet_start_xmit/usb_submit_urb

  
Bug presence (2)
Date Name Commit Repro Result
2023/08/15 linux-6.1.y (ToT) 1321ab403b38 C [report] INFO: rcu detected stall in corrupted
2023/08/15 upstream (ToT) 4853c74bd7ab C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in usbnet_start_xmit/usb_submit_urb C done 2 522d 578d 3/3 fixed on 2023/09/23 10:19
upstream WARNING in usbnet_start_xmit/usb_submit_urb usb C done 92 541d 1124d 23/28 fixed on 2023/10/12 12:47
upstream WARNING in usbnet_start_xmit/usb_submit_urb (2) usb C error 9 6d00h 270d 0/28 upstream: reported C repro on 2024/03/17 14:43
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/09/26 15:28 3h44m bisect fix linux-6.1.y OK (1) job log
2023/07/22 16:39 2h59m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
------------[ cut here ]------------
usb 3-1: BOGUS urb xfer, pipe 3 != type 1
WARNING: CPU: 0 PID: 14 at drivers/usb/core/urb.c:505 usb_submit_urb+0xc8d/0x1990 drivers/usb/core/urb.c:504
Modules linked in:
CPU: 0 PID: 14 Comm: kworker/0:1 Not tainted 6.1.33-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
Workqueue: mld mld_ifc_work
RIP: 0010:usb_submit_urb+0xc8d/0x1990 drivers/usb/core/urb.c:504
Code: 0f b6 04 18 84 c0 44 8b 64 24 1c 0f 85 2b 09 00 00 45 8b 07 48 c7 c7 c0 ba 89 8b 48 8b 74 24 08 4c 89 f2 89 e9 e8 43 f3 ef fa <0f> 0b 48 8b 5c 24 20 48 8b 6c 24 28 41 89 de 4c 89 f7 48 c7 c6 50
RSP: 0018:ffffc90000137210 EFLAGS: 00010046
RAX: a203410ce53e4d00 RBX: dffffc0000000000 RCX: ffff88813fe89dc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000003 R08: ffffffff81524d5e R09: ffffed1017304f1c
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff888027d76800 R14: ffff888021281b68 R15: ffffffff8b89b8ac
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7650e90cd0 CR3: 0000000027cc5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 usbnet_start_xmit+0xfbf/0x1e90 drivers/net/usb/usbnet.c:1455
 __netdev_start_xmit include/linux/netdevice.h:4850 [inline]
 netdev_start_xmit include/linux/netdevice.h:4864 [inline]
 xmit_one net/core/dev.c:3595 [inline]
 dev_hard_start_xmit+0x261/0x8c0 net/core/dev.c:3611
 sch_direct_xmit+0x2b2/0x5e0 net/sched/sch_generic.c:342
 __dev_xmit_skb net/core/dev.c:3822 [inline]
 __dev_queue_xmit+0x1ab4/0x3c90 net/core/dev.c:4227
 neigh_output include/net/neighbour.h:546 [inline]
 ip6_finish_output2+0xf9f/0x15b0 net/ipv6/ip6_output.c:134
 __ip6_finish_output net/ipv6/ip6_output.c:195 [inline]
 ip6_finish_output+0x6ac/0xa80 net/ipv6/ip6_output.c:206
 dst_output include/net/dst.h:444 [inline]
 NF_HOOK+0x166/0x4f0 include/linux/netfilter.h:302
 mld_sendpack+0x844/0xdb0 net/ipv6/mcast.c:1820
 mld_send_cr net/ipv6/mcast.c:2121 [inline]
 mld_ifc_work+0x7d7/0xc90 net/ipv6/mcast.c:2653
 process_one_work+0x8aa/0x11f0 kernel/workqueue.c:2289
 worker_thread+0xa5f/0x1210 kernel/workqueue.c:2436
 kthread+0x26e/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/11 17:28 linux-6.1.y 2f3918bc53fb 49519f06 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in usbnet_start_xmit/usb_submit_urb
2023/05/13 01:26 linux-6.1.y bf4ad6fa4e53 ecca8a24 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in usbnet_start_xmit/usb_submit_urb
* Struck through repros no longer work on HEAD.