Bluetooth: hci2: Opcode 0x0406 failed: -4 Bluetooth: hci2: Opcode 0x0406 failed: -4 Bluetooth: hci3: Opcode 0x0c1a failed: -4 Bluetooth: hci3: Opcode 0x0406 failed: -4 Oops: general protection fault, probably for non-canonical address 0xdffffc000000000b: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000058-0x000000000000005f] CPU: 2 UID: 0 PID: 6629 Comm: syz.2.149 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:klist_put+0x4d/0x1d0 lib/klist.c:212 Code: c1 ea 03 80 3c 02 00 0f 85 74 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 43 01 00 00 4c 89 e7 4d 8b 74 24 58 e8 6c ee 0c RSP: 0000:ffffc90004197280 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88801303b860 RCX: ffffc9000e304000 RDX: 000000000000000b RSI: ffffffff8b69f265 RDI: 0000000000000058 RBP: 0000000000000001 R08: 0000000000000000 R09: fffffbfff2135594 R10: ffffffff909aaca3 R11: 000000000000001e R12: 0000000000000000 R13: 0000000000000001 R14: ffffffff909aac60 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880975e3000(0063) knlGS:00000000f5414b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f733e720 CR3: 000000004dc6c000 CR4: 0000000000352ef0 Call Trace: klist_del lib/klist.c:230 [inline] klist_remove+0x14c/0x2e0 lib/klist.c:249 device_move+0x12d/0x1140 drivers/base/core.c:4615 hci_conn_del_sysfs+0x86/0x1a0 net/bluetooth/hci_sysfs.c:75 hci_conn_cleanup net/bluetooth/hci_conn.c:173 [inline] hci_conn_del+0x506/0x1180 net/bluetooth/hci_conn.c:1234 hci_abort_conn_sync+0x7d9/0xb20 net/bluetooth/hci_sync.c:5722 hci_disconnect_all_sync.constprop.0.isra.0+0x155/0x430 net/bluetooth/hci_sync.c:5745 hci_suspend_sync+0x8b7/0xa70 net/bluetooth/hci_sync.c:6221 hci_suspend_dev+0x31d/0x540 net/bluetooth/hci_core.c:2849 hci_suspend_notifier+0x21e/0x330 net/bluetooth/hci_core.c:2420 notifier_call_chain+0x99/0x3b0 kernel/notifier.c:85 notifier_call_chain_robust kernel/notifier.c:120 [inline] blocking_notifier_call_chain_robust kernel/notifier.c:345 [inline] blocking_notifier_call_chain_robust+0xc8/0x160 kernel/notifier.c:333 pm_notifier_call_chain_robust+0x27/0x60 kernel/power/main.c:172 snapshot_open+0x189/0x2a0 kernel/power/user.c:77 misc_open+0x26d/0x450 drivers/char/misc.c:163 chrdev_open+0x234/0x6a0 fs/char_dev.c:414 do_dentry_open+0x73e/0x1570 fs/open.c:962 vfs_open+0x82/0x3f0 fs/open.c:1094 do_open fs/namei.c:4637 [inline] path_openat+0x21dc/0x3120 fs/namei.c:4796 do_filp_open+0x1f7/0x420 fs/namei.c:4823 do_sys_openat2+0x12e/0x220 fs/open.c:1430 do_sys_open fs/open.c:1436 [inline] __do_compat_sys_openat fs/open.c:1498 [inline] __se_compat_sys_openat fs/open.c:1496 [inline] __ia32_compat_sys_openat+0x12d/0x210 fs/open.c:1496 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0xde/0x660 arch/x86/entry/syscall_32.c:307 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:332 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7f93579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 2e 8d b4 26 00 00 00 00 8d b4 26 00 00 00 RSP: 002b:00000000f541450c EFLAGS: 00000292 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00000000ffffff9c RCX: 0000000080000040 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:klist_put+0x4d/0x1d0 lib/klist.c:212 Code: c1 ea 03 80 3c 02 00 0f 85 74 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 43 01 00 00 4c 89 e7 4d 8b 74 24 58 e8 6c ee 0c RSP: 0000:ffffc90004197280 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88801303b860 RCX: ffffc9000e304000 RDX: 000000000000000b RSI: ffffffff8b69f265 RDI: 0000000000000058 RBP: 0000000000000001 R08: 0000000000000000 R09: fffffbfff2135594 R10: ffffffff909aaca3 R11: 000000000000001e R12: 0000000000000000 R13: 0000000000000001 R14: ffffffff909aac60 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880975e3000(0063) knlGS:00000000f5414b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f733e720 CR3: 000000004dc6c000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: c1 ea 03 shr $0x3,%edx 3: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 7: 0f 85 74 01 00 00 jne 0x181 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 43 01 00 00 jne 0x177 34: 4c 89 e7 mov %r12,%rdi 37: 4d 8b 74 24 58 mov 0x58(%r12),%r14 3c: e8 .byte 0xe8 3d: 6c insb (%dx),%es:(%rdi) 3e: ee out %al,(%dx) 3f: 0c .byte 0xc