general protection fault in bus_remove_device

Status: upstream: reported C repro on 2026/08/19 17:18
Subsystems: usb
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+87188222c77c0dbbdb4d@syzkaller.appspotmail.com
First crash: 51d, last: 10d
▶ ▼ ✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision
d1c2b76e assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ✅ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ general protection fault in bus_remove_device 2026/08/15 18:59 2026/08/15 18:59 2026/08/15 19:47 746171ee
▶ ▼ Discussions (6)
Title Replies (including bot) Last reply
Re: [PATCH v4] driver core: avoid klist_remove() on unattached knode_driver 2 (2) 2026/09/03 08:05
[syzbot] [usb?] general protection fault in bus_remove_device 1 (13) 2026/09/03 07:11
Re: [PATCH v4] driver core: avoid klist_remove() on unattached knode_driver 1 (1) 2026/08/24 04:46
Re: [PATCH v4] driver core: avoid klist_remove() on unattached knode_driver 1 (1) 2026/08/24 04:41
[PATCH] driver core: avoid klist_remove() on unattached knode_driver 10 (10) 2026/08/20 20:54
[PATCH] driver core: Do not remove the knode driver when autoprobe is disabled 1 (1) 2026/08/20 06:11
▶ ▼ Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 general protection fault in bus_remove_device origin:lts 2 syz, C 6 9d01h 52d 0/2 upstream: reported C repro on 2026/08/14 17:46
android-6-1 general protection fault in bus_remove_device origin:upstream 2 syz, C 1 13d 13d 0/2 upstream: reported C repro on 2026/09/21 21:51
android-6-12 general protection fault in bus_remove_device origin:upstream 2 syz, C 14 1d23h 63d 0/1 premoderation: reported C repro on 2026/08/03 16:19
android-5-10 general protection fault in bus_remove_device 2 syz, C 13 10d 55d 0/2 upstream: reported C repro on 2026/08/11 17:31
▶ ▼ Last patch testing requests (11)
Created Duration User Patch Repo Result
2026/09/03 07:11 20m khiemtranzo532001@gmail.com patch upstream OK job log log
2026/09/03 07:06 0m khiemtranzo532001@gmail.com patch upstream error job log
2026/09/03 07:02 0m khiemtranzo532001@gmail.com patch upstream error job log
2026/09/03 06:59 0m khiemtranzo532001@gmail.com patch upstream error job log
2026/09/03 06:52 1m khiemtranzo532001@gmail.com patch upstream error job log
2026/09/03 06:48 0m khiemtranzo532001@gmail.com patch upstream error job log
2026/09/03 06:46 0m khiemtranzo532001@gmail.com patch upstream error job log
2026/09/03 06:37 0m khiemtranzo532001@gmail.com patch upstream error job log
2026/08/20 06:13 20m khiemtranzo532001@gmail.com patch upstream OK job log log
2026/08/20 05:31 20m eadavis@qq.com patch upstream OK job log log
2026/08/20 04:34 1h07m khiemtranzo532001@gmail.com patch upstream OK job log log

