syzbot


general protection fault in device_move

Status: upstream: reported syz repro on 2024/11/20 18:53
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+1f4e278e8e1a9b01f95f@syzkaller.appspotmail.com
First crash: 66d, last: 39m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] general protection fault in device_move 0 (2) 2024/12/21 19:34
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 general protection fault in device_move 2 18d 21d 0/3 upstream: reported on 2024/12/31 11:47
linux-5.15 BUG: unable to handle kernel paging request in device_move 5 18d 36d 0/3 upstream: reported on 2024/12/16 11:50

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc000000000b: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000058-0x000000000000005f]
CPU: 0 UID: 0 PID: 6777 Comm: syz.7.38 Not tainted 6.13.0-rc3-syzkaller-00209-g499551201b5f #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:klist_put+0x4d/0x1b0 lib/klist.c:212
Code: c1 ea 03 80 3c 02 00 0f 85 5f 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 23 49 83 e4 fe 49 8d 7c 24 58 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 2e 01 00 00 4c 89 e7 4d 8b 74 24 58 e8 7c ce 0c
RSP: 0018:ffffc9000448f6d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880302eb060 RCX: 0000000000000000
RDX: 000000000000000b RSI: ffffffff8b1f62c5 RDI: 0000000000000058
RBP: 0000000000000001 R08: 0000000000000000 R09: fffffbfff2085610
R10: ffffffff9042b083 R11: 0000000000000003 R12: 0000000000000000
R13: 0000000000000001 R14: 1ffff92000891ee2 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff88806a600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557dd40787d8 CR3: 000000003095e000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 klist_del lib/klist.c:230 [inline]
 klist_remove+0x140/0x2b0 lib/klist.c:249
 device_move+0x12d/0x10b0 drivers/base/core.c:4636
 hci_conn_del_sysfs+0x81/0x170 net/bluetooth/hci_sysfs.c:75
 hci_conn_cleanup net/bluetooth/hci_conn.c:174 [inline]
 hci_conn_del+0x54e/0xdb0 net/bluetooth/hci_conn.c:1164
 hci_conn_hash_flush+0x4bf/0x790 net/bluetooth/hci_conn.c:2699
 hci_dev_close_sync+0x603/0x11a0 net/bluetooth/hci_sync.c:5212
 hci_dev_do_close+0x2e/0x90 net/bluetooth/hci_core.c:482
 hci_unregister_dev+0x213/0x620 net/bluetooth/hci_core.c:2697
 vhci_release+0x79/0xf0 drivers/bluetooth/hci_vhci.c:664
 __fput+0x3f8/0xb60 fs/file_table.c:450
 task_work_run+0x14e/0x250 kernel/task_work.c:239
 exit_task_work include/linux/task_work.h:43 [inline]
 do_exit+0xad8/0x2d70 kernel/exit.c:938
 do_group_exit+0xd3/0x2a0 kernel/exit.c:1087
 get_signal+0x24ed/0x26c0 kernel/signal.c:3017
 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x150/0x2a0 kernel/entry/common.c:218
 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe5b7bb85e5
Code: Unable to access opcode bytes at 0x7fe5b7bb85bb.
RSP: 002b:00007fe5b8974f80 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: fffffffffffffdfc RBX: 00007fe5b7d75fa0 RCX: 00007fe5b7bb85e5
RDX: 00007fe5b8974fc0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fe5b7c01aa8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe5b7d75fa0 R15: 00007ffda9a5cfa8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:klist_put+0x4d/0x1b0 lib/klist.c:212
Code: c1 ea 03 80 3c 02 00 0f 85 5f 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 23 49 83 e4 fe 49 8d 7c 24 58 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 2e 01 00 00 4c 89 e7 4d 8b 74 24 58 e8 7c ce 0c
RSP: 0018:ffffc9000448f6d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880302eb060 RCX: 0000000000000000
RDX: 000000000000000b RSI: ffffffff8b1f62c5 RDI: 0000000000000058
RBP: 0000000000000001 R08: 0000000000000000 R09: fffffbfff2085610
R10: ffffffff9042b083 R11: 0000000000000003 R12: 0000000000000000
R13: 0000000000000001 R14: 1ffff92000891ee2 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff88806a600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557dd40787d8 CR3: 0000000029cf2000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	c1 ea 03             	shr    $0x3,%edx
   3:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   7:	0f 85 5f 01 00 00    	jne    0x16c
   d:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  14:	fc ff df
  17:	4c 8b 23             	mov    (%rbx),%r12
  1a:	49 83 e4 fe          	and    $0xfffffffffffffffe,%r12
  1e:	49 8d 7c 24 58       	lea    0x58(%r12),%rdi
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 2e 01 00 00    	jne    0x162
  34:	4c 89 e7             	mov    %r12,%rdi
  37:	4d 8b 74 24 58       	mov    0x58(%r12),%r14
  3c:	e8                   	.byte 0xe8
  3d:	7c ce                	jl     0xd
  3f:	0c                   	.byte 0xc

