syzbot


WARNING in usbnet_start_xmit/usb_submit_urb

Status: fixed on 2023/09/23 10:19
Reported-by: syzbot+cee26627db0101336130@syzkaller.appspotmail.com
Fix commit: 27d0f755d649 net: usbnet: Fix WARNING in usbnet_start_xmit/usb_submit_urb
First crash: 556d, last: 500d
Fix bisection: fixed by (bisect log) :
commit 27d0f755d649d388fcd12f01436c9a33289e14e3
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 (1)
Date Name Commit Repro Result
2023/08/28 upstream (ToT) 727dbda16b83 C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in usbnet_start_xmit/usb_submit_urb usb C done 92 519d 1102d 23/28 fixed on 2023/10/12 12:47
linux-6.1 WARNING in usbnet_start_xmit/usb_submit_urb origin:lts-only C done 2 487d 558d 3/3 fixed on 2023/09/27 12:10
upstream WARNING in usbnet_start_xmit/usb_submit_urb (2) usb C error 8 8d11h 248d 0/28 upstream: reported C repro on 2024/03/17 14:43
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/09/21 17:42 3h00m bisect fix linux-5.15.y OK (1) job log
2023/07/09 19:27 1h45m bisect fix linux-5.15.y OK (0) job log log

Sample crash report:
------------[ cut here ]------------
usb 1-1: BOGUS urb xfer, pipe 3 != type 1
WARNING: CPU: 1 PID: 1198 at drivers/usb/core/urb.c:503 usb_submit_urb+0xc8d/0x1990 drivers/usb/core/urb.c:502
Modules linked in:
CPU: 1 PID: 1198 Comm: kworker/1:2 Not tainted 5.15.114-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:502
Code: 0f b6 04 18 84 c0 44 8b 64 24 1c 0f 85 2b 09 00 00 45 8b 07 48 c7 c7 e0 0b 22 8b 48 8b 74 24 08 4c 89 f2 89 e9 e8 73 16 32 fb <0f> 0b 48 8b 5c 24 20 48 8b 6c 24 28 41 89 de 4c 89 f7 48 c7 c6 50
RSP: 0018:ffffc9000506f308 EFLAGS: 00010046
RAX: 0fecbf75700a5000 RBX: dffffc0000000000 RCX: ffff88801d2a8000
RDX: 0000000000000000 RSI: 0000000080000403 RDI: 0000000000000000
RBP: 0000000000000003 R08: ffffffff8166491c R09: ffffed1017364f24
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff88801fda0c00 R14: ffff88801ec123e8 R15: ffffffff8b2209cc
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005639eb995768 CR3: 0000000017120000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 usbnet_start_xmit+0xf4c/0x1d70 drivers/net/usb/usbnet.c:1456
 __netdev_start_xmit include/linux/netdevice.h:5019 [inline]
 netdev_start_xmit include/linux/netdevice.h:5033 [inline]
 xmit_one net/core/dev.c:3594 [inline]
 dev_hard_start_xmit+0x298/0x7a0 net/core/dev.c:3610
 sch_direct_xmit+0x2b2/0x5e0 net/sched/sch_generic.c:342
 __dev_xmit_skb net/core/dev.c:3821 [inline]
 __dev_queue_xmit+0x18ee/0x3230 net/core/dev.c:4190
 neigh_output include/net/neighbour.h:516 [inline]
 ip6_finish_output2+0xee4/0x14f0 net/ipv6/ip6_output.c:126
 dst_output include/net/dst.h:449 [inline]
 NF_HOOK+0x166/0x4f0 include/linux/netfilter.h:307
 mld_sendpack+0x70e/0xc10 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+0x8a1/0x10c0 kernel/workqueue.c:2307
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2454
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/04 12:02 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in usbnet_start_xmit/usb_submit_urb
2023/05/14 23:07 linux-5.15.y b0ece631f84a 2b9ba477 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in usbnet_start_xmit/usb_submit_urb
* Struck through repros no longer work on HEAD.