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: 5d21h, last: 5d21h
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 3983 58m 231d 0/29 upstream: reported syz repro on 2024/11/20 18:53
linux-6.1 general protection fault in device_move 8 36 11h11m 190d 0/3 upstream: reported on 2024/12/31 11:47
linux-5.15 BUG: unable to handle kernel paging request in device_move 8 36 2d02h 205d 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: 13994 Comm: syz.4.3221 Not tainted 6.6.95-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 40 0b 84 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 19 0b 84 f7 49 8b 47 58 48 89 44 24 10 4c 89
RSP: 0018:ffffc90005147980 EFLAGS: 00010202
RAX: 000000000000000b RBX: ffff88805b670000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058
RBP: ffffc90005147a68 R08: ffffffff8e322183 R09: 1ffffffff1c64430
R10: dffffc0000000000 R11: fffffbfff1c64431 R12: 1ffff1100fcf870c
R13: dffffc0000000000 R14: ffff88807e7c3860 R15: 0000000000000000
FS:  00007f9dcfab86c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9dcfa96f98 CR3: 00000000227b1000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
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:5227
 hci_dev_do_close net/bluetooth/hci_core.c:505 [inline]
 hci_dev_close+0x106/0x200 net/bluetooth/hci_core.c:530
 sock_do_ioctl+0xd7/0x2f0 net/socket.c:1222
 sock_ioctl+0x623/0x7a0 net/socket.c:1341
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f9dceb8e929
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9dcfab8038 EFLAGS: 00000246
 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f9dcedb5fa0 RCX: 00007f9dceb8e929
RDX: 0000000000000000 RSI: 00000000400448ca RDI: 0000000000000004
RBP: 00007f9dcec10b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f9dcedb5fa0 R15: 00007ffdd4dc11f8
 </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 40 0b 84 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 19 0b 84 f7 49 8b 47 58 48 89 44 24 10 4c 89
RSP: 0018:ffffc90005147980 EFLAGS: 00010202
RAX: 000000000000000b RBX: ffff88805b670000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058
RBP: ffffc90005147a68 R08: ffffffff8e322183 R09: 1ffffffff1c64430
R10: dffffc0000000000 R11: fffffbfff1c64431 R12: 1ffff1100fcf870c
R13: dffffc0000000000 R14: ffff88807e7c3860 R15: 0000000000000000
FS:  00007f9dcfab86c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055fe85feb000 CR3: 00000000227b1000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
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 40 0b 84 f7       	call   0xf7840b4e
   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 19 0b 84 f7       	call   0xf7840b4e
  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 (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.