Sample crash report:
usb 5-1: found format II with max.bitrate = 4, frame size=7372
usb 5-1: parse_audio_format_rates_v2v3(): unable to retrieve number of sample rates (clock 0)
usb 5-1: USB disconnect, device number 2
Oops: general protection fault, probably for non-canonical address 0xdffffc000000000b: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000058-0x000000000000005f]
CPU: 1 UID: 0 PID: 5813 Comm: kworker/1:3 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Workqueue: usb_hub_wq hub_event
RIP: 0010:klist_put+0x4d/0x1d0 lib/klist.c:212
Code: c1 ea 03 80 3c 02 00 0f 85 74 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 23 49 83 e4 fe 49 8d 7c 24 58 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 43 01 00 00 4c 89 e7 4d 8b 74 24 58 e8 4c ef 0c
RSP: 0018:ffffc90004407600 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff888054dda880 RCX: 0000000000000000
RDX: 000000000000000b RSI: ffffffff8bc81645 RDI: 0000000000000058
RBP: 0000000000000001 R08: 0000000000000000 R09: fffffbfff224eba0
R10: ffffffff91275d03 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000001 R14: ffffffff91275cc0 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880d5c52000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056235a7f53e0 CR3: 0000000036e7e000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 klist_del lib/klist.c:230 [inline]
 klist_remove+0x14c/0x2e0 lib/klist.c:249
 __device_release_driver drivers/base/dd.c:1357 [inline]
 device_release_driver_internal+0x4fb/0x620 drivers/base/dd.c:1372
 bus_remove_device+0x2bc/0x560 drivers/base/bus.c:664
 device_del+0x376/0x9b0 drivers/base/core.c:3965
 usb_disable_device+0x367/0x810 drivers/usb/core/message.c:1478
 usb_disconnect+0x2e2/0x9a0 drivers/usb/core/hub.c:2350
 hub_port_connect drivers/usb/core/hub.c:5420 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5720 [inline]
 port_event drivers/usb/core/hub.c:5884 [inline]
 hub_event+0x1bb1/0x4420 drivers/usb/core/hub.c:5966
 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
 process_scheduled_works kernel/workqueue.c:3479 [inline]
 worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:klist_put+0x4d/0x1d0 lib/klist.c:212
Code: c1 ea 03 80 3c 02 00 0f 85 74 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 23 49 83 e4 fe 49 8d 7c 24 58 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 43 01 00 00 4c 89 e7 4d 8b 74 24 58 e8 4c ef 0c
RSP: 0018:ffffc90004407600 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff888054dda880 RCX: 0000000000000000
RDX: 000000000000000b RSI: ffffffff8bc81645 RDI: 0000000000000058
RBP: 0000000000000001 R08: 0000000000000000 R09: fffffbfff224eba0
R10: ffffffff91275d03 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000001 R14: ffffffff91275cc0 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880d5c52000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056235a7f53e0 CR3: 0000000036e7e000 CR4: 0000000000352ef0
----------------
Code disassembly (best guess):
   0:	c1 ea 03             	shr    $0x3,%edx
   3:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   7:	0f 85 74 01 00 00    	jne    0x181
   d:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  14:	fc ff df
  17:	4c 8b 23             	mov    (%rbx),%r12
  1a:	49 83 e4 fe          	and    $0xfffffffffffffffe,%r12
  1e:	49 8d 7c 24 58       	lea    0x58(%r12),%rdi
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 43 01 00 00    	jne    0x177
  34:	4c 89 e7             	mov    %r12,%rdi
  37:	4d 8b 74 24 58       	mov    0x58(%r12),%r14
  3c:	e8                   	.byte 0xe8
  3d:	4c ef                	rex.WR out %eax,(%dx)
  3f:	0c                   	.byte 0xc

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/25 17:41 upstream 165768bb7026 f281d9d2 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in bus_remove_device
2026/08/15 17:13 upstream 15ef2f78c49d 746171ee .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in bus_remove_device
2026/09/23 10:56 upstream 50d05c7c76c9 abce1216 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in bus_remove_device
2026/09/12 03:57 upstream 3026c6e4f223 b6a5eeb7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in bus_remove_device
2026/09/12 03:55 upstream 3026c6e4f223 b6a5eeb7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in bus_remove_device
2026/09/09 22:56 upstream 50d05c7c76c9 4e8b1cc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in bus_remove_device
2026/08/28 00:29 upstream 18fbf5151d2c e2fa417d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in bus_remove_device
2026/08/17 13:10 upstream 8d3ae59288f1 746171ee .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in bus_remove_device
2026/08/17 08:20 upstream dcb68831eac7 746171ee .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in bus_remove_device
* Struck through repros no longer work on HEAD.