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: 'hci5' (00000000d08e6b0d): kobject_add_internal: parent: 'bluetooth', set: 'devices' CPU: 0 PID: 6269 Comm: syz-executor519 Not tainted 4.20.0-rc2+ #116 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:kernfs_add_one+0x342/0x4d0 fs/kernfs/dir.c:812 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 49 01 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 6d 70 49 8d 7d 08 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 16 01 00 00 45 8b 6d 08 31 ff RSP: 0018:ffff8881ce4d75d0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8881c3e94380 RCX: ffffffff87da71c7 RDX: 0000000000000001 RSI: ffffffff81f8f80a RDI: 0000000000000008 RBP: ffff8881ce4d7618 R08: fffffbfff12cfa19 R09: fffffbfff12cfa18 R10: fffffbfff12cfa18 R11: ffffffff8967d0c7 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000fbd880(0000) GS:ffff8881dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f12db020000 CR3: 00000001b207b000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kernfs_create_dir_ns+0xf6/0x160 fs/kernfs/dir.c:1031 sysfs_create_dir_ns+0x19b/0x340 fs/sysfs/dir.c:58 kobject: 'rfkill68' (00000000662fd0ea): kobject_cleanup, parent (null) create_dir lib/kobject.c:88 [inline] kobject_add_internal.cold.11+0x116/0x6af lib/kobject.c:247 kobject: 'hci4' (00000000df92b626): kobject_uevent_env kobject_add_varg lib/kobject.c:382 [inline] kobject_add+0x13f/0x1b0 lib/kobject.c:426 kobject: 'rfkill68' (00000000662fd0ea): calling ktype release device_add+0x445/0x18e0 drivers/base/core.c:1879 kobject: 'hci5' (00000000d08e6b0d): kobject_uevent_env kobject: 'rfkill68': free name hci_register_dev+0x3b3/0x9c0 net/bluetooth/hci_core.c:3261 kobject: 'hci4' (00000000df92b626): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' __vhci_create_device+0x2c1/0x580 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+0x2de/0x470 drivers/bluetooth/hci_vhci.c:299 call_write_iter include/linux/fs.h:1857 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x6b8/0x9f0 fs/read_write.c:487 kobject: 'hci5' (00000000d08e6b0d): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' kobject: 'hci3' (00000000fbb30a81): kobject_uevent_env vfs_write+0x1fc/0x560 fs/read_write.c:549 ksys_write+0x101/0x260 fs/read_write.c:598 kobject: 'hci3' (00000000fbb30a81): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' __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+0x1b9/0x820 arch/x86/entry/common.c:290 kobject: 'rfkill69' (00000000d92987c5): kobject_add_internal: parent: 'hci4', set: 'devices' kobject: 'hci3' (00000000fbb30a81): kobject_cleanup, parent (null) entry_SYSCALL_64_after_hwframe+0x49/0xbe kobject: 'rfkill69' (00000000d92987c5): kobject_uevent_env RIP: 0033:0x440e49 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 0b 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffdced967e8 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440e49 RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 R10: 0000000000fbd880 R11: 0000000000000213 R12: 000000000000eaa5 kobject: 'rfkill69' (00000000d92987c5): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill69' R13: 0000000000401d70 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: kobject: 'hci2' (000000002c64f9c1): kobject_cleanup, parent (null) kobject: 'rfkill70' (00000000be77b06d): kobject_add_internal: parent: 'hci5', set: 'devices' kobject: 'hci3' (00000000fbb30a81): calling ktype release kobject: 'rfkill69' (00000000d92987c5): kobject_uevent_env kobject: 'hci0' (00000000dff466f2): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill70' (00000000be77b06d): kobject_uevent_env kobject: 'hci2' (000000002c64f9c1): calling ktype release kobject: 'rfkill69' (00000000d92987c5): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill69' kobject: 'hci2': free name kobject: 'rfkill70' (00000000be77b06d): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill70' kobject: 'hci3': free name kobject: 'rfkill69' (00000000d92987c5): kobject_cleanup, parent (null) kobject: 'hci0' (00000000dff466f2): kobject_uevent_env kobject: 'rfkill70' (00000000be77b06d): kobject_uevent_env kobject: 'hci2' (00000000f5ac6303): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill69' (00000000d92987c5): calling ktype release kobject: 'hci3' (00000000c6692610): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill70' (00000000be77b06d): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill70' kobject: 'hci2' (00000000f5ac6303): kobject_uevent_env kobject: 'rfkill69': free name kobject: 'hci0' (00000000dff466f2): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0' kobject: 'rfkill70' (00000000be77b06d): kobject_cleanup, parent (null) kobject: 'hci3' (00000000c6692610): kobject_uevent_env kobject: 'hci4' (00000000df92b626): kobject_uevent_env kobject: 'hci2' (00000000f5ac6303): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'rfkill70' (00000000be77b06d): calling ktype release kobject: 'hci3' (00000000c6692610): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'rfkill70': free name kobject: 'rfkill71' (00000000096b4853): kobject_add_internal: parent: 'hci0', set: 'devices' kobject: 'hci4' (00000000df92b626): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' kobject: 'rfkill71' (00000000096b4853): kobject_uevent_env kobject: 'hci5' (00000000d08e6b0d): kobject_uevent_env kobject: 'rfkill71' (00000000096b4853): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0/rfkill71' kobject: 'hci5' (00000000d08e6b0d): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' kobject: 'rfkill72' (00000000c88d3574): kobject_add_internal: parent: 'hci3', set: 'devices' kobject: 'hci4' (00000000df92b626): kobject_cleanup, parent (null) kobject: 'rfkill71' (00000000096b4853): kobject_uevent_env kobject: 'hci4' (00000000df92b626): calling ktype release kobject: 'rfkill71' (00000000096b4853): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0/rfkill71' kobject: 'hci4': free name kobject: 'rfkill72' (00000000c88d3574): kobject_uevent_env kobject: 'hci5' (00000000d08e6b0d): kobject_cleanup, parent (null) kobject: 'rfkill72' (00000000c88d3574): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill72' kobject: 'hci4' (00000000fe73187d): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill73' (00000000602ad38e): kobject_add_internal: parent: 'hci2', set: 'devices' kobject: 'hci5' (00000000d08e6b0d): calling ktype release kobject: 'rfkill72' (00000000c88d3574): kobject_uevent_env kobject: 'hci5': free name kobject: 'rfkill73' (00000000602ad38e): kobject_uevent_env kobject: 'hci4' (00000000fe73187d): kobject_uevent_env kobject: 'rfkill72' (00000000c88d3574): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill72' kobject: 'hci4' (00000000fe73187d): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' kobject: 'rfkill73' (00000000602ad38e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill73' kobject: 'hci5' (000000003e8dab43): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill71' (00000000096b4853): kobject_cleanup, parent (null) kobject: 'rfkill74' (00000000103d40c5): kobject_add_internal: parent: 'hci4', set: 'devices' kobject: 'rfkill71' (00000000096b4853): calling ktype release kobject: 'rfkill71': free name kobject: 'hci0' (00000000dff466f2): kobject_uevent_env kobject: 'hci5' (000000003e8dab43): kobject_uevent_env kobject: 'rfkill73' (00000000602ad38e): kobject_uevent_env kobject: 'rfkill74' (00000000103d40c5): kobject_uevent_env ---[ end trace 3edc5b54c414d77f ]--- kobject: 'hci5' (000000003e8dab43): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' kobject: 'rfkill73' (00000000602ad38e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill73' kobject: 'rfkill74' (00000000103d40c5): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill74' kobject: 'hci0' (00000000dff466f2): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0' kobject: 'rfkill72' (00000000c88d3574): kobject_cleanup, parent (null) kobject: 'rfkill73' (00000000602ad38e): kobject_cleanup, parent (null) kobject: 'rfkill75' (00000000ac66dc03): kobject_add_internal: parent: 'hci5', set: 'devices' RIP: 0010:kernfs_add_one+0x342/0x4d0 fs/kernfs/dir.c:812 kobject: 'rfkill75' (00000000ac66dc03): kobject_uevent_env kobject: 'rfkill73' (00000000602ad38e): calling ktype release kobject: 'rfkill72' (00000000c88d3574): calling ktype release Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 49 01 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 6d 70 49 8d 7d 08 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 16 01 00 00 45 8b 6d 08 31 ff kobject: 'rfkill72': free name kobject: 'rfkill73': free name kobject: 'rfkill75' (00000000ac66dc03): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill75' kobject: 'hci0' (00000000dff466f2): kobject_cleanup, parent (null) kobject: 'hci3' (00000000c6692610): kobject_uevent_env kobject: 'hci0' (00000000dff466f2): calling ktype release kobject: 'rfkill74' (00000000103d40c5): kobject_uevent_env RSP: 0018:ffff8881ce4d75d0 EFLAGS: 00010202 kobject: 'rfkill75' (00000000ac66dc03): kobject_uevent_env kobject: 'hci0': free name kobject: 'rfkill74' (00000000103d40c5): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill74' kobject: 'hci2' (00000000f5ac6303): kobject_uevent_env kobject: 'hci3' (00000000c6692610): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' RAX: dffffc0000000000 RBX: ffff8881c3e94380 RCX: ffffffff87da71c7 kobject: 'rfkill75' (00000000ac66dc03): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill75' kobject: 'hci2' (00000000f5ac6303): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'rfkill74' (00000000103d40c5): kobject_cleanup, parent (null) RDX: 0000000000000001 RSI: ffffffff81f8f80a RDI: 0000000000000008 kobject: 'rfkill75' (00000000ac66dc03): kobject_cleanup, parent (null) kobject: 'hci0' (00000000ad4d6e7e): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill74' (00000000103d40c5): calling ktype release kobject: 'hci0' (00000000ad4d6e7e): kobject_uevent_env kobject: 'hci3' (00000000c6692610): kobject_cleanup, parent (null) kobject: 'hci2' (00000000f5ac6303): kobject_cleanup, parent (null) kobject: 'rfkill75' (00000000ac66dc03): calling ktype release RBP: ffff8881ce4d7618 R08: fffffbfff12cfa19 R09: fffffbfff12cfa18 kobject: 'rfkill74': free name kobject: 'hci0' (00000000ad4d6e7e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0' kobject: 'hci3' (00000000c6692610): calling ktype release kobject: 'hci2' (00000000f5ac6303): calling ktype release kobject: 'hci4' (00000000fe73187d): kobject_uevent_env R10: fffffbfff12cfa18 R11: ffffffff8967d0c7 R12: 0000000000000000 kobject: 'hci3': free name R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 kobject: 'hci4' (00000000fe73187d): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' kobject: 'rfkill75': free name kobject: 'hci2': free name kobject: 'rfkill76' (000000001c6a77e6): kobject_add_internal: parent: 'hci0', set: 'devices' kobject: 'hci4' (00000000fe73187d): kobject_cleanup, parent (null) kobject: 'hci5' (000000003e8dab43): kobject_uevent_env kobject: 'hci4' (00000000fe73187d): calling ktype release kobject: 'rfkill76' (000000001c6a77e6): kobject_uevent_env kobject: 'hci2' (0000000094418c0a): kobject_add_internal: parent: 'bluetooth', set: 'devices' FS: 0000000000fbd880(0000) GS:ffff8881dae00000(0000) knlGS:0000000000000000 kobject: 'hci4': free name kobject: 'rfkill76' (000000001c6a77e6): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0/rfkill76' kobject: 'hci2' (0000000094418c0a): kobject_uevent_env CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kobject: 'hci5' (000000003e8dab43): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' kobject: 'rfkill76' (000000001c6a77e6): kobject_uevent_env kobject: 'hci2' (0000000094418c0a): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'hci3' (000000001f8a5461): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci5' (000000003e8dab43): kobject_cleanup, parent (null) CR2: 00007f12db020000 CR3: 00000001b207b000 CR4: 00000000001406f0 kobject: 'hci4' (000000009670e0bb): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill76' (000000001c6a77e6): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0/rfkill76' kobject: 'rfkill77' (00000000b1400ad9): kobject_add_internal: parent: 'hci2', set: 'devices' kobject: 'hci3' (000000001f8a5461): kobject_uevent_env kobject: 'hci4' (000000009670e0bb): kobject_uevent_env DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kobject: 'rfkill77' (00000000b1400ad9): kobject_uevent_env kobject: 'hci3' (000000001f8a5461): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'hci4' (000000009670e0bb): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' kobject: 'hci5' (000000003e8dab43): calling ktype release kobject: 'rfkill77' (00000000b1400ad9): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill77' DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 kobject: 'rfkill76' (000000001c6a77e6): kobject_cleanup, parent (null) kobject: 'hci5': free name kobject: 'rfkill78' (00000000783aa982): kobject_add_internal: parent: 'hci4', set: 'devices'