syzbot


general protection fault in tower_disconnect

Status: fixed on 2021/03/10 01:48
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+9be25235b7a69b24d117@syzkaller.appspotmail.com
Fix commit: b175d273d4e4 USB: legotower: fix logical error in recent commit
First crash: 1225d, last: 1216d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH 5.10 00/16] 5.10.2-rc1 review 24 (24) 2020/12/21 13:00
[PATCH] USB: legotower: fix logical error in recent commit 1 (1) 2020/12/08 16:30
general protection fault in tower_disconnect 2 (6) 2020/12/08 16:24
Last patch testing requests (1)
Created Duration User Patch Repo Result
2020/12/08 16:07 16m stern@rowland.harvard.edu patch https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git 08a02f95 OK

Sample crash report:
usb 1-1: USB disconnect, device number 2
general protection fault, probably for non-canonical address 0xdffffc0000000013: 0000 [#1] SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000098-0x000000000000009f]
CPU: 0 PID: 7 Comm: kworker/0:1 Not tainted 5.10.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
RIP: 0010:tower_disconnect+0x53/0x360 drivers/usb/misc/legousbtower.c:848
Code: 03 80 3c 02 00 0f 85 15 03 00 00 48 8b ab a8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bd 98 00 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 06 0f 8e 7b 02 00 00 48 c7 c6 40 07 bb 87 48
RSP: 0018:ffffc9000007f7c0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff888117ec0000 RCX: ffffffff8381f807
RDX: 0000000000000013 RSI: ffffffff83bab792 RDI: 0000000000000098
RBP: 0000000000000000 R08: 0000000000000001 R09: ffffffff898cc4ef
R10: 0000000000000002 R11: 0000000000000000 R12: ffff888117ec0090
R13: ffff888117ec0078 R14: ffff888117ec0030 R15: ffff888117ec0098
FS:  0000000000000000(0000) GS:ffff8881f6a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f557af47550 CR3: 00000001090f3000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 usb_unbind_interface+0x1d8/0x8d0 drivers/usb/core/driver.c:458
 __device_release_driver+0x3bd/0x6f0 drivers/base/dd.c:1154
 device_release_driver_internal drivers/base/dd.c:1185 [inline]
 device_release_driver+0x26/0x40 drivers/base/dd.c:1208
 bus_remove_device+0x2eb/0x5a0 drivers/base/bus.c:533
 device_del+0x502/0xec0 drivers/base/core.c:3115
 usb_disable_device+0x35b/0x7b0 drivers/usb/core/message.c:1413
 usb_disconnect.cold+0x27d/0x780 drivers/usb/core/hub.c:2218
 hub_port_connect drivers/usb/core/hub.c:5074 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5363 [inline]
 port_event drivers/usb/core/hub.c:5509 [inline]
 hub_event+0x1c8a/0x42d0 drivers/usb/core/hub.c:5591
 process_one_work+0x933/0x1520 kernel/workqueue.c:2272
 worker_thread+0x64c/0x1120 kernel/workqueue.c:2418
 kthread+0x38c/0x460 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296
Modules linked in:
---[ end trace 5aeb1d199be5d5f2 ]---
RIP: 0010:tower_disconnect+0x53/0x360 drivers/usb/misc/legousbtower.c:848
Code: 03 80 3c 02 00 0f 85 15 03 00 00 48 8b ab a8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bd 98 00 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 06 0f 8e 7b 02 00 00 48 c7 c6 40 07 bb 87 48
RSP: 0018:ffffc9000007f7c0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff888117ec0000 RCX: ffffffff8381f807
RDX: 0000000000000013 RSI: ffffffff83bab792 RDI: 0000000000000098
RBP: 0000000000000000 R08: 0000000000000001 R09: ffffffff898cc4ef
R10: 0000000000000002 R11: 0000000000000000 R12: ffff888117ec0090
R13: ffff888117ec0078 R14: ffff888117ec0030 R15: ffff888117ec0098
FS:  0000000000000000(0000) GS:ffff8881f6a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f557af47550 CR3: 00000001090f3000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (53):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/08 04:03 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 08a02f954b0d 51a9082e .config console log report syz C ci2-upstream-usb
2020/12/08 03:52 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 08a02f954b0d 51a9082e .config console log report syz C ci2-upstream-usb
2020/12/16 15:00 upstream d635a69dd498 f213e07e .config console log report info ci-upstream-kasan-gce
2020/12/16 11:51 upstream d635a69dd498 f213e07e .config console log report info ci-upstream-kasan-gce-smack-root
2020/12/16 11:51 upstream d635a69dd498 f213e07e .config console log report info ci-upstream-kasan-gce
2020/12/16 11:51 upstream d635a69dd498 f213e07e .config console log report info ci-upstream-kasan-gce
2020/12/15 19:43 upstream 148842c98a24 97183ed7 .config console log report info ci-upstream-kasan-gce
2020/12/15 19:43 upstream 148842c98a24 97183ed7 .config console log report info ci-upstream-kasan-gce
2020/12/15 19:35 upstream 148842c98a24 97183ed7 .config console log report info ci-upstream-kasan-gce-smack-root
2020/12/15 19:34 upstream 148842c98a24 97183ed7 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/12/15 19:29 upstream 148842c98a24 97183ed7 .config console log report info ci-upstream-kasan-gce-root
2020/12/15 19:29 upstream 148842c98a24 97183ed7 .config console log report info ci-upstream-kasan-gce-root
2020/12/14 05:30 upstream 6bff9bb8a292 b22a7ec3 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/12/14 03:16 upstream 6bff9bb8a292 b22a7ec3 .config console log report info ci-upstream-kasan-gce-smack-root
2020/12/13 22:36 upstream 6bff9bb8a292 b22a7ec3 .config console log report info ci-upstream-kasan-gce
2020/12/11 11:25 upstream 33dc9614dc20 f900b48c .config console log report info ci-upstream-kasan-gce
2020/12/09 21:58 upstream a68a0262abda c090b4da .config console log report info ci-upstream-kasan-gce-selinux-root
2020/12/09 21:45 upstream a68a0262abda c090b4da .config console log report info ci-upstream-kasan-gce-smack-root
2020/12/09 15:25 upstream 7d8761ba27fc 40cc414d .config console log report info ci-upstream-kasan-gce-smack-root
2020/12/09 15:18 upstream 7d8761ba27fc 40cc414d .config console log report info ci-upstream-kasan-gce-selinux-root
2020/12/09 15:13 upstream 7d8761ba27fc 40cc414d .config console log report info ci-upstream-kasan-gce-root
2020/12/09 15:12 upstream 7d8761ba27fc 40cc414d .config console log report info ci-upstream-kasan-gce
2020/12/09 02:59 upstream 7d8761ba27fc a7f7f4a4 .config console log report info ci-upstream-kasan-gce-smack-root
2020/12/09 01:46 upstream 7d8761ba27fc a7f7f4a4 .config console log report info ci-upstream-kasan-gce
2020/12/15 19:48 upstream 148842c98a24 97183ed7 .config console log report info ci-upstream-kasan-gce-386
2020/12/15 19:48 upstream 148842c98a24 97183ed7 .config console log report info ci-upstream-kasan-gce-386
2020/12/14 01:20 upstream 6bff9bb8a292 b22a7ec3 .config console log report info ci-upstream-kasan-gce-386
2020/12/09 22:08 upstream a68a0262abda c090b4da .config console log report info ci-upstream-kasan-gce-386
2020/12/09 15:16 upstream 7d8761ba27fc 40cc414d .config console log report info ci-upstream-kasan-gce-386
2020/12/09 03:12 upstream 7d8761ba27fc a7f7f4a4 .config console log report info ci-upstream-kasan-gce-386
2020/12/09 22:18 linux-next a9e26cb5f261 c090b4da .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/12/09 15:02 linux-next a9e26cb5f261 40cc414d .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/12/09 01:13 linux-next a9e26cb5f261 a7f7f4a4 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/12/09 01:13 linux-next a9e26cb5f261 a7f7f4a4 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/12/08 17:23 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3d4113780194 9af51e31 .config console log report info ci2-upstream-usb
2020/12/08 16:50 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3d4113780194 9af51e31 .config console log report info ci2-upstream-usb
2020/12/08 07:21 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 08a02f954b0d 51a9082e .config console log report info ci2-upstream-usb
2020/12/08 05:48 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 08a02f954b0d 51a9082e .config console log report info ci2-upstream-usb
2020/12/08 05:40 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 08a02f954b0d 51a9082e .config console log report info ci2-upstream-usb
2020/12/08 05:17 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 08a02f954b0d 51a9082e .config console log report info ci2-upstream-usb
2020/12/08 05:08 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 08a02f954b0d 51a9082e .config console log report info ci2-upstream-usb
2020/12/08 03:35 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 08a02f954b0d 51a9082e .config console log report info ci2-upstream-usb
* Struck through repros no longer work on HEAD.