syzbot


general protection fault in vmk80xx_write_packet

Status: fixed on 2020/11/16 12:12
Subsystems: usb staging
[Documentation on labels]
Reported-by: syzbot+009f546aa1370056b1c2@syzkaller.appspotmail.com
Fix commit: e1f13c879a7c staging: comedi: check validity of wMaxPacketSize of usb endpoints found
First crash: 1816d, last: 1352d
Discussions (17)
Title Replies (including bot) Last reply
[PATCH v3] staging: comedi: check validity of wMaxPacketSize of usb endpoints found 4 (4) 2020/10/19 17:02
[PATCH 5.9 00/15] 5.9.1-rc1 review 26 (26) 2020/10/19 17:02
[PATCH 4.4 00/16] 4.4.240-rc1 review 21 (21) 2020/10/17 16:19
[PATCH 4.9 00/16] 4.9.240-rc1 review 20 (20) 2020/10/17 16:14
[PATCH 4.14 00/18] 4.14.202-rc1 review 22 (22) 2020/10/17 16:11
[PATCH 4.19 00/21] 4.19.152-rc1 review 32 (32) 2020/10/17 16:09
[PATCH 5.4 00/22] 5.4.72-rc1 review 26 (26) 2020/10/17 16:07
[PATCH 5.8 00/14] 5.8.16-rc1 review 23 (23) 2020/10/17 16:05
[PATCH] staging: comedi: check validity of wMaxPacketSize of usb endpoints found 5 (5) 2020/10/10 08:26
[PATCH] staging: comedi: check validity of wMaxPacketSize of usb endpoints found 2 (2) 2020/10/09 16:24
Reminder: 45 active syzbot reports in usb subsystem 1 (1) 2019/11/19 04:27
Reminder: 67 active syzbot reports in usb subsystem 1 (1) 2019/10/04 03:38
Reminder: 52 active syzbot reports in usb subsystem 4 (4) 2019/09/19 19:01
Reminder: 52 active syzbot reports in usb subsystem 1 (1) 2019/08/22 03:28
Reminder: 67 open syzbot bugs in usb subsystem 1 (1) 2019/07/24 01:35
Reminder: 47 open syzbot bugs in usb subsystem 1 (1) 2019/07/09 19:01
general protection fault in vmk80xx_write_packet 0 (1) 2019/07/09 12:27
Last patch testing requests (4)
Created Duration User Patch Repo Result
2020/10/09 15:36 17m anant.thazhemadam@gmail.com patch upstream OK
2020/10/09 11:17 16m anant.thazhemadam@gmail.com patch upstream OK
2020/10/09 08:35 11m anant.thazhemadam@gmail.com linux-next report log
2020/10/09 08:34 10m anant.thazhemadam@gmail.com upstream report log

