Bluetooth: Can't register HCI device kobject_add_internal failed for hci0 (error: -2 parent: bluetooth) Bluetooth: Can't register HCI device kobject_add_internal failed for hci0 (error: -2 parent: bluetooth) Bluetooth: Can't register HCI device WARNING: CPU: 0 PID: 9688 at fs/kernfs/dir.c:494 kernfs_get.part.0+0x73/0x90 fs/kernfs/dir.c:494 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 9688 Comm: syz-executor2 Not tainted 5.1.0-rc2 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 panic+0x2cb/0x65c kernel/panic.c:214 __warn.cold+0x20/0x45 kernel/panic.c:571 report_bug+0x263/0x2b0 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:179 [inline] fixup_bug arch/x86/kernel/traps.c:174 [inline] do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:291 kobject: 'bluetooth' (0000000036becc10): kobject_add_internal: parent: 'virtual', set: '(null)' invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:973 RIP: 0010:kernfs_get.part.0+0x73/0x90 fs/kernfs/dir.c:494 Code: e6 e8 e1 c2 9a ff 45 85 e4 74 1a e8 57 c1 9a ff be 04 00 00 00 48 89 df e8 da f9 d2 ff f0 ff 03 5b 41 5c 5d c3 e8 3d c1 9a ff <0f> 0b eb dd 48 89 df e8 b1 1f d3 ff eb c1 0f 1f 44 00 00 66 2e 0f RSP: 0018:ffff88801e57f808 EFLAGS: 00010293 RAX: ffff888025210000 RBX: ffff88806f978000 RCX: ffffffff81d6822f RDX: 0000000000000000 RSI: ffffffff81d68253 RDI: 0000000000000005 RBP: ffff88801e57f818 R08: ffff888025210000 R09: ffffed100df2f001 R10: ffffed100df2f000 R11: ffff88806f978003 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001 kobject: 'hci1' (000000004fcabb44): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci1' (000000004fcabb44): kobject_uevent_env kernfs_get fs/kernfs/dir.c:493 [inline] kernfs_new_node+0xb8/0x130 fs/kernfs/dir.c:698 kobject: 'hci2' (000000006a9a55c3): kobject_add_internal: parent: 'bluetooth', set: 'devices' kernfs_create_dir_ns+0x52/0x160 fs/kernfs/dir.c:1021 kobject: 'hci2' (000000006a9a55c3): kobject_uevent_env sysfs_create_dir_ns+0x131/0x2a0 fs/sysfs/dir.c:59 kobject: 'hci1' (000000004fcabb44): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1' kobject: 'rfkill1103' (0000000019667ecd): kobject_add_internal: parent: 'hci1', set: 'devices' create_dir lib/kobject.c:88 [inline] kobject_add_internal lib/kobject.c:247 [inline] kobject_add_internal.cold+0xe5/0x5d4 lib/kobject.c:217 kobject_add_varg lib/kobject.c:382 [inline] kobject_add+0x150/0x1c0 lib/kobject.c:426 kobject: 'rfkill1103' (0000000019667ecd): kobject_uevent_env device_add+0x3d5/0x18a0 drivers/base/core.c:2057 kobject: 'rfkill1103' (0000000019667ecd): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill1103' kobject: 'hci2' (000000006a9a55c3): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'rfkill1104' (0000000076d4aaa7): kobject_add_internal: parent: 'hci2', set: 'devices' hci_register_dev+0x2e8/0x860 net/bluetooth/hci_core.c:3307 __vhci_create_device+0x2d0/0x5a0 drivers/bluetooth/hci_vhci.c:139 vhci_create_device drivers/bluetooth/hci_vhci.c:163 [inline] vhci_get_user drivers/bluetooth/hci_vhci.c:219 [inline] vhci_write+0x2d0/0x470 drivers/bluetooth/hci_vhci.c:299 call_write_iter include/linux/fs.h:1863 [inline] new_sync_write+0x4c7/0x760 fs/read_write.c:474 kobject: 'rfkill1104' (0000000076d4aaa7): kobject_uevent_env kobject: 'rfkill1104' (0000000076d4aaa7): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill1104' kobject: 'hci3' (00000000519acec1): kobject_add_internal: parent: 'bluetooth', set: 'devices' __vfs_write+0xe4/0x110 fs/read_write.c:487 kobject: 'hci3' (00000000519acec1): kobject_uevent_env vfs_write+0x20c/0x580 fs/read_write.c:549 kobject: 'hci4' (00000000b542ea85): kobject_add_internal: parent: 'bluetooth', set: 'devices' ksys_write+0xea/0x1f0 fs/read_write.c:598 kobject: 'hci4' (00000000b542ea85): kobject_uevent_env __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 kobject: 'hci3' (00000000519acec1): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 kobject: 'rfkill1105' (0000000029b9ee4e): kobject_add_internal: parent: 'hci3', set: 'devices' entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4576a9 Code: 4d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 1b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 kobject: 'rfkill1103' (0000000019667ecd): kobject_uevent_env RSP: 002b:00007f9f9aaaac88 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 kobject: 'rfkill1103' (0000000019667ecd): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill1103' RAX: ffffffffffffffda RBX: 000000000071bf00 RCX: 00000000004576a9 RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9f9aaab6d4 kobject: 'hci4' (00000000b542ea85): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' R13: 00000000004add53 R14: 00000000006ef630 R15: 00000000ffffffff kobject: 'rfkill1105' (0000000029b9ee4e): kobject_uevent_env Kernel Offset: disabled Rebooting in 86400 seconds..