syzbot


WARNING in smsusb_start_streaming

Status: auto-obsoleted due to no activity on 2023/10/15 16:00
Subsystems: usb media
[Documentation on labels]
Reported-by: syzbot+a7c205f9c1168e2f1dcc@syzkaller.appspotmail.com
First crash: 573d, last: 571d
Cause bisection: introduced by (bisect log) :
commit ebad8e731c1c06adf04621d6fd327b860c0861b5
Author: Duoming Zhou <duoming@zju.edu.cn>
Date: Mon Jan 23 02:04:38 2023 +0000

  media: usb: siano: Fix use after free bugs caused by do_submit_urb

Crash: WARNING in smsusb_stop_streaming (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 6f489a966fbeb0da63d45c2c66a8957eab604bf6
Author: Duoming Zhou <duoming@zju.edu.cn>
Date: Mon May 22 23:59:32 2023 +0000

  media: usb: siano: Fix warning due to null work_func_t function pointer

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [media?] [usb?] WARNING in smsusb_start_streaming 0 (2) 2023/08/11 13:11
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in smsusb_start_streaming C done 1 560d 560d 3/3 fixed on 2023/09/27 12:10
linux-5.15 WARNING in smsusb_start_streaming origin:lts-only C error 1 561d 562d 0/3 auto-obsoleted due to no activity on 2024/12/24 15:22
Last patch testing requests (4)
Created Duration User Patch Repo Result
2023/08/25 12:56 23m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2023/08/24 20:19 24m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing OK log
2023/07/08 04:05 18m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git d528014517f2 OK log
2023/07/08 01:54 13m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git d528014517f2 report log

Sample crash report:
smsusb:smsusb_probe: board id=7, interface number 55
smsusb:smsusb_probe: board id=7, interface number 147
smsusb:smsusb_probe: board id=7, interface number 0
smsusb:siano_media_device_register: media controller created
smsusb:smsusb_start_streaming: smsusb_submit_urb(...) failed
------------[ cut here ]------------
WARNING: CPU: 0 PID: 917 at kernel/workqueue.c:3379 __flush_work+0x946/0xb60 kernel/workqueue.c:3379
Modules linked in:
CPU: 0 PID: 917 Comm: kworker/0:2 Not tainted 6.4.0-syzkaller-11478-gd528014517f2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Workqueue: usb_hub_wq hub_event
RIP: 0010:__flush_work+0x946/0xb60 kernel/workqueue.c:3379
Code: 00 48 c7 c6 2b 36 54 81 48 c7 c7 00 27 9a 8c e8 c0 09 12 00 e9 6f fc ff ff e8 16 a9 30 00 0f 0b e9 63 fc ff ff e8 0a a9 30 00 <0f> 0b 45 31 ed e9 54 fc ff ff e8 6b d8 83 00 e9 3e fb ff ff e8 f1
RSP: 0018:ffffc900050aebf0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888071a480e8 RCX: 0000000000000000
RDX: ffff88801fc05940 RSI: ffffffff81543666 RDI: 0000000000000001
RBP: ffffc900050aed88 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 1ffffffff21ed137 R12: ffff888071a480e8
R13: 0000000000000001 R14: 0000000000000001 R15: ffff888071a48100
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000564a82410ac8 CR3: 000000002c52c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __cancel_work_timer+0x3f9/0x570 kernel/workqueue.c:3473
 smsusb_stop_streaming drivers/media/usb/siano/smsusb.c:182 [inline]
 smsusb_start_streaming+0x33c/0x650 drivers/media/usb/siano/smsusb.c:199
 smsusb_init_device+0x7f7/0xd20 drivers/media/usb/siano/smsusb.c:476
 smsusb_probe+0x5b9/0x10b0 drivers/media/usb/siano/smsusb.c:567
 usb_probe_interface+0x30f/0x960 drivers/usb/core/driver.c:396
 call_driver_probe drivers/base/dd.c:579 [inline]
 really_probe+0x240/0xca0 drivers/base/dd.c:658
 __driver_probe_device+0x1df/0x4b0 drivers/base/dd.c:798
 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:828
 __device_attach_driver+0x1d4/0x2e0 drivers/base/dd.c:956
 bus_for_each_drv+0x149/0x1d0 drivers/base/bus.c:457
 __device_attach+0x1e4/0x4b0 drivers/base/dd.c:1028
 bus_probe_device+0x17c/0x1c0 drivers/base/bus.c:532
 device_add+0x112d/0x1a40 drivers/base/core.c:3625
 usb_set_configuration+0x1196/0x1bc0 drivers/usb/core/message.c:2211
 usb_generic_driver_probe+0xcf/0x130 drivers/usb/core/generic.c:238
 usb_probe_device+0xd8/0x2c0 drivers/usb/core/driver.c:293
 call_driver_probe drivers/base/dd.c:579 [inline]
 really_probe+0x240/0xca0 drivers/base/dd.c:658
 __driver_probe_device+0x1df/0x4b0 drivers/base/dd.c:798
 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:828
 __device_attach_driver+0x1d4/0x2e0 drivers/base/dd.c:956
 bus_for_each_drv+0x149/0x1d0 drivers/base/bus.c:457
 __device_attach+0x1e4/0x4b0 drivers/base/dd.c:1028
 bus_probe_device+0x17c/0x1c0 drivers/base/bus.c:532
 device_add+0x112d/0x1a40 drivers/base/core.c:3625
 usb_new_device+0xcb2/0x19d0 drivers/usb/core/hub.c:2590
 hub_port_connect drivers/usb/core/hub.c:5422 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5566 [inline]
 port_event drivers/usb/core/hub.c:5726 [inline]
 hub_event+0x2d9e/0x4e40 drivers/usb/core/hub.c:5808
 process_one_work+0xa34/0x16f0 kernel/workqueue.c:2597
 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2748
 kthread+0x344/0x440 kernel/kthread.c:389
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/05 11:53 upstream d528014517f2 80298b6f .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in smsusb_start_streaming
2023/07/05 11:12 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 24be4d0b46bb 80298b6f .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in smsusb_start_streaming
2023/07/07 16:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 22ae5830 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in smsusb_start_streaming
2023/07/05 10:47 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 24be4d0b46bb 80298b6f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in smsusb_start_streaming
* Struck through repros no longer work on HEAD.