syzbot


general protection fault in device_move

Status: upstream: reported on 2024/12/31 11:47
Reported-by: syzbot+e0c10fc14a30c3df1430@syzkaller.appspotmail.com
First crash: 35d, last: 8d00h
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in device_move kernel syz 1043 28m 76d 0/28 upstream: reported syz repro on 2024/11/20 18:53
linux-5.15 BUG: unable to handle kernel paging request in device_move 9 17h39m 50d 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: 12681 Comm: syz-executor Not tainted 6.1.127-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:klist_put lib/klist.c:212 [inline]
RIP: 0010:klist_del lib/klist.c:230 [inline]
RIP: 0010:klist_remove+0x1e2/0x460 lib/klist.c:249
Code: 80 3c 04 00 74 08 4c 89 ff e8 7a 85 3a f7 4d 8b 2f 49 83 e5 fe 49 8d 7d 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 53 85 3a f7 4d 8b 75 58 4c 89 ef e8 97 91 15
RSP: 0018:ffffc900032e7420 EFLAGS: 00010202
RAX: 000000000000000b RBX: ffffffff8e83dca8 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058
RBP: ffffc900032e7508 R08: dffffc0000000000 R09: fffffbfff1d07b89
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100ae4948c
R13: 0000000000000000 R14: ffff8880635e3b80 R15: ffff88805724a460
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020220000 CR3: 000000002814e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 device_move+0x1b0/0x700 drivers/base/core.c:4632
 hci_conn_del_sysfs+0xa8/0x150 net/bluetooth/hci_sysfs.c:73
 hci_conn_cleanup+0x5a0/0x740 net/bluetooth/hci_conn.c:172
 hci_conn_del+0x417/0x6c0 net/bluetooth/hci_conn.c:1151
 hci_conn_hash_flush+0x300/0x3f0 net/bluetooth/hci_conn.c:2510
 hci_dev_close_sync+0x9a9/0xfc0 net/bluetooth/hci_sync.c:5178
 hci_dev_do_close net/bluetooth/hci_core.c:509 [inline]
 hci_unregister_dev+0x207/0x500 net/bluetooth/hci_core.c:2706
 vhci_release+0x7f/0xd0 drivers/bluetooth/hci_vhci.c:573
 __fput+0x3f6/0x8d0 fs/file_table.c:320
 task_work_run+0x246/0x300 kernel/task_work.c:203
 exit_task_work include/linux/task_work.h:39 [inline]
 do_exit+0xa6e/0x26a0 kernel/exit.c:871
 do_group_exit+0x202/0x2b0 kernel/exit.c:1021
 get_signal+0x16f7/0x17d0 kernel/signal.c:2871
 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871
 exit_to_user_mode_loop+0x6a/0x100 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:292 [inline]
 syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fa66098b7df
Code: Unable to access opcode bytes at 0x7fa66098b7b5.
RSP: 002b:00007ffe499b8e20 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: 0000000000000001 RBX: 0000000000000005 RCX: 00007fa66098b7df
RDX: 0000000000000001 RSI: 00007ffe499b8e70 RDI: 0000000000000005
RBP: 00007fa660a0f4ad R08: 0000000000000000 R09: 00007ffe499b8c77
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000001
R13: 00007ffe499b8e70 R14: 00007fa6616d4620 R15: 0000000000000003
 </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+0x1e2/0x460 lib/klist.c:249
Code: 80 3c 04 00 74 08 4c 89 ff e8 7a 85 3a f7 4d 8b 2f 49 83 e5 fe 49 8d 7d 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 53 85 3a f7 4d 8b 75 58 4c 89 ef e8 97 91 15
RSP: 0018:ffffc900032e7420 EFLAGS: 00010202
RAX: 000000000000000b RBX: ffffffff8e83dca8 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058
RBP: ffffc900032e7508 R08: dffffc0000000000 R09: fffffbfff1d07b89
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100ae4948c
R13: 0000000000000000 R14: ffff8880635e3b80 R15: ffff88805724a460
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020333000 CR3: 000000002fc1a000 CR4: 00000000003526e0
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 ff             	mov    %r15,%rdi
   9:	e8 7a 85 3a f7       	call   0xf73a8588
   e:	4d 8b 2f             	mov    (%r15),%r13
  11:	49 83 e5 fe          	and    $0xfffffffffffffffe,%r13
  15:	49 8d 7d 58          	lea    0x58(%r13),%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 53 85 3a f7       	call   0xf73a8588
  35:	4d 8b 75 58          	mov    0x58(%r13),%r14
  39:	4c 89 ef             	mov    %r13,%rdi
  3c:	e8                   	.byte 0xe8
  3d:	97                   	xchg   %eax,%edi
  3e:	91                   	xchg   %eax,%ecx
  3f:	15                   	.byte 0x15

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/28 03:49 linux-6.1.y 75cefdf153f5 18070896 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in device_move
2025/01/24 05:14 linux-6.1.y 75cefdf153f5 521b0ce3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in device_move
2025/01/24 05:12 linux-6.1.y 75cefdf153f5 521b0ce3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in device_move
2025/01/23 20:09 linux-6.1.y 75cefdf153f5 521b0ce3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in device_move
2025/01/04 05:14 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in device_move
2024/12/31 11:46 linux-6.1.y 563edd786f0a d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in device_move
* Struck through repros no longer work on HEAD.