kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN kobject: 'hci6' (0000000012fdc9a4): kobject_add_internal: parent: 'bluetooth', set: 'devices' CPU: 1 PID: 7697 Comm: syz-executor189 Not tainted 4.19.35 #3 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:kernfs_add_one+0x343/0x4d0 fs/kernfs/dir.c:812 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 52 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 5b 70 48 8d 7b 08 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 1f 01 00 00 8b 5b 08 31 ff 83 kobject: 'hci6' (0000000012fdc9a4): kobject_uevent_env RSP: 0018:ffff8880781d7858 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff86edb778 RDX: 0000000000000001 RSI: ffffffff81cce98b RDI: 0000000000000008 RBP: ffff8880781d7898 R08: 1ffffffff1110598 R09: fffffbfff1110599 R10: fffffbfff1110598 R11: ffffffff88882cc7 R12: ffff8880a0e1d700 kobject: 'hci6' (0000000012fdc9a4): fill_kobj_path: path = '/devices/virtual/bluetooth/hci6' R13: ffff8880a0e1d700 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000002497880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004bf748 CR3: 0000000093661000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kobject: 'rfkill110' (00000000eca5cec2): kobject_uevent_env kernfs_create_dir_ns+0xff/0x160 fs/kernfs/dir.c:1031 sysfs_create_dir_ns+0x131/0x290 fs/sysfs/dir.c:58 kobject: 'rfkill108' (00000000f02b169c): kobject_uevent_env kobject: 'rfkill110' (00000000eca5cec2): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill110' 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: 'rfkill107' (00000000ccba8e60): kobject_cleanup, parent (null) device_add+0x3cc/0x1770 drivers/base/core.c:1885 kobject: 'rfkill109' (000000003517892c): kobject_cleanup, parent (null) kobject: 'rfkill111' (000000004198e47e): kobject_add_internal: parent: 'hci6', set: 'devices' hci_register_dev+0x304/0x880 net/bluetooth/hci_core.c:3196 __vhci_create_device+0x2d0/0x5a0 drivers/bluetooth/hci_vhci.c:139 kobject: 'rfkill110' (00000000eca5cec2): kobject_uevent_env vhci_create_device drivers/bluetooth/hci_vhci.c:163 [inline] vhci_get_user drivers/bluetooth/hci_vhci.c:219 [inline] vhci_write+0x2d6/0x470 drivers/bluetooth/hci_vhci.c:299 call_write_iter include/linux/fs.h:1811 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x58e/0x820 fs/read_write.c:487 kobject: 'rfkill111' (000000004198e47e): kobject_uevent_env kobject: 'rfkill108' (00000000f02b169c): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill108' vfs_write+0x20c/0x560 fs/read_write.c:549 ksys_write+0xea/0x1f0 fs/read_write.c:598 kobject: 'rfkill110' (00000000eca5cec2): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill110' kobject: 'rfkill111' (000000004198e47e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci6/rfkill111' kobject: 'rfkill107' (00000000ccba8e60): calling ktype release __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 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 kobject: 'rfkill109' (000000003517892c): calling ktype release entry_SYSCALL_64_after_hwframe+0x49/0xbe kobject: 'rfkill109': free name RIP: 0033:0x441269 kobject: 'rfkill108' (00000000f02b169c): kobject_cleanup, parent (null) Code: e8 ac e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 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 0f 83 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffc110e5d98 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 kobject: 'rfkill111' (000000004198e47e): kobject_uevent_env RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441269 RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 0000000000012122 R08: 00000000004002c8 R09: 00000000004002c8 R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000401fe0 R13: 0000000000402070 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 488d26e4fa9129d1 ]--- kobject: 'rfkill108' (00000000f02b169c): calling ktype release RIP: 0010:kernfs_add_one+0x343/0x4d0 fs/kernfs/dir.c:812 kobject: 'rfkill107': free name Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 52 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 5b 70 48 8d 7b 08 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 1f 01 00 00 8b 5b 08 31 ff 83 kobject: 'rfkill110' (00000000eca5cec2): kobject_cleanup, parent (null) RSP: 0018:ffff8880781d7858 EFLAGS: 00010202 kobject: 'hci3' (000000001bb452c2): kobject_uevent_env kobject: 'hci5' (0000000058552633): kobject_uevent_env RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff86edb778 kobject: 'rfkill111' (000000004198e47e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci6/rfkill111' RDX: 0000000000000001 RSI: ffffffff81cce98b RDI: 0000000000000008 kobject: 'hci3' (000000001bb452c2): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' RBP: ffff8880781d7898 R08: 1ffffffff1110598 R09: fffffbfff1110599 kobject: 'rfkill108': free name R10: fffffbfff1110598 R11: ffffffff88882cc7 R12: ffff8880a0e1d700 kobject: 'rfkill111' (000000004198e47e): kobject_cleanup, parent (null) R13: ffff8880a0e1d700 R14: 0000000000000000 R15: 0000000000000000 kobject: 'hci3' (000000001bb452c2): kobject_cleanup, parent (null) kobject: 'hci5' (0000000058552633): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' kobject: 'hci4' (000000008405ca39): kobject_uevent_env kobject: 'rfkill110' (00000000eca5cec2): calling ktype release kobject: 'hci3' (000000001bb452c2): calling ktype release kobject: 'hci5' (0000000058552633): kobject_cleanup, parent (null) kobject: 'hci4' (000000008405ca39): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' FS: 0000000002497880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 kobject: 'rfkill111' (000000004198e47e): calling ktype release kobject: 'rfkill110': free name kobject: 'hci4' (000000008405ca39): kobject_cleanup, parent (null) CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kobject: 'rfkill111': free name kobject: 'hci2' (0000000042c5c87a): kobject_uevent_env kobject: 'hci4' (000000008405ca39): calling ktype release CR2: 00000000004bf748 CR3: 0000000093661000 CR4: 00000000001406e0 kobject: 'hci5' (0000000058552633): calling ktype release kobject: 'hci2' (0000000042c5c87a): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'hci6' (0000000012fdc9a4): kobject_uevent_env DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kobject: 'hci5': free name kobject: 'hci3': free name kobject: 'hci2' (0000000042c5c87a): kobject_cleanup, parent (null) DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 kobject: 'hci4': free name kobject: 'hci2' (00000000bfa2af33): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci2' (0000000042c5c87a): calling ktype release