Sample crash report:
usb 1-1: config 0 interface 44 altsetting 0 bulk endpoint 0x8A has invalid maxpacket 0
usb 1-1: New USB device found, idVendor=10cf, idProduct=5501, bcdDevice=67.87
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 1-1: config 0 descriptor??
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 0 PID: 158 Comm: kworker/0:3 Not tainted 5.7.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
RIP: 0010:vmk80xx_write_packet+0x75/0x260 drivers/staging/comedi/drivers/vmk80xx.c:204
Code: 48 8d 7b 70 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 d3 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 6b 70 4c 89 ea 48 c1 ea 03 <0f> b6 04 02 4c 89 ea 83 e2 07 38 d0 7f 08 84 c0 0f 85 84 01 00 00
RSP: 0018:ffff8881cec0f128 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8881cff53300 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff8498d493 RDI: ffff8881cff53370
RBP: ffff8881c257f000 R08: ffff8881cf93b180 R09: 0000000000000010
R10: ffffffff893646f7 R11: fffffbfff126c8de R12: ffff8881cd0ec000
R13: 0000000000000010 R14: 0000000000000000 R15: ffff8881cfee2088
FS:  0000000000000000(0000) GS:ffff8881db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ab70eaa160 CR3: 00000001d0f7d000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 vmk80xx_reset_device drivers/staging/comedi/drivers/vmk80xx.c:226 [inline]
 vmk80xx_auto_attach+0x13ee/0x1800 drivers/staging/comedi/drivers/vmk80xx.c:814
 comedi_auto_config+0x16e/0x250 drivers/staging/comedi/drivers.c:1067
 usb_probe_interface+0x310/0x800 drivers/usb/core/driver.c:374
 really_probe+0x290/0xac0 drivers/base/dd.c:527
 driver_probe_device+0x223/0x350 drivers/base/dd.c:701
 __device_attach_driver+0x1d1/0x290 drivers/base/dd.c:808
 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:431
 __device_attach+0x21a/0x390 drivers/base/dd.c:874
 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491
 device_add+0x1367/0x1c20 drivers/base/core.c:2533
 usb_set_configuration+0xed4/0x1850 drivers/usb/core/message.c:2025
 usb_generic_driver_probe+0x9d/0xe0 drivers/usb/core/generic.c:241
 usb_probe_device+0xd9/0x230 drivers/usb/core/driver.c:272
 really_probe+0x290/0xac0 drivers/base/dd.c:527
 driver_probe_device+0x223/0x350 drivers/base/dd.c:701
 __device_attach_driver+0x1d1/0x290 drivers/base/dd.c:808
 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:431
 __device_attach+0x21a/0x390 drivers/base/dd.c:874
 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491
 device_add+0x1367/0x1c20 drivers/base/core.c:2533
 usb_new_device.cold+0x552/0xf6e drivers/usb/core/hub.c:2548
 hub_port_connect drivers/usb/core/hub.c:5195 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5335 [inline]
 port_event drivers/usb/core/hub.c:5481 [inline]
 hub_event+0x226d/0x43c0 drivers/usb/core/hub.c:5563
 process_one_work+0x965/0x1630 kernel/workqueue.c:2268
 worker_thread+0x96/0xe20 kernel/workqueue.c:2414
 kthread+0x326/0x430 kernel/kthread.c:268
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Modules linked in:
---[ end trace f72ff8b628a85001 ]---
RIP: 0010:vmk80xx_write_packet+

