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: 'hci2' (00000000021bc54c): kobject_add_internal: parent: 'bluetooth', set: 'devices' CPU: 1 PID: 11680 Comm: syz-executor247 Not tainted 4.19.36 #4 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 RSP: 0018:ffff88808785f858 EFLAGS: 00010202 kobject: 'hci3' (00000000b9d112f7): kobject_add_internal: parent: 'bluetooth', set: 'devices' RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff86edd7a8 kobject: 'hci4' (000000004921c235): kobject_add_internal: parent: 'bluetooth', set: 'devices' RDX: 0000000000000001 RSI: ffffffff81ccfbeb RDI: 0000000000000008 RBP: ffff88808785f898 R08: 1ffffffff11105cc R09: fffffbfff11105cd R10: fffffbfff11105cc R11: ffffffff88882e67 R12: ffff888089363a80 R13: ffff888089363a80 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000d4f880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe45d11f24 CR3: 0000000087cae000 CR4: 00000000001406e0 kobject: 'hci3' (00000000b9d112f7): kobject_uevent_env DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kernfs_create_dir_ns+0xff/0x160 fs/kernfs/dir.c:1031 sysfs_create_dir_ns+0x131/0x290 fs/sysfs/dir.c:58 kobject: 'hci2' (00000000021bc54c): kobject_uevent_env 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: 'rfkill3822' (000000004de06689): calling ktype release kobject_add_varg lib/kobject.c:382 [inline] kobject_add+0x150/0x1c0 lib/kobject.c:426 kobject: 'hci2' (00000000021bc54c): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'hci6' (00000000497420fc): kobject_add_internal: parent: 'bluetooth', set: 'devices' device_add+0x3cc/0x1770 drivers/base/core.c:1885 kobject: 'rfkill3824' (000000004be03e65): kobject_add_internal: parent: 'hci2', set: 'devices' kobject: 'hci4' (000000004921c235): kobject_uevent_env kobject: 'hci4' (000000004921c235): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' hci_register_dev+0x304/0x880 net/bluetooth/hci_core.c:3198 __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+0x2d6/0x470 drivers/bluetooth/hci_vhci.c:299 kobject: 'rfkill3822': free name 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: 'hci3' (00000000b9d112f7): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'hci6' (00000000497420fc): kobject_uevent_env kobject: 'rfkill3824' (000000004be03e65): kobject_uevent_env kobject: 'hci6' (00000000497420fc): fill_kobj_path: path = '/devices/virtual/bluetooth/hci6' kobject: 'hci5' (00000000e1d05666): kobject_uevent_env kobject: 'hci5' (00000000e1d05666): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' vfs_write+0x20c/0x560 fs/read_write.c:549 ksys_write+0xea/0x1f0 fs/read_write.c:598 kobject: 'rfkill3824' (000000004be03e65): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill3824' kobject: 'rfkill3825' (000000005133806b): kobject_add_internal: parent: 'hci4', set: 'devices' __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: 'rfkill3824' (000000004be03e65): kobject_uevent_env do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x441279 kobject: 'hci5' (00000000e1d05666): 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:00007ffe45d11f18 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441279 RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 0000000000015f8e R08: 00000000004002c8 R09: 00000000004002c8 R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000401ff0 R13: 0000000000402080 R14: 0000000000000000 R15: 0000000000000000 kobject: 'rfkill3825' (000000005133806b): kobject_uevent_env Modules linked in: kobject: 'rfkill3825' (000000005133806b): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill3825' ---[ end trace 327b1c9d521e3c11 ]--- kobject: 'rfkill3826' (000000004f3b3f08): kobject_add_internal: parent: 'hci6', set: 'devices' kobject: 'rfkill3824' (000000004be03e65): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill3824' kobject: 'rfkill3826' (000000004f3b3f08): kobject_uevent_env kobject: 'hci5' (00000000e1d05666): calling ktype release kobject: 'rfkill3825' (000000005133806b): kobject_uevent_env kobject: 'hci5': free name kobject: 'rfkill3825' (000000005133806b): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill3825' kobject: 'rfkill3826' (000000004f3b3f08): fill_kobj_path: path = '/devices/virtual/bluetooth/hci6/rfkill3826' kobject: 'hci5' (000000007921a49b): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill3826' (000000004f3b3f08): kobject_uevent_env kobject: 'rfkill3827' (000000008ff7065c): kobject_add_internal: parent: 'hci3', set: 'devices' RIP: 0010:kernfs_add_one+0x343/0x4d0 fs/kernfs/dir.c:812 kobject: 'rfkill3827' (000000008ff7065c): kobject_uevent_env kobject: 'rfkill3826' (000000004f3b3f08): fill_kobj_path: path = '/devices/virtual/bluetooth/hci6/rfkill3826' kobject: 'hci5' (000000007921a49b): kobject_uevent_env 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: 'rfkill3827' (000000008ff7065c): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill3827' RSP: 0018:ffff88808785f858 EFLAGS: 00010202 kobject: 'hci5' (000000007921a49b): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' kobject: 'rfkill3824' (000000004be03e65): kobject_cleanup, parent (null) kobject: 'rfkill3825' (000000005133806b): kobject_cleanup, parent (null) kobject: 'rfkill3826' (000000004f3b3f08): kobject_cleanup, parent (null) kobject: 'rfkill3826' (000000004f3b3f08): calling ktype release kobject: 'rfkill3827' (000000008ff7065c): kobject_uevent_env kobject: 'rfkill3825' (000000005133806b): calling ktype release kobject: 'rfkill3825': free name kobject: 'rfkill3824' (000000004be03e65): calling ktype release RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff86edd7a8 kobject: 'hci4' (000000004921c235): kobject_uevent_env kobject: 'rfkill3826': free name kobject: 'rfkill3824': free name kobject: 'rfkill3827' (000000008ff7065c): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill3827' RDX: 0000000000000001 RSI: ffffffff81ccfbeb RDI: 0000000000000008 kobject: 'hci2' (00000000021bc54c): kobject_uevent_env kobject: 'hci4' (000000004921c235): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' kobject: 'hci6' (00000000497420fc): kobject_uevent_env kobject: 'rfkill3827' (000000008ff7065c): kobject_cleanup, parent (null) kobject: 'hci4' (000000004921c235): kobject_cleanup, parent (null) kobject: 'hci2' (00000000021bc54c): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'hci6' (00000000497420fc): fill_kobj_path: path = '/devices/virtual/bluetooth/hci6' kobject: 'hci2' (00000000021bc54c): kobject_cleanup, parent (null) kobject: 'hci4' (000000004921c235): calling ktype release kobject: 'rfkill3828' (00000000e964a541): kobject_add_internal: parent: 'hci5', set: 'devices' kobject: 'rfkill3827' (000000008ff7065c): calling ktype release RBP: ffff88808785f898 R08: 1ffffffff11105cc R09: fffffbfff11105cd kobject: 'hci4': free name kobject: 'hci2' (00000000021bc54c): calling ktype release kobject: 'rfkill3827': free name kobject: 'hci6' (00000000497420fc): kobject_cleanup, parent (null) kobject: 'hci2': free name kobject: 'hci2' (00000000f10ecfa4): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill3828' (00000000e964a541): kobject_uevent_env kobject: 'hci3' (00000000b9d112f7): kobject_uevent_env R10: fffffbfff11105cc R11: ffffffff88882e67 R12: ffff888089363a80 kobject: 'hci2' (00000000f10ecfa4): kobject_uevent_env kobject: 'hci6' (00000000497420fc): calling ktype release kobject: 'hci4' (0000000066163c98): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci3' (00000000b9d112f7): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'hci2' (00000000f10ecfa4): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' R13: ffff888089363a80 R14: 0000000000000000 R15: 0000000000000000 kobject: 'hci4' (0000000066163c98): kobject_uevent_env kobject: 'hci6': free name kobject: 'hci3' (00000000b9d112f7): kobject_cleanup, parent (null) kobject: 'hci4' (0000000066163c98): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' kobject: 'rfkill3828' (00000000e964a541): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill3828' kobject: 'hci3' (00000000b9d112f7): calling ktype release kobject: 'hci3': free name FS: 0000000000d4f880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 kobject: 'hci3' (000000001d8a24d3): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci6' (00000000732725f0): kobject_add_internal: parent: 'bluetooth', set: 'devices' CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007feb25771000 CR3: 0000000087cae000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kobject: 'hci6' (00000000732725f0): kobject_uevent_env kobject: 'hci3' (000000001d8a24d3): kobject_uevent_env DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 kobject: 'hci3' (000000001d8a24d3): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'rfkill3829' (000000002eaa42be): kobject_add_internal: parent: 'hci2', set: 'devices' kobject: 'rfkill3828' (00000000e964a541): kobject_uevent_env kobject: 'hci6' (00000000732725f0): fill_kobj_path: path = '/devices/virtual/bluetooth/hci6' kobject: 'rfkill3828' (00000000e964a541): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill3828'