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: 'rfkill61' (00000000e6003bb0): kobject_uevent_env CPU: 1 PID: 7889 Comm: syz-executor917 Not tainted 4.20.0-rc7-next-20181224 #188 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 kobject: 'rfkill61' (00000000e6003bb0): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill61' RSP: 0018:ffff8881c11ff5d0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8881c08fed20 RCX: ffffffff87e63117 RDX: 0000000000000001 RSI: ffffffff81fd0b6a RDI: 0000000000000008 RBP: ffff8881c11ff618 R08: fffffbfff1310a9d R09: fffffbfff1310a9c R10: fffffbfff1310a9c R11: ffffffff898854e7 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00000000008a1880(0000) GS:ffff8881dad00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f63768d7000 CR3: 00000001d92bd000 CR4: 00000000001406e0 kobject: 'rfkill61' (00000000e6003bb0): kobject_cleanup, parent (null) 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: 'rfkill61' (00000000e6003bb0): calling ktype release create_dir lib/kobject.c:88 [inline] kobject_add_internal.cold.11+0x116/0x6af lib/kobject.c:247 kobject: 'rfkill61': free name kobject: 'hci4' (00000000adc54b0b): kobject_uevent_env kobject_add_varg lib/kobject.c:382 [inline] kobject_add+0x13f/0x1b0 lib/kobject.c:426 kobject: 'hci4' (00000000adc54b0b): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' device_add+0x445/0x18f0 drivers/base/core.c:1912 kobject: 'bluetooth' (000000003f64e882): kobject_cleanup, parent (null) hci_register_dev+0x3b3/0x9c0 net/bluetooth/hci_core.c:3261 kobject: 'bluetooth' (000000003f64e882): calling ktype release __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+0x2d8/0x470 drivers/bluetooth/hci_vhci.c:299 call_write_iter include/linux/fs.h:1862 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x72c/0xab0 fs/read_write.c:487 kobject: 'bluetooth': free name vfs_write+0x1fc/0x580 fs/read_write.c:549 ksys_write+0x101/0x260 fs/read_write.c:598 kobject: 'hci4' (00000000adc54b0b): 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: 'hci4' (00000000adc54b0b): calling ktype release kobject: 'hci4': free name entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x440ee9 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: 'bluetooth' (000000003a058194): kobject_add_internal: parent: 'virtual', set: '(null)' RSP: 002b:00007ffebd3286b8 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440ee9 RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 R10: 00000000004002c8 R11: 0000000000000213 R12: 000000000000db0e R13: 0000000000401e10 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: kobject: 'hci0' (0000000078c8c688): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci2' (00000000fc5e314f): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci4' (000000007de836d6): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci5' (00000000fb9b2670): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci3' (00000000baad7e4e): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci5' (00000000fb9b2670): kobject_uevent_env kobject: 'hci0' (0000000078c8c688): kobject_uevent_env kobject: 'hci2' (00000000fc5e314f): kobject_uevent_env kobject: 'hci3' (00000000baad7e4e): kobject_uevent_env kobject: 'hci5' (00000000fb9b2670): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' kobject: 'hci4' (000000007de836d6): kobject_uevent_env kobject: 'rfkill62' (0000000054d70dec): kobject_add_internal: parent: 'hci5', set: 'devices' kobject: 'hci4' (000000007de836d6): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' kobject: 'hci2' (00000000fc5e314f): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'hci3' (00000000baad7e4e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'rfkill62' (0000000054d70dec): kobject_uevent_env kobject: 'hci0' (0000000078c8c688): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0' kobject: 'rfkill62' (0000000054d70dec): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill62' ---[ end trace e781510261aa5c46 ]--- kobject: 'rfkill63' (00000000d831f9b4): kobject_add_internal: parent: 'hci2', set: 'devices' RIP: 0010:kernfs_add_one+0x342/0x4d0 fs/kernfs/dir.c:812 kobject: 'rfkill63' (00000000d831f9b4): kobject_uevent_env 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: 'rfkill63' (00000000d831f9b4): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill63' RSP: 0018:ffff8881c11ff5d0 EFLAGS: 00010202 kobject: 'rfkill62' (0000000054d70dec): kobject_uevent_env RAX: dffffc0000000000 RBX: ffff8881c08fed20 RCX: ffffffff87e63117 kobject: 'rfkill63' (00000000d831f9b4): kobject_uevent_env kobject: 'rfkill64' (00000000b15cb0b3): kobject_add_internal: parent: 'hci3', set: 'devices' kobject: 'rfkill62' (0000000054d70dec): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill62' kobject: 'rfkill64' (00000000b15cb0b3): kobject_uevent_env kobject: 'rfkill63' (00000000d831f9b4): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill63' RDX: 0000000000000001 RSI: ffffffff81fd0b6a RDI: 0000000000000008 kobject: 'rfkill64' (00000000b15cb0b3): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill64' RBP: ffff8881c11ff618 R08: fffffbfff1310a9d R09: fffffbfff1310a9c kobject: 'rfkill65' (00000000946282fa): kobject_add_internal: parent: 'hci4', set: 'devices' R10: fffffbfff1310a9c R11: ffffffff898854e7 R12: 0000000000000000 kobject: 'rfkill65' (00000000946282fa): kobject_uevent_env R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 kobject: 'rfkill64' (00000000b15cb0b3): kobject_uevent_env FS: 00000000008a1880(0000) GS:ffff8881dac00000(0000) knlGS:0000000000000000 kobject: 'rfkill65' (00000000946282fa): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill65' kobject: 'rfkill64' (00000000b15cb0b3): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill64' kobject: 'rfkill66' (000000002c0dd4f1): kobject_add_internal: parent: 'hci0', set: 'devices' CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kobject: 'rfkill65' (00000000946282fa): kobject_uevent_env CR2: 00007f63768d7000 CR3: 00000001d92bd000 CR4: 00000000001406f0 kobject: 'rfkill65' (00000000946282fa): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill65' DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kobject: 'rfkill66' (000000002c0dd4f1): kobject_uevent_env DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 kobject: 'rfkill66' (000000002c0dd4f1): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0/rfkill66'