syzbot


WARNING in rtl8152_probe

Status: fixed on 2021/11/10 00:50
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+95afd23673f5dd295c57@syzkaller.appspotmail.com
Fix commit: 1a44fb38cc65 r8152: check the informaton of the device
First crash: 1297d, last: 1266d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH net 0/9] r8152: serial fixes 63 (63) 2021/06/17 19:20
[syzbot] WARNING in rtl8152_probe 13 (14) 2021/05/17 13:47
[PATCH] net:usb:r8152: remove WARN_ON_ONCE() in rtl_vendor_mode() 2 (2) 2021/05/17 11:04
Last patch testing requests (2)
Created Duration User Patch Repo Result
2021/05/15 07:37 20m ducheng2@gmail.com patch upstream OK
2021/05/13 03:21 12m ducheng2@gmail.com upstream report log

Sample crash report:
usb 1-1: New USB device found, idVendor=045e, idProduct=0927, bcdDevice=89.4f
usb 1-1: New USB device strings: Mfr=0, Product=4, SerialNumber=0
usb 1-1: Product: syz
usb 1-1: config 0 descriptor??
------------[ cut here ]------------
WARNING: CPU: 1 PID: 32 at drivers/net/usb/r8152.c:8138 rtl_vendor_mode drivers/net/usb/r8152.c:8138 [inline]
WARNING: CPU: 1 PID: 32 at drivers/net/usb/r8152.c:8138 rtl8152_probe+0x248/0x3050 drivers/net/usb/r8152.c:9381
Modules linked in:
CPU: 1 PID: 32 Comm: kworker/1:1 Not tainted 5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
RIP: 0010:rtl_vendor_mode drivers/net/usb/r8152.c:8138 [inline]
RIP: 0010:rtl8152_probe+0x248/0x3050 drivers/net/usb/r8152.c:9381
Code: c3 a8 02 00 00 89 ee e8 26 bf c5 fd 41 39 ed 0f 85 40 ff ff ff e8 58 b9 c5 fd 44 89 ee 44 89 ef e8 0d bf c5 fd e8 48 b9 c5 fd <0f> 0b 41 bc ed ff ff ff e8 3b b9 c5 fd 44 89 e0 48 83 c4 40 5b 5d
RSP: 0018:ffffc900001a7178 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8881191ceaa8 RCX: 0000000000000000
RDX: ffff888107fe8000 RSI: ffffffff837b33c8 RDI: 0000000000000003
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000002
R10: ffffffff837b33c3 R11: 00000000ffffffff R12: dffffc0000000000
R13: 0000000000000001 R14: ffff8881191660a8 R15: 0000000000000002
FS:  0000000000000000(0000) GS:ffff8881f6b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004b30f0 CR3: 000000010a0c8000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 usb_probe_interface+0x315/0x7f0 drivers/usb/core/driver.c:396
 really_probe+0x291/0xf60 drivers/base/dd.c:576
 driver_probe_device+0x298/0x410 drivers/base/dd.c:763
 __device_attach_driver+0x203/0x2c0 drivers/base/dd.c:870
 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:431
 __device_attach+0x228/0x4b0 drivers/base/dd.c:938
 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491
 device_add+0xbe0/0x2100 drivers/base/core.c:3319
 usb_set_configuration+0x113f/0x1910 drivers/usb/core/message.c:2164
 usb_generic_driver_probe+0xba/0x100 drivers/usb/core/generic.c:238
 usb_probe_device+0xd9/0x2c0 drivers/usb/core/driver.c:293
 really_probe+0x291/0xf60 drivers/base/dd.c:576
 driver_probe_device+0x298/0x410 drivers/base/dd.c:763
 __device_attach_driver+0x203/0x2c0 drivers/base/dd.c:870
 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:431
 __device_attach+0x228/0x4b0 drivers/base/dd.c:938
 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491
 device_add+0xbe0/0x2100 drivers/base/core.c:3319
 usb_new_device.cold+0x721/0x1058 drivers/usb/core/hub.c:2556
 hub_port_connect drivers/usb/core/hub.c:5276 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5416 [inline]
 port_event drivers/usb/core/hub.c:5562 [inline]
 hub_event+0x2357/0x4320 drivers/usb/core/hub.c:5644
 process_one_work+0x98d/0x1580 kernel/workqueue.c:2275
 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421
 kthread+0x38c/0x460 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/05 08:37 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d665ea6ea86c 06c27ff5 .config console log report syz C ci2-upstream-usb WARNING in rtl8152_probe
2021/06/04 17:05 linux-next a1f92694393a 966a236b .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in rtl8152_probe
2021/05/19 09:30 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 9fbf82c76414 a343ba6b .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/18 02:02 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 9fbf82c76414 a343ba6b .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/17 10:20 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 9fbf82c76414 a2eb125d .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/16 20:41 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 216e0e563d81 f54a5c09 .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/15 13:19 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 216e0e563d81 93f844de .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/15 08:08 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 216e0e563d81 8bdd5343 .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/14 19:56 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 216e0e563d81 8bdd5343 .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/14 17:26 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 216e0e563d81 8bdd5343 .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/14 16:56 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 216e0e563d81 8bdd5343 .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/14 01:53 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 216e0e563d81 ecb594cb .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/13 17:11 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 216e0e563d81 ecb594cb .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/11 05:17 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 4676be28a46e ca873091 .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/10 20:01 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing f91e5d097f12 ca873091 .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/10 09:12 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 31a8503589c4 bc5434be .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/10 08:45 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 31a8503589c4 bc5434be .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/09 14:50 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 31a8503589c4 bc5434be .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/09 12:02 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 31a8503589c4 bc5434be .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/09 09:10 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 31a8503589c4 bc5434be .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/08 19:10 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 31a8503589c4 bc5434be .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/05 07:50 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d665ea6ea86c 06c27ff5 .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
2021/05/05 07:43 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d665ea6ea86c 06c27ff5 .config console log report info ci2-upstream-usb WARNING in rtl8152_probe
* Struck through repros no longer work on HEAD.