syzbot


general protection fault in device_move

Status: upstream: reported on 2025/07/04 01:12
Reported-by: syzbot+80628191ce3caee0ba98@syzkaller.appspotmail.com
First crash: 16d, last: 8d04h
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in device_move kernel 8 syz error 4149 4h27m 241d 0/29 upstream: reported syz repro on 2024/11/20 18:53
linux-6.1 general protection fault in device_move 8 38 8d04h 200d 0/3 upstream: reported on 2024/12/31 11:47
linux-5.15 BUG: unable to handle kernel paging request in device_move 8 38 3d10h 215d 0/3 upstream: reported on 2024/12/16 11:50

Sample crash report:
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: 13144 Comm: syz-executor Not tainted 6.6.97-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:klist_put lib/klist.c:212 [inline]
RIP: 0010:klist_del lib/klist.c:230 [inline]
RIP: 0010:klist_remove+0x15c/0x390 lib/klist.c:249
Code: 80 3c 04 00 74 08 4c 89 f7 e8 50 db 83 f7 4d 8b 3e 49 83 e7 fe 49 8d 7f 58 48 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 05 e8 29 db 83 f7 49 8b 47 58 48 89 44 24 10 4c 89
RSP: 0018:ffffc9000453f620 EFLAGS: 00010202
RAX: 000000000000000b RBX: ffff88807ad21e00 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058
RBP: ffffc9000453f708 R08: ffffffff8e323603 R09: 1ffffffff1c646c0
R10: dffffc0000000000 R11: fffffbfff1c646c1 R12: 1ffff11003e6138c
R13: dffffc0000000000 R14: ffff88801f309c60 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fabd8db00a2 CR3: 000000001c777000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 device_move+0x193/0x6f0 drivers/base/core.c:4654
 hci_conn_del_sysfs+0xaf/0x160 net/bluetooth/hci_sysfs.c:75
 hci_conn_cleanup net/bluetooth/hci_conn.c:175 [inline]
 hci_conn_del+0x8d8/0xc80 net/bluetooth/hci_conn.c:1148
 hci_conn_hash_flush+0x185/0x220 net/bluetooth/hci_conn.c:2540
 hci_dev_close_sync+0x962/0xfb0 net/bluetooth/hci_sync.c:5223
 hci_dev_do_close net/bluetooth/hci_core.c:523 [inline]
 hci_unregister_dev+0x21a/0x510 net/bluetooth/hci_core.c:2709
 vhci_release+0x83/0xd0 drivers/bluetooth/hci_vhci.c:666
 __fput+0x234/0x970 fs/file_table.c:384
 task_work_run+0x1ce/0x250 kernel/task_work.c:239
 exit_task_work include/linux/task_work.h:43 [inline]
 do_exit+0x90b/0x23c0 kernel/exit.c:883
 do_group_exit+0x21b/0x2d0 kernel/exit.c:1024
 get_signal+0x12fc/0x1400 kernel/signal.c:2902
 arch_do_signal_or_restart+0x96/0x780 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f454cf8e221
Code: Unable to access opcode bytes at 0x7f454cf8e1f7.
RSP: 002b:00007ffc260c3b60 EFLAGS: 00000287 ORIG_RAX: 0000000000000101
RAX: fffffffffffffffc RBX: 00007f454d010925 RCX: 00007f454cf8e221
RDX: 0000000000090800 RSI: 00007ffc260c4d70 RDI: 00000000ffffff9c
RBP: 00007ffc260c4d70 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000287 R12: 00007ffc260c4d70
R13: 00007f454d010925 R14: 00000000000eadc7 R15: 00007ffc260c6f30
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:klist_put lib/klist.c:212 [inline]
RIP: 0010:klist_del lib/klist.c:230 [inline]
RIP: 0010:klist_remove+0x15c/0x390 lib/klist.c:249
Code: 80 3c 04 00 74 08 4c 89 f7 e8 50 db 83 f7 4d 8b 3e 49 83 e7 fe 49 8d 7f 58 48 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 05 e8 29 db 83 f7 49 8b 47 58 48 89 44 24 10 4c 89
RSP: 0018:ffffc9000453f620 EFLAGS: 00010202
RAX: 000000000000000b RBX: ffff88807ad21e00 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058
RBP: ffffc9000453f708 R08: ffffffff8e323603 R09: 1ffffffff1c646c0
R10: dffffc0000000000 R11: fffffbfff1c646c1 R12: 1ffff11003e6138c
R13: dffffc0000000000 R14: ffff88801f309c60 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056448776c000 CR3: 00000000316bc000 CR4: 00000000003506e0
----------------
Code disassembly (best guess):
   0:	80 3c 04 00          	cmpb   $0x0,(%rsp,%rax,1)
   4:	74 08                	je     0xe
   6:	4c 89 f7             	mov    %r14,%rdi
   9:	e8 50 db 83 f7       	call   0xf783db5e
   e:	4d 8b 3e             	mov    (%r14),%r15
  11:	49 83 e7 fe          	and    $0xfffffffffffffffe,%r15
  15:	49 8d 7f 58          	lea    0x58(%r15),%rdi
  19:	48 89 f8             	mov    %rdi,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 05                	je     0x35
  30:	e8 29 db 83 f7       	call   0xf783db5e
  35:	49 8b 47 58          	mov    0x58(%r15),%rax
  39:	48 89 44 24 10       	mov    %rax,0x10(%rsp)
  3e:	4c                   	rex.WR
  3f:	89                   	.byte 0x89

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/12 05:46 linux-6.6.y 59a2de10b81a 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2025/07/04 01:12 linux-6.6.y 3f5b4c104b7d 76ad128c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
* Struck through repros no longer work on HEAD.