Bluetooth: hci0: Opcode 0x0c1a failed: -4 Bluetooth: hci0: Error when powering off device on rfkill (-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: 0 UID: 0 PID: 5346 Comm: syz.0.0 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 lib/klist.c:212 [inline] RIP: 0010:klist_del lib/klist.c:230 [inline] RIP: 0010:klist_remove+0x156/0x340 lib/klist.c:249 Code: 4d 89 f5 49 c1 ed 03 43 80 7c 3d 00 00 74 08 4c 89 f7 e8 6d 19 ba f6 4d 8b 26 49 83 e4 fe 49 8d 7c 24 58 48 89 f8 48 c1 e8 03 <42> 80 3c 38 00 74 05 e8 4e 19 ba f6 49 8b 44 24 58 48 89 44 24 08 RSP: 0018:ffffc9000e967820 EFLAGS: 00010202 RAX: 000000000000000b RBX: ffff888000da8000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058 RBP: ffffc9000e967920 R08: ffffffff8fb5a1a3 R09: 1ffffffff1f6b434 R10: dffffc0000000000 R11: fffffbfff1f6b435 R12: 0000000000000000 R13: 1ffff1100743ec8c R14: ffff88803a1f6460 R15: dffffc0000000000 FS: 00007f18ee7ea6c0(0000) GS:ffff88808cf1d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f1b5b3ae20 CR3: 0000000011c0a000 CR4: 0000000000352ef0 Call Trace: device_move+0x193/0x730 drivers/base/core.c:4615 hci_conn_del_sysfs+0xb8/0x1a0 net/bluetooth/hci_sysfs.c:75 hci_conn_cleanup net/bluetooth/hci_conn.c:173 [inline] hci_conn_del+0xc36/0x1230 net/bluetooth/hci_conn.c:1234 hci_conn_hash_flush+0x191/0x260 net/bluetooth/hci_conn.c:2638 hci_dev_close_sync+0x821/0x10e0 net/bluetooth/hci_sync.c:5327 hci_dev_do_close+0x30/0xc0 net/bluetooth/hci_core.c:501 hci_rfkill_set_block+0x1f4/0x290 net/bluetooth/hci_core.c:929 rfkill_set_block+0x1d2/0x440 net/rfkill/core.c:346 rfkill_fop_write+0x461/0x5a0 net/rfkill/core.c:1301 vfs_write+0x29a/0xb90 fs/read_write.c:684 ksys_write+0x150/0x270 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f18ed99acb9 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:00007f18ee7ea028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f18edc15fa0 RCX: 00007f18ed99acb9 RDX: 0000000000000008 RSI: 0000200000000080 RDI: 0000000000000003 RBP: 00007f18eda08bf7 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f18edc16038 R14: 00007f18edc15fa0 R15: 00007ffe24040b68 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+0x156/0x340 lib/klist.c:249 Code: 4d 89 f5 49 c1 ed 03 43 80 7c 3d 00 00 74 08 4c 89 f7 e8 6d 19 ba f6 4d 8b 26 49 83 e4 fe 49 8d 7c 24 58 48 89 f8 48 c1 e8 03 <42> 80 3c 38 00 74 05 e8 4e 19 ba f6 49 8b 44 24 58 48 89 44 24 08 RSP: 0018:ffffc9000e967820 EFLAGS: 00010202 RAX: 000000000000000b RBX: ffff888000da8000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000058 RBP: ffffc9000e967920 R08: ffffffff8fb5a1a3 R09: 1ffffffff1f6b434 R10: dffffc0000000000 R11: fffffbfff1f6b435 R12: 0000000000000000 R13: 1ffff1100743ec8c R14: ffff88803a1f6460 R15: dffffc0000000000 FS: 00007f18ee7ea6c0(0000) GS:ffff88808cf1d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd8f9283c8 CR3: 0000000011c0a000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 4d 89 f5 mov %r14,%r13 3: 49 c1 ed 03 shr $0x3,%r13 7: 43 80 7c 3d 00 00 cmpb $0x0,0x0(%r13,%r15,1) d: 74 08 je 0x17 f: 4c 89 f7 mov %r14,%rdi 12: e8 6d 19 ba f6 call 0xf6ba1984 17: 4d 8b 26 mov (%r14),%r12 1a: 49 83 e4 fe and $0xfffffffffffffffe,%r12 1e: 49 8d 7c 24 58 lea 0x58(%r12),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction 2f: 74 05 je 0x36 31: e8 4e 19 ba f6 call 0xf6ba1984 36: 49 8b 44 24 58 mov 0x58(%r12),%rax 3b: 48 89 44 24 08 mov %rax,0x8(%rsp)