kasan: CONFIG_KASAN_INLINE enabled kobject: 'bluetooth' (00000000b87da6f6): kobject_add_internal: parent: 'virtual', set: '(null)' kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 9632 Comm: syz-executor4 Not tainted 4.20.0-rc2+ #114 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 kobject: 'hci0' (0000000014e5e54c): kobject_add_internal: parent: 'bluetooth', set: 'devices' 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:ffff88818191f5d0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8881b9d28b60 RCX: ffffc9000de3d000 RDX: 0000000000000001 RSI: ffffffff81f8f80a RDI: 0000000000000008 kobject: 'hci0' (0000000014e5e54c): kobject_uevent_env RBP: ffff88818191f618 R08: fffffbfff12cfa19 R09: fffffbfff12cfa18 R10: fffffbfff12cfa18 R11: ffffffff8967d0c7 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f1f31d79700(0000) GS:ffff8881dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000cf0e80 CR3: 00000001c6155000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kobject: 'hci2' (0000000041c15d89): kobject_add_internal: parent: 'bluetooth', set: 'devices' 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: 'hci0' (0000000014e5e54c): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0' create_dir lib/kobject.c:88 [inline] kobject_add_internal.cold.11+0x116/0x6af lib/kobject.c:247 kobject: 'hci2' (0000000041c15d89): kobject_uevent_env kobject: 'rfkill263' (00000000a0e28d4b): kobject_add_internal: parent: 'hci0', set: 'devices' kobject_add_varg lib/kobject.c:382 [inline] kobject_add+0x13f/0x1b0 lib/kobject.c:426 kobject: 'hci2' (0000000041c15d89): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' device_add+0x445/0x18e0 drivers/base/core.c:1879 kobject: 'rfkill263' (00000000a0e28d4b): kobject_uevent_env kobject: 'rfkill263' (00000000a0e28d4b): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0/rfkill263' hci_register_dev+0x3b3/0x9c0 net/bluetooth/hci_core.c:3261 kobject: 'rfkill264' (0000000033b8df29): kobject_add_internal: parent: 'hci2', set: 'devices' __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: 'rfkill264' (0000000033b8df29): kobject_uevent_env kobject: 'rfkill263' (00000000a0e28d4b): kobject_uevent_env vfs_write+0x1fc/0x560 fs/read_write.c:549 kobject: 'rfkill263' (00000000a0e28d4b): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0/rfkill263' ksys_write+0x101/0x260 fs/read_write.c:598 kobject: 'rfkill264' (0000000033b8df29): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill264' __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: 'rfkill263' (00000000a0e28d4b): kobject_cleanup, parent (null) kobject: 'rfkill264' (0000000033b8df29): kobject_uevent_env entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457569 kobject: 'rfkill264' (0000000033b8df29): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill264' Code: fd b3 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 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f1f31d78c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569 RDX: 0000000000000002 RSI: 00000000200002c0 RDI: 0000000000000003 kobject: 'rfkill263' (00000000a0e28d4b): calling ktype release RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1f31d796d4 R13: 00000000004c553b R14: 00000000004d8fe8 R15: 00000000ffffffff Modules linked in: ---[ end trace bc88c55ad32891db ]--- kobject: 'loop1' (000000000add83dd): kobject_uevent_env RIP: 0010:kernfs_add_one+0x342/0x4d0 fs/kernfs/dir.c:812 kobject: 'loop1' (000000000add83dd): fill_kobj_path: path = '/devices/virtual/block/loop1' 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: 'rfkill264' (0000000033b8df29): kobject_cleanup, parent (null) kobject: 'hci3' (0000000080d0b18b): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'loop0' (000000004ebc4e42): kobject_uevent_env kobject: 'hci4' (0000000002eceabe): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill264' (0000000033b8df29): calling ktype release kobject: 'hci4' (0000000002eceabe): kobject_uevent_env kobject: 'loop0' (000000004ebc4e42): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'hci3' (0000000080d0b18b): kobject_uevent_env kobject: 'rfkill264': free name RSP: 0018:ffff88818191f5d0 EFLAGS: 00010202 kobject: 'hci2' (0000000041c15d89): kobject_uevent_env kobject: 'rfkill263': free name kobject: 'hci2' (0000000041c15d89): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'hci3' (0000000080d0b18b): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'hci4' (0000000002eceabe): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' RAX: dffffc0000000000 RBX: ffff8881b9d28b60 RCX: ffffc9000de3d000 kobject: 'loop5' (0000000051ebd388): kobject_uevent_env RDX: 0000000000000001 RSI: ffffffff81f8f80a RDI: 0000000000000008 kobject: 'hci2' (0000000041c15d89): kobject_cleanup, parent (null) kobject: 'rfkill265' (0000000073c55b31): kobject_add_internal: parent: 'hci3', set: 'devices' kobject: 'loop5' (0000000051ebd388): fill_kobj_path: path = '/devices/virtual/block/loop5' RBP: ffff88818191f618 R08: fffffbfff12cfa19 R09: fffffbfff12cfa18 kobject: 'hci2' (0000000041c15d89): calling ktype release kobject: 'rfkill265' (0000000073c55b31): kobject_uevent_env kobject: 'hci2': free name R10: fffffbfff12cfa18 R11: ffffffff8967d0c7 R12: 0000000000000000 kobject: 'hci0' (0000000014e5e54c): kobject_uevent_env kobject: 'rfkill265' (0000000073c55b31): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill265' kobject: 'hci0' (0000000014e5e54c): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0' kobject: 'rfkill265' (0000000073c55b31): kobject_uevent_env kobject: 'loop3' (00000000fff22fd6): kobject_uevent_env kobject: 'rfkill266' (00000000e5080bcd): kobject_add_internal: parent: 'hci4', set: 'devices' kobject: 'loop3' (00000000fff22fd6): fill_kobj_path: path = '/devices/virtual/block/loop3' R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 kobject: 'hci0' (0000000014e5e54c): kobject_cleanup, parent (null) kobject: 'rfkill266' (00000000e5080bcd): kobject_uevent_env kobject: 'hci0' (0000000014e5e54c): calling ktype release kobject: 'rfkill265' (0000000073c55b31): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill265' kobject: 'hci0': free name FS: 00007f1f31d79700(0000) GS:ffff8881dae00000(0000) knlGS:0000000000000000 kobject: 'loop3' (00000000fff22fd6): kobject_uevent_env kobject: 'rfkill266' (00000000e5080bcd): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill266' kobject: 'loop3' (00000000fff22fd6): fill_kobj_path: path = '/devices/virtual/block/loop3' CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kobject: 'loop3' (00000000fff22fd6): kobject_uevent_env CR2: 0000000000625208 CR3: 00000001c6155000 CR4: 00000000001406f0 kobject: 'loop3' (00000000fff22fd6): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'rfkill266' (00000000e5080bcd): kobject_uevent_env kobject: 'loop2' (00000000b24420c4): kobject_uevent_env kobject: 'rfkill266' (00000000e5080bcd): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill266' kobject: 'loop2' (00000000b24420c4): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'rfkill265' (0000000073c55b31): kobject_cleanup, parent (null) kobject: 'hci0' (000000007078208e): kobject_add_internal: parent: 'bluetooth', set: 'devices' DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kobject: 'hci0' (000000007078208e): kobject_uevent_env kobject: 'rfkill266' (00000000e5080bcd): kobject_cleanup, parent (null) kobject: 'hci0' (000000007078208e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0' kobject: 'rfkill266' (00000000e5080bcd): calling ktype release kobject: 'rfkill267' (000000000d60adaa): kobject_add_internal: parent: 'hci0', set: 'devices' kobject: 'rfkill265' (0000000073c55b31): calling ktype release kobject: 'rfkill267' (000000000d60adaa): kobject_uevent_env kobject: 'hci2' (00000000812a2a72): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'loop3' (00000000fff22fd6): kobject_uevent_env kobject: 'rfkill265': free name kobject: 'rfkill267' (000000000d60adaa): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0/rfkill267' kobject: 'rfkill266': free name kobject: 'loop3' (00000000fff22fd6): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'hci4' (0000000002eceabe): kobject_uevent_env kobject: 'rfkill267' (000000000d60adaa): kobject_uevent_env kobject: 'hci2' (00000000812a2a72): kobject_uevent_env kobject: 'hci5' (0000000035cbc706): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci3' (0000000080d0b18b): kobject_uevent_env kobject: 'rfkill267' (000000000d60adaa): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0/rfkill267' kobject: 'hci4' (0000000002eceabe): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' kobject: 'rfkill267' (000000000d60adaa): kobject_cleanup, parent (null) kobject: 'hci3' (0000000080d0b18b): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'hci5' (0000000035cbc706): kobject_uevent_env kobject: 'hci4' (0000000002eceabe): kobject_cleanup, parent (null) kobject: 'rfkill267' (000000000d60adaa): calling ktype release kobject: 'hci3' (0000000080d0b18b): kobject_cleanup, parent (null) kobject: 'rfkill267': free name DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 kobject: 'hci5' (0000000035cbc706): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' kobject: 'hci4' (0000000002eceabe): calling ktype release kobject: 'hci0' (000000007078208e): kobject_uevent_env kobject: 'hci3' (0000000080d0b18b): calling ktype release kobject: 'rfkill268' (000000008e6eb002): kobject_add_internal: parent: 'hci5', set: 'devices' kobject: 'hci4': free name kobject: 'hci0' (000000007078208e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0'