Bluetooth: hci4: Error when powering off device on rfkill (-4) Bluetooth: hci1: Opcode 0x0c1a failed: -4 Bluetooth: hci1: Error when powering off device on rfkill (-4) Oops: general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037] CPU: 2 UID: 0 PID: 30889 Comm: syz.6.6451 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:kernfs_rename_ns+0x3b/0xa50 fs/kernfs/dir.c:1750 Code: 48 89 fb 4c 8d 73 30 48 83 ec 28 48 89 14 24 48 89 4c 24 08 e8 d6 5c 55 ff 4c 89 f2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 f9 08 00 00 48 8b 43 30 48 85 c0 0f 84 a8 08 00 RSP: 0018:ffffc90004aef8e8 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9002ac2a000 RDX: 0000000000000006 RSI: ffffffff8268fbea RDI: 0000000000000000 RBP: ffff88804134d0f0 R08: 0000000000000007 R09: 0000000000000000 R10: 000000007fffffff R11: ffff8880238caff0 R12: ffff88804bfd3ea0 R13: ffff88804ad30a00 R14: 0000000000000030 R15: 1ffff9200095df29 FS: 0000000000000000(0000) GS:ffff8880978fd000(0063) knlGS:00000000f548db40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000573284c0 CR3: 000000005d947000 CR4: 0000000000352ef0 Call Trace: kobject_move+0x127/0x260 lib/kobject.c:569 device_move+0xa9/0x1160 drivers/base/core.c:4606 hci_conn_del_sysfs+0xaa/0x1a0 net/bluetooth/hci_sysfs.c:75 hci_conn_cleanup net/bluetooth/hci_conn.c:173 [inline] hci_conn_del+0x680/0x11d0 net/bluetooth/hci_conn.c:1234 hci_conn_hash_flush+0x186/0x290 net/bluetooth/hci_conn.c:2638 hci_dev_close_sync+0x601/0x1260 net/bluetooth/hci_sync.c:5326 hci_dev_do_close+0x2e/0xc0 net/bluetooth/hci_core.c:501 hci_rfkill_set_block+0x225/0x3b0 net/bluetooth/hci_core.c:929 rfkill_set_block+0x1fe/0x550 net/rfkill/core.c:346 rfkill_fop_write+0x2c0/0x580 net/rfkill/core.c:1301 vfs_write+0x2a0/0x11d0 fs/read_write.c:684 ksys_write+0x1f8/0x250 fs/read_write.c:738 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0xe8/0x680 arch/x86/entry/syscall_32.c:307 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:332 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf709d579 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 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f548d55c EFLAGS: 00000296 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000009 RCX: 0000000080000080 RDX: 0000000000000008 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:kernfs_rename_ns+0x3b/0xa50 fs/kernfs/dir.c:1750 Code: 48 89 fb 4c 8d 73 30 48 83 ec 28 48 89 14 24 48 89 4c 24 08 e8 d6 5c 55 ff 4c 89 f2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 f9 08 00 00 48 8b 43 30 48 85 c0 0f 84 a8 08 00 RSP: 0018:ffffc90004aef8e8 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9002ac2a000 RDX: 0000000000000006 RSI: ffffffff8268fbea RDI: 0000000000000000 RBP: ffff88804134d0f0 R08: 0000000000000007 R09: 0000000000000000 R10: 000000007fffffff R11: ffff8880238caff0 R12: ffff88804bfd3ea0 R13: ffff88804ad30a00 R14: 0000000000000030 R15: 1ffff9200095df29 FS: 0000000000000000(0000) GS:ffff8880979fd000(0063) knlGS:00000000f548db40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000033e0cff8 CR3: 000000005d947000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 48 89 fb mov %rdi,%rbx 3: 4c 8d 73 30 lea 0x30(%rbx),%r14 7: 48 83 ec 28 sub $0x28,%rsp b: 48 89 14 24 mov %rdx,(%rsp) f: 48 89 4c 24 08 mov %rcx,0x8(%rsp) 14: e8 d6 5c 55 ff call 0xff555cef 19: 4c 89 f2 mov %r14,%rdx 1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 23: fc ff df 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 f9 08 00 00 jne 0x92d 34: 48 8b 43 30 mov 0x30(%rbx),%rax 38: 48 85 c0 test %rax,%rax 3b: 0f .byte 0xf 3c: 84 .byte 0x84 3d: a8 08 test $0x8,%al