general protection fault in bus_remove_device

Status: upstream: reported on 2026/11/18 07:04
Reported-by: syzbot+747bb496465a53dc4357@syzkaller.appspotmail.com
First crash: 1d01h, last: 1d01h
▶ ▼ Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 general protection fault in bus_remove_device origin:upstream 2 syz, C 8 8d09h 96d 0/2 upstream: reported C repro on 2026/08/14 17:46
upstream general protection fault in bus_remove_device prio:high driver-core 2 syz, C 19 5d12h 91d 0/29 upstream: reported C repro on 2026/08/19 17:18
android-6-1 general protection fault in bus_remove_device origin:upstream 2 syz, C 2 23d 58d 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 15 4d16h 107d 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 14 7d16h 99d 0/2 upstream: reported C repro on 2026/08/11 17:31

Sample crash report:
usb 10-1: USB disconnect, device number 3
general protection fault, probably for non-canonical address 0xdffffc000000000b: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000058-0x000000000000005f]
CPU: 0 PID: 6793 Comm: kworker/0:15 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Workqueue: usb_hub_wq hub_event
RIP: 0010:klist_put lib/klist.c:212 [inline]
RIP: 0010:klist_del lib/klist.c:230 [inline]
RIP: 0010:klist_remove+0x151/0x300 lib/klist.c:249
Code: c8 05 4d 89 f4 49 c1 ec 03 43 80 3c 2c 00 74 08 4c 89 f7 e8 41 b4 b3 fd 4d 8b 3e 49 83 e7 fe 49 8d 7f 58 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 05 e8 23 b4 b3 fd 49 8b 47 58 48 89 44 24 08 4c
RSP: 0018:ffffc90003b875e0 EFLAGS: 00010202
RAX: 000000000000000b RBX: ffff888029949dc0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058
RBP: ffffc90003b876c8 R08: ffffffff8d74d0c3 R09: 1ffffffff1ae9a18
R10: dffffc0000000000 R11: fffffbfff1ae9a19 R12: 1ffff1100f937110
R13: dffffc0000000000 R14: ffff88807c9b8880 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f94f2f24440 CR3: 000000002aca1000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __device_release_driver drivers/base/dd.c:1264 [inline]
 device_release_driver_internal+0x5c8/0x710 drivers/base/dd.c:1282
 bus_remove_device+0x2dd/0x400 drivers/base/bus.c:531
 device_del+0x63f/0xa80 drivers/base/core.c:3615
 usb_disable_device+0x3e7/0x8a0 drivers/usb/core/message.c:1478
 usb_disconnect+0x33c/0x8a0 drivers/usb/core/hub.c:2297
 hub_port_connect drivers/usb/core/hub.c:5351 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5647 [inline]
 port_event drivers/usb/core/hub.c:5809 [inline]
 hub_event+0x1d64/0x5260 drivers/usb/core/hub.c:5891
 process_one_work+0x867/0xff0 kernel/workqueue.c:2310
 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457
 kthread+0x42e/0x520 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>
Modules linked in:
---[ end trace 97532d197fc3e5ec ]---
RIP: 0010:klist_put lib/klist.c:212 [inline]
RIP: 0010:klist_del lib/klist.c:230 [inline]
RIP: 0010:klist_remove+0x151/0x300 lib/klist.c:249
Code: c8 05 4d 89 f4 49 c1 ec 03 43 80 3c 2c 00 74 08 4c 89 f7 e8 41 b4 b3 fd 4d 8b 3e 49 83 e7 fe 49 8d 7f 58 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 05 e8 23 b4 b3 fd 49 8b 47 58 48 89 44 24 08 4c
RSP: 0018:ffffc90003b875e0 EFLAGS: 00010202
RAX: 000000000000000b RBX: ffff888029949dc0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058
RBP: ffffc90003b876c8 R08: ffffffff8d74d0c3 R09: 1ffffffff1ae9a18
R10: dffffc0000000000 R11: fffffbfff1ae9a19 R12: 1ffff1100f937110
R13: dffffc0000000000 R14: ffff88807c9b8880 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f94f2f24440 CR3: 000000002aca1000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	c8 05 4d 89          	enter  $0x4d05,$0x89
   4:	f4                   	hlt
   5:	49 c1 ec 03          	shr    $0x3,%r12
   9:	43 80 3c 2c 00       	cmpb   $0x0,(%r12,%r13,1)
   e:	74 08                	je     0x18
  10:	4c 89 f7             	mov    %r14,%rdi
  13:	e8 41 b4 b3 fd       	call   0xfdb3b459
  18:	4d 8b 3e             	mov    (%r14),%r15
  1b:	49 83 e7 fe          	and    $0xfffffffffffffffe,%r15
  1f:	49 8d 7f 58          	lea    0x58(%r15),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	74 05                	je     0x36
  31:	e8 23 b4 b3 fd       	call   0xfdb3b459
  36:	49 8b 47 58          	mov    0x58(%r15),%rax
  3a:	48 89 44 24 08       	mov    %rax,0x8(%rsp)
  3f:	4c                   	rex.WR

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/18 07:03 linux-5.15.y 29c6cdaac04a eb4895d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in bus_remove_device
* Struck through repros no longer work on HEAD.