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: 'rfkill55' (000000003744c898): calling ktype release CPU: 0 PID: 6030 Comm: syz-executor882 Not tainted 4.20.0-rc1+ #330 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:ffff8801c23675d0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8801b3d542a0 RCX: ffffffff87ceaae7 RDX: 0000000000000001 RSI: ffffffff81f8fa7a RDI: 0000000000000008 RBP: ffff8801c2367618 R08: fffffbfff12cfa19 R09: fffffbfff12cfa18 R10: fffffbfff12cfa18 R11: ffffffff8967d0c7 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00000000018f9880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbd77bf4000 CR3: 00000001c2255000 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: 'rfkill56' (000000004e29f2f0): kobject_uevent_env create_dir lib/kobject.c:88 [inline] kobject_add_internal.cold.11+0x116/0x6af lib/kobject.c:247 kobject: 'hci1' (00000000968e2c16): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill55': free name kobject_add_varg lib/kobject.c:382 [inline] kobject_add+0x13f/0x1b0 lib/kobject.c:426 kobject: 'rfkill56' (000000004e29f2f0): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill56' device_add+0x445/0x18e0 drivers/base/core.c:1879 kobject: 'hci2' (000000004eab9119): kobject_uevent_env kobject: 'hci1' (00000000968e2c16): kobject_uevent_env hci_register_dev+0x3b3/0x9c0 net/bluetooth/hci_core.c:3261 kobject: 'hci2' (000000004eab9119): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' __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: 'rfkill56' (000000004e29f2f0): kobject_cleanup, parent (null) vfs_write+0x1fc/0x560 fs/read_write.c:549 ksys_write+0x101/0x260 fs/read_write.c:598 kobject: 'hci2' (000000004eab9119): kobject_cleanup, parent (null) __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: 'hci2' (000000004eab9119): calling ktype release kobject: 'rfkill56' (000000004e29f2f0): calling ktype release entry_SYSCALL_64_after_hwframe+0x49/0xbe 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 kobject: 'hci1' (00000000968e2c16): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1' RSP: 002b:00007ffc6f22af38 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440e49 RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 R10: 00000000018f9880 R11: 0000000000000213 R12: 0000000000066c1e R13: 0000000000401d70 R14: 0000000000000000 R15: 0000000000000000 kobject: 'hci2': free name Modules linked in: kobject: 'hci2' (000000005b29b68e): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill56': free name kobject: 'hci4' (000000006542b3fa): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci3' (0000000053b54f22): kobject_uevent_env kobject: 'hci4' (000000006542b3fa): kobject_uevent_env kobject: 'rfkill57' (0000000020e39c32): kobject_add_internal: parent: 'hci1', set: 'devices' kobject: 'hci2' (000000005b29b68e): kobject_uevent_env kobject: 'hci3' (0000000053b54f22): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'hci2' (000000005b29b68e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'hci5' (00000000b93c7522): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci4' (000000006542b3fa): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' kobject: 'hci3' (0000000053b54f22): kobject_cleanup, parent (null) kobject: 'rfkill57' (0000000020e39c32): kobject_uevent_env kobject: 'hci3' (0000000053b54f22): calling ktype release kobject: 'hci5' (00000000b93c7522): kobject_uevent_env kobject: 'hci3': free name kobject: 'rfkill57' (0000000020e39c32): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill57' ---[ end trace 18625e67b6c1d1cf ]--- kobject: 'rfkill58' (00000000d835c1c8): kobject_add_internal: parent: 'hci2', set: 'devices' kobject: 'hci3' (0000000098e4cfd7): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill58' (00000000d835c1c8): kobject_uevent_env kobject: 'hci3' (0000000098e4cfd7): kobject_uevent_env kobject: 'rfkill57' (0000000020e39c32): kobject_uevent_env RIP: 0010:kernfs_add_one+0x342/0x4d0 fs/kernfs/dir.c:812 kobject: 'rfkill58' (00000000d835c1c8): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill58' kobject: 'hci3' (0000000098e4cfd7): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'rfkill57' (0000000020e39c32): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill57' 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: 'hci5' (00000000b93c7522): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' RSP: 0018:ffff8801c23675d0 EFLAGS: 00010202 kobject: 'rfkill59' (00000000b2234468): kobject_add_internal: parent: 'hci4', set: 'devices' RAX: dffffc0000000000 RBX: ffff8801b3d542a0 RCX: ffffffff87ceaae7 kobject: 'rfkill58' (00000000d835c1c8): kobject_uevent_env RDX: 0000000000000001 RSI: ffffffff81f8fa7a RDI: 0000000000000008 kobject: 'rfkill59' (00000000b2234468): kobject_uevent_env RBP: ffff8801c2367618 R08: fffffbfff12cfa19 R09: fffffbfff12cfa18 kobject: 'rfkill59' (00000000b2234468): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill59' R10: fffffbfff12cfa18 R11: ffffffff8967d0c7 R12: 0000000000000000 kobject: 'rfkill58' (00000000d835c1c8): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill58' R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 kobject: 'rfkill59' (00000000b2234468): kobject_uevent_env kobject: 'rfkill60' (000000009bb137b0): kobject_add_internal: parent: 'hci3', set: 'devices' kobject: 'rfkill59' (00000000b2234468): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill59' FS: 00000000018f9880(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 kobject: 'rfkill60' (000000009bb137b0): kobject_uevent_env CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kobject: 'rfkill60' (000000009bb137b0): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill60' CR2: 00000000006cb090 CR3: 00000001c2255000 CR4: 00000000001406e0 kobject: 'rfkill57' (0000000020e39c32): kobject_cleanup, parent (null) DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kobject: 'rfkill61' (000000002604a0b7): kobject_add_internal: parent: 'hci5', set: 'devices' DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 kobject: 'rfkill57' (0000000020e39c32): calling ktype release