general protection fault in device_move

Status: upstream: reported on 2025/07/04 01:12
Reported-by: syzbot+80628191ce3caee0ba98@syzkaller.appspotmail.com
First crash: 440d, last: 15h21m
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in device_move prio:high kernel 8 syz, C error 8545 1d14h 666d 0/29 upstream: reported C repro on 2024/11/20 18:53
linux-6.1 general protection fault in device_move 8 78 7d04h 625d 0/3 upstream: reported on 2024/12/31 11:47
linux-5.15 BUG: unable to handle kernel paging request in device_move origin:lts-only 8 syz inconclusive 49 63d 640d 0/3 upstream: reported syz repro 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: 20687 Comm: syz.9.4222 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:klist_put lib/klist.c:212 [inline]
RIP: 0010:klist_del lib/klist.c:230 [inline]
RIP: 0010:klist_remove+0x169/0x3a0 lib/klist.c:249
Code: 80 3c 04 00 74 08 4c 89 f7 e8 d3 2a 63 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 ac 2a 63 f7 49 8b 47 58 48 89 44 24 10 4c 89
RSP: 0018:ffffc900035bf9a0 EFLAGS: 00010202
RAX: 000000000000000b RBX: ffff888043fd3c00 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058
RBP: ffffc900035bfa90 R08: ffffffff8e73a143 R09: 1ffffffff1ce7428
R10: dffffc0000000000 R11: fffffbfff1ce7429 R12: 1ffff1100b95cd0c
R13: dffffc0000000000 R14: ffff88805cae6860 R15: 0000000000000000
FS:  00007fbea17476c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbea07eb840 CR3: 00000000693fe000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000460
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 device_move+0x18e/0x6f0 drivers/base/core.c:4671
 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+0x8a5/0xc40 net/bluetooth/hci_conn.c:1166
 hci_conn_hash_flush+0x17d/0x220 net/bluetooth/hci_conn.c:2583
 hci_dev_close_sync+0x9a1/0x1150 net/bluetooth/hci_sync.c:5408
 hci_dev_do_close net/bluetooth/hci_core.c:523 [inline]
 hci_dev_close+0x108/0x1f0 net/bluetooth/hci_core.c:548
 sock_do_ioctl+0xfc/0x310 net/socket.c:1220
 sock_ioctl+0x5be/0x7e0 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:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fbea079e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fbea1747028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fbea0a25fa0 RCX: 00007fbea079e159
RDX: 0000000000000000 RSI: 00000000400448ca RDI: 0000000000000004
RBP: 00007fbea083506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fbea0a26038 R14: 00007fbea0a25fa0 R15: 00007ffc77b69d98
 </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+0x169/0x3a0 lib/klist.c:249
Code: 80 3c 04 00 74 08 4c 89 f7 e8 d3 2a 63 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 ac 2a 63 f7 49 8b 47 58 48 89 44 24 10 4c 89
RSP: 0018:ffffc900035bf9a0 EFLAGS: 00010202

RAX: 000000000000000b RBX: ffff888043fd3c00 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058
RBP: ffffc900035bfa90 R08: ffffffff8e73a143 R09: 1ffffffff1ce7428
R10: dffffc0000000000 R11: fffffbfff1ce7429 R12: 1ffff1100b95cd0c
R13: dffffc0000000000 R14: ffff88805cae6860 R15: 0000000000000000
FS:  00007fbea17476c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2ff260 CR3: 00000000693fe000 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 d3 2a 63 f7       	call   0xf7632ae1
   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 ac 2a 63 f7       	call   0xf7632ae1
  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 (25):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/17 05:09 linux-6.6.y 79643295eba1 95928915 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2026/09/16 06:39 linux-6.6.y 79643295eba1 12a0a44a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2026/07/25 10:18 linux-6.6.y c5596480c50e 492bab15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2026/07/07 07:06 linux-6.6.y da47cbc25466 8e71ce95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2026/06/08 20:18 linux-6.6.y 924b4a879cbb 656e94c6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2026/05/06 03:27 linux-6.6.y 258cf62a6dfd 26da2c66 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2026/02/20 17:53 linux-6.6.y 7a137e9bfa0e 17d780d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2026/01/24 08:37 linux-6.6.y cbb31f77b879 4f25b9b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2026/01/14 01:59 linux-6.6.y c596736dadab d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2026/01/06 09:50 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2025/12/31 03:26 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2025/12/30 07:57 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2025/12/21 23:35 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2025/12/15 23:50 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2025/11/14 15:12 linux-6.6.y 0a805b6ea8cd f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2025/11/11 16:27 linux-6.6.y 0a805b6ea8cd 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2025/11/07 03:52 linux-6.6.y 0a805b6ea8cd 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2025/10/27 21:27 linux-6.6.y 4a243110dc88 fd2207e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2025/10/22 09:57 linux-6.6.y f231f248323d 252fbbad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2025/09/30 23:58 linux-6.6.y 147338df3487 65a0eece .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2025/09/26 20:47 linux-6.6.y 147338df3487 001c9061 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2025/09/23 19:10 linux-6.6.y af1544b5d072 e667a34f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
2025/08/30 01:25 linux-6.6.y cc1a1c5b404a 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in device_move
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.