Crashes (82):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/13 23:52 https://github.com/google/kasan.git usb-fuzzer 059e7e0ff26c a885920d .config console log report syz C ci2-upstream-usb
2020/02/28 21:08 https://github.com/google/kasan.git usb-fuzzer d6ff8147a51c c88c7b75 .config console log report syz C ci2-upstream-usb
2020/02/27 02:16 https://github.com/google/kasan.git usb-fuzzer d6ff8147a51c 251aabb7 .config console log report syz C ci2-upstream-usb
2020/02/25 09:46 https://github.com/google/kasan.git usb-fuzzer d6ff8147a51c 59b57593 .config console log report syz C ci2-upstream-usb
2020/01/23 02:16 https://github.com/google/kasan.git usb-fuzzer 4cc301ee04d9 3334d684 .config console log report syz C ci2-upstream-usb
2019/12/20 11:44 https://github.com/google/kasan.git usb-fuzzer ecdf2214f472 36650b4b .config console log report syz C ci2-upstream-usb
2019/12/13 05:01 https://github.com/google/kasan.git usb-fuzzer 4cc037ecf2cb 08003f64 .config console log report syz C ci2-upstream-usb
2019/12/06 23:41 https://github.com/google/kasan.git usb-fuzzer 1f22d15c209f 85f26751 .config console log report syz C ci2-upstream-usb
2019/12/03 21:04 https://github.com/google/kasan.git usb-fuzzer 1f22d15c209f 0ecb9746 .config console log report syz C ci2-upstream-usb
2019/11/16 10:38 https://github.com/google/kasan.git usb-fuzzer 46178223c0ca cdac920b .config console log report syz C ci2-upstream-usb
2019/11/07 14:36 https://github.com/google/kasan.git usb-fuzzer d60bbfea36c1 d797d201 .config console log report syz C ci2-upstream-usb
2019/11/05 22:06 https://github.com/google/kasan.git usb-fuzzer b1aa9d834830 af5c522d .config console log report syz C ci2-upstream-usb
2019/10/30 01:56 https://github.com/google/kasan.git usb-fuzzer ff6409a6ec35 5ea87a66 .config console log report syz C ci2-upstream-usb
2019/10/23 00:36 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 4ee855e7 .config console log report syz C ci2-upstream-usb
2019/10/02 20:44 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 2e29b534 .config console log report syz C ci2-upstream-usb
2019/09/27 01:35 https://github.com/google/kasan.git usb-fuzzer 2994c07743fe 2f1548bc .config console log report syz C ci2-upstream-usb
2019/09/21 08:47 https://github.com/google/kasan.git usb-fuzzer e0bd8d794fc9 d96e88f3 .config console log report syz C ci2-upstream-usb
2019/09/07 02:38 https://github.com/google/kasan.git usb-fuzzer f0df5c1be1e9 acb5b744 .config console log report syz C ci2-upstream-usb
2019/08/31 01:51 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 bcd7bcc2 .config console log report syz C ci2-upstream-usb
2019/08/20 17:36 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 cfc9868f .config console log report syz C ci2-upstream-usb
2019/08/09 19:25 https://github.com/google/kasan.git usb-fuzzer e96407b49762 aff9e255 .config console log report syz C ci2-upstream-usb
2019/07/23 07:59 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 bb071d58 .config console log report syz C ci2-upstream-usb
2019/07/11 23:27 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 186a30b9 .config console log report syz C ci2-upstream-usb
2019/07/11 01:33 https://github.com/google/kasan.git usb-fuzzer 7829a896a587 ff7bf04c .config console log report syz C ci2-upstream-usb
2019/07/02 02:56 https://github.com/google/kasan.git usb-fuzzer 7829a896a587 cccc4302 .config console log report syz C ci2-upstream-usb
2020/10/07 09:12 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing a4f88430af89 1880b4a9 .config console log report info ci2-upstream-usb
2020/07/03 10:10 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing c8d141ce1b85 f30c14bf .config console log report ci2-upstream-usb
2020/05/06 21:33 https://github.com/google/kasan.git usb-fuzzer 059e7e0ff26c 4618eb2d .config console log report ci2-upstream-usb
2020/03/22 01:25 https://github.com/google/kasan.git usb-fuzzer e17994d1e7b1 78267cec .config console log report ci2-upstream-usb
2020/03/21 09:09 https://github.com/google/kasan.git usb-fuzzer e17994d1e7b1 aa6c6a55 .config console log report ci2-upstream-usb
2020/03/14 21:42 https://github.com/google/kasan.git usb-fuzzer d6ff8147a51c 749688d2 .config console log report ci2-upstream-usb
2020/03/07 12:31 https://github.com/google/kasan.git usb-fuzzer d6ff8147a51c 2e9971bb .config console log report ci2-upstream-usb
2020/02/01 01:20 https://github.com/google/kasan.git usb-fuzzer cd234325a5f1 0eb59c27 .config console log report ci2-upstream-usb
2020/01/27 17:33 https://github.com/google/kasan.git usb-fuzzer cd234325a5f1 56cd6c9b .config console log report ci2-upstream-usb
2020/01/23 10:13 https://github.com/google/kasan.git usb-fuzzer 4cc301ee04d9 3334d684 .config console log report ci2-upstream-usb
2020/01/14 23:04 https://github.com/google/kasan.git usb-fuzzer 4cc301ee04d9 fa12bd3c .config console log report ci2-upstream-usb
2020/01/03 16:34 https://github.com/google/kasan.git usb-fuzzer ecdf2214f472 9dcc1191 .config console log report ci2-upstream-usb
2019/12/25 23:00 https://github.com/google/kasan.git usb-fuzzer ecdf2214f472 be5c2c81 .config console log report ci2-upstream-usb
2019/12/25 19:49 https://github.com/google/kasan.git usb-fuzzer ecdf2214f472 be5c2c81 .config console log report ci2-upstream-usb
2019/12/25 06:23 https://github.com/google/kasan.git usb-fuzzer ecdf2214f472 be5c2c81 .config console log report ci2-upstream-usb
2019/12/20 01:44 https://github.com/google/kasan.git usb-fuzzer ecdf2214f472 36650b4b .config console log report ci2-upstream-usb
2019/12/16 10:49 https://github.com/google/kasan.git usb-fuzzer 4cc037ecf2cb 0ae38e44 .config console log report ci2-upstream-usb
2019/12/15 23:07 https://github.com/google/kasan.git usb-fuzzer 4cc037ecf2cb eef6e580 .config console log report ci2-upstream-usb
2019/12/09 11:13 https://github.com/google/kasan.git usb-fuzzer 1f22d15c209f 1508f453 .config console log report ci2-upstream-usb
2019/12/08 07:06 https://github.com/google/kasan.git usb-fuzzer 1f22d15c209f 1508f453 .config console log report ci2-upstream-usb
2019/12/02 11:10 https://github.com/google/kasan.git usb-fuzzer 32b5e2b28188 f879db37 .config console log report ci2-upstream-usb
2019/12/01 21:54 https://github.com/google/kasan.git usb-fuzzer 32b5e2b28188 f879db37 .config console log report ci2-upstream-usb
2019/12/01 07:50 https://github.com/google/kasan.git usb-fuzzer 32b5e2b28188 a76bf83f .config console log report ci2-upstream-usb
2019/11/26 21:34 https://github.com/google/kasan.git usb-fuzzer da06441bb485 1048481f .config console log report ci2-upstream-usb
2019/11/25 03:46 https://github.com/google/kasan.git usb-fuzzer da06441bb485 598ca6c8 .config console log report ci2-upstream-usb
2019/11/21 13:14 https://github.com/google/kasan.git usb-fuzzer da06441bb485 8098ea0f .config console log report ci2-upstream-usb
2019/11/18 23:15 https://github.com/google/kasan.git usb-fuzzer 46178223c0ca d5696d51 .config console log report ci2-upstream-usb
2019/11/17 22:04 https://github.com/google/kasan.git usb-fuzzer 46178223c0ca d5696d51 .config console log report ci2-upstream-usb
2019/11/16 15:23 https://github.com/google/kasan.git usb-fuzzer 46178223c0ca cdac920b .config console log report ci2-upstream-usb
2019/11/14 23:51 https://github.com/google/kasan.git usb-fuzzer 3183c03757f8 048f2d49 .config console log report ci2-upstream-usb
2019/11/06 05:08 https://github.com/google/kasan.git usb-fuzzer b1aa9d834830 bc2c6e45 .config console log report ci2-upstream-usb
2019/11/04 00:45 https://github.com/google/kasan.git usb-fuzzer ff6409a6ec35 b35fad31 .config console log report ci2-upstream-usb
2019/11/01 02:19 https://github.com/google/kasan.git usb-fuzzer ff6409a6ec35 a41ca8fa .config console log report ci2-upstream-usb
2019/10/29 20:13 https://github.com/google/kasan.git usb-fuzzer ff6409a6ec35 5ea87a66 .config console log report ci2-upstream-usb
2019/10/28 00:36 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 25bb509e .config console log report ci2-upstream-usb
2019/10/27 08:46 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 25bb509e .config console log report ci2-upstream-usb
2019/10/23 15:50 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 b602d64b .config console log report ci2-upstream-usb
2019/10/16 10:22 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 d4ea592f .config console log report ci2-upstream-usb
2019/10/04 20:29 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 c86336cf .config console log report ci2-upstream-usb
2019/09/28 16:40 https://github.com/google/kasan.git usb-fuzzer 2994c07743fe eb6b9855 .config console log report ci2-upstream-usb
2019/09/23 07:01 https://github.com/google/kasan.git usb-fuzzer e0bd8d794fc9 d96e88f3 .config console log report ci2-upstream-usb
2019/09/22 10:10 https://github.com/google/kasan.git usb-fuzzer e0bd8d794fc9 d96e88f3 .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.