Crashes (950):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/21 19:34 upstream 499551201b5f d7f584ee .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in device_move
2025/01/21 23:07 upstream b9d8a295ed6b 6e87cfa2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in device_move
2025/01/20 06:12 upstream 9528d418de4d f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in device_move
2025/01/20 00:36 upstream 9528d418de4d f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in device_move
2025/01/18 12:35 upstream 595523945be0 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in device_move
2025/01/16 14:31 upstream 619f0b6fad52 968edaf4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in device_move
2025/01/15 04:58 upstream c3812b15000c 7315a7cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in device_move
2025/01/04 17:04 upstream 63676eefb7a0 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in device_move
2024/12/27 22:07 upstream 8379578b11d5 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in device_move
2025/01/21 05:56 upstream 3d3a9c8b89d4 6e87cfa2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in device_move
2025/01/18 07:49 upstream ad26fc09dabf f2cb035c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in device_move
2025/01/18 06:15 upstream ad26fc09dabf f2cb035c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in device_move
2025/01/15 10:43 upstream c3812b15000c 7315a7cf .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in device_move
2025/01/08 13:17 upstream 09a0fa92e5b4 f3558dbf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in device_move
2025/01/12 19:16 upstream b62cef9a5c67 6dbc6a9b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in device_move
2025/01/22 05:23 net d640627663bf da72ac06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/22 02:49 net d640627663bf da72ac06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/20 21:32 net 4395a44acb15 6e87cfa2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/20 11:54 net 4395a44acb15 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/20 10:25 net bc50835e83f6 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/20 02:54 net bc50835e83f6 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/19 17:24 net bc50835e83f6 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/19 16:24 net bc50835e83f6 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/19 13:53 net bc50835e83f6 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/19 12:16 net bc50835e83f6 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/19 10:48 net bc50835e83f6 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/19 04:27 net bc50835e83f6 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/18 23:38 net 70d81f25cc92 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/18 14:52 net 70d81f25cc92 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/18 13:45 net 70d81f25cc92 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/17 22:01 net 5d6a361dc01d 953d1c45 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/17 12:15 net ce69b4019001 f9e07a6e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/17 08:13 net ce69b4019001 f9e07a6e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/17 01:36 net ce69b4019001 f9e07a6e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/16 21:38 net cbc16bceea78 968edaf4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/16 17:56 net cbc16bceea78 968edaf4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/16 15:57 net cbc16bceea78 968edaf4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/16 07:05 net 0a5b8fff01bd 968edaf4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/16 04:52 net 0a5b8fff01bd 968edaf4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/16 00:55 net 0a5b8fff01bd 968edaf4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/15 19:41 net 0a5b8fff01bd 7315a7cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/15 00:14 net 665bcfc982de 7315a7cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/14 21:00 net 665bcfc982de 7315a7cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/14 11:49 net 9e2bbab94b88 b1f1cd88 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/14 10:39 net 9e2bbab94b88 b1f1cd88 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/14 09:37 net 9e2bbab94b88 b1f1cd88 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in device_move
2025/01/22 07:05 net-next b1754a69e7be da72ac06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in device_move
2025/01/21 10:14 net-next b1754a69e7be 6e87cfa2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in device_move
2025/01/19 22:24 net-next 41c5d104f338 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in device_move
2025/01/18 21:16 net-next 41c5d104f338 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in device_move
2025/01/18 04:31 net-next 7d2eba0f83a5 f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in device_move
2025/01/17 16:30 net-next 8d20dcda404d 953d1c45 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in device_move
2025/01/16 23:05 net-next 9eb8069d9940 968edaf4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in device_move
2025/01/16 19:09 net-next 9eb8069d9940 968edaf4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in device_move
2025/01/16 09:12 net-next 9eb8069d9940 968edaf4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in device_move
2025/01/15 18:09 net-next 7a1723d3b230 7315a7cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in device_move
2025/01/15 06:23 net-next 7a1723d3b230 7315a7cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in device_move
2025/01/14 13:51 net-next b1b62d6d332e b1f1cd88 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in device_move
2024/11/20 18:34 net-next dd7207838d38 4fca1650 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in device_move
2024/11/16 18:43 net-next 38f83a57aa8e cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in device_move
2025/01/09 18:57 linux-next 7b4b9bf203da 40f46913 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in device_move
* Struck through repros no longer work on HEAD.