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: 'hci3' (000000002f873477): kobject_add_internal: parent: 'bluetooth', set: 'devices' CPU: 1 PID: 5976 Comm: syz-executor174 Not tainted 4.20.0-rc1-next-20181109+ #109 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 kobject: 'hci5' (00000000d33114d4): kobject_add_internal: parent: 'bluetooth', set: 'devices' 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:ffff8801b94ff5d0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8801d78771c0 RCX: ffffffff87cd6ac7 kobject: 'rfkill310' (000000006dc6d6af): kobject_uevent_env RDX: 0000000000000001 RSI: ffffffff81fa80ca RDI: 0000000000000008 RBP: ffff8801b94ff618 R08: fffffbfff12d0189 R09: fffffbfff12d0188 R10: fffffbfff12d0188 R11: ffffffff89680c47 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000816880(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9eebba2000 CR3: 00000001ce353000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kobject: 'hci5' (00000000d33114d4): kobject_uevent_env kernfs_create_dir_ns+0xf6/0x160 fs/kernfs/dir.c:1031 sysfs_create_dir_ns+0x19b/0x340 fs/sysfs/dir.c:58 kobject: 'hci3' (000000002f873477): kobject_uevent_env create_dir lib/kobject.c:88 [inline] kobject_add_internal.cold.11+0x116/0x6af lib/kobject.c:247 kobject: 'rfkill310' (000000006dc6d6af): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill310' kobject: 'hci3' (000000002f873477): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'hci5' (00000000d33114d4): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' kobject_add_varg lib/kobject.c:382 [inline] kobject_add+0x13f/0x1b0 lib/kobject.c:426 kobject: 'rfkill310' (000000006dc6d6af): kobject_uevent_env device_add+0x445/0x18e0 drivers/base/core.c:1879 kobject: 'rfkill311' (00000000f659e1b6): kobject_add_internal: parent: 'hci3', set: 'devices' kobject: 'rfkill310' (000000006dc6d6af): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill310' kobject: 'rfkill311' (00000000f659e1b6): kobject_uevent_env hci_register_dev+0x3b3/0x9c0 net/bluetooth/hci_core.c:3261 kobject: 'rfkill311' (00000000f659e1b6): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill311' __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:1867 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x6b8/0x9f0 fs/read_write.c:487 kobject: 'rfkill312' (00000000aa57f998): kobject_add_internal: parent: 'hci2', set: 'devices' kobject: 'rfkill312' (00000000aa57f998): kobject_uevent_env vfs_write+0x1fc/0x560 fs/read_write.c:549 ksys_write+0x101/0x260 fs/read_write.c:598 kobject: 'rfkill312' (00000000aa57f998): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill312' __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: 'rfkill312' (00000000aa57f998): kobject_uevent_env do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 kobject: 'rfkill312' (00000000aa57f998): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill312' kobject: 'rfkill312' (00000000aa57f998): kobject_cleanup, parent (null) entry_SYSCALL_64_after_hwframe+0x49/0xbe kobject: 'rfkill312' (00000000aa57f998): calling ktype release 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:00007ffd99cd2688 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 kobject: 'rfkill309' (00000000a6601c6f): kobject_cleanup, parent (null) RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440e49 RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 R10: 0000000000816880 R11: 0000000000000213 R12: 000000000000fd8d kobject: 'rfkill313' (000000007797bdeb): kobject_add_internal: parent: 'hci5', set: 'devices' R13: 0000000000401d70 R14: 0000000000000000 R15: 0000000000000000 kobject: 'rfkill313' (000000007797bdeb): kobject_uevent_env Modules linked in: kobject: 'rfkill312': free name kobject: 'rfkill309' (00000000a6601c6f): calling ktype release kobject: 'hci2' (00000000930cebc2): kobject_uevent_env kobject: 'rfkill309': free name kobject: 'hci0' (00000000c2f27062): kobject_uevent_env kobject: 'hci2' (00000000930cebc2): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'rfkill313' (000000007797bdeb): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill313' kobject: 'hci2' (00000000930cebc2): kobject_cleanup, parent (null) kobject: 'rfkill310' (000000006dc6d6af): kobject_cleanup, parent (null) kobject: 'hci2' (00000000930cebc2): calling ktype release kobject: 'rfkill311' (00000000f659e1b6): kobject_uevent_env kobject: 'hci2': free name kobject: 'rfkill313' (000000007797bdeb): kobject_uevent_env ---[ end trace 608881dc0112aa6a ]--- kobject: 'hci0' (00000000c2f27062): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0' RIP: 0010:kernfs_add_one+0x342/0x4d0 fs/kernfs/dir.c:812 kobject: 'rfkill310' (000000006dc6d6af): calling ktype release kobject: 'hci2' (0000000055cd7ef2): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill313' (000000007797bdeb): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill313' 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: 'rfkill311' (00000000f659e1b6): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill311' kobject: 'hci2' (0000000055cd7ef2): kobject_uevent_env kobject: 'hci0' (00000000c2f27062): kobject_cleanup, parent (null) RSP: 0018:ffff8801b94ff5d0 EFLAGS: 00010202 kobject: 'rfkill313' (000000007797bdeb): kobject_cleanup, parent (null) kobject: 'hci2' (0000000055cd7ef2): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'rfkill310': free name kobject: 'rfkill311' (00000000f659e1b6): kobject_cleanup, parent (null) kobject: 'rfkill313' (000000007797bdeb): calling ktype release kobject: 'rfkill314' (000000005130491c): kobject_add_internal: parent: 'hci2', set: 'devices' kobject: 'hci1' (000000002e773594): kobject_uevent_env RAX: dffffc0000000000 RBX: ffff8801d78771c0 RCX: ffffffff87cd6ac7 kobject: 'hci0' (00000000c2f27062): calling ktype release kobject: 'rfkill314' (000000005130491c): kobject_uevent_env kobject: 'rfkill313': free name kobject: 'rfkill311' (00000000f659e1b6): calling ktype release kobject: 'hci1' (000000002e773594): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1' kobject: 'rfkill311': free name RDX: 0000000000000001 RSI: ffffffff81fa80ca RDI: 0000000000000008 kobject: 'rfkill314' (000000005130491c): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill314' kobject: 'hci1' (000000002e773594): kobject_cleanup, parent (null) kobject: 'hci3' (000000002f873477): kobject_uevent_env kobject: 'hci5' (00000000d33114d4): kobject_uevent_env kobject: 'hci3' (000000002f873477): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'hci0': free name kobject: 'rfkill314' (000000005130491c): kobject_uevent_env kobject: 'hci1' (000000002e773594): calling ktype release kobject: 'rfkill314' (000000005130491c): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill314' RBP: ffff8801b94ff618 R08: fffffbfff12d0189 R09: fffffbfff12d0188 kobject: 'hci3' (000000002f873477): kobject_cleanup, parent (null) kobject: 'hci5' (00000000d33114d4): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' kobject: 'rfkill314' (000000005130491c): kobject_cleanup, parent (null) kobject: 'hci1': free name kobject: 'hci0' (000000005a3afe7a): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci3' (000000002f873477): calling ktype release kobject: 'rfkill314' (000000005130491c): calling ktype release kobject: 'hci1' (00000000b003a7e4): kobject_add_internal: parent: 'bluetooth', set: 'devices' R10: fffffbfff12d0188 R11: ffffffff89680c47 R12: 0000000000000000 kobject: 'hci3': free name kobject: 'rfkill314': free name kobject: 'hci5' (00000000d33114d4): kobject_cleanup, parent (null) R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 kobject: 'hci0' (000000005a3afe7a): kobject_uevent_env kobject: 'hci2' (0000000055cd7ef2): kobject_uevent_env kobject: 'hci1' (00000000b003a7e4): kobject_uevent_env FS: 0000000000816880(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 kobject: 'hci3' (00000000447de8e7): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci2' (0000000055cd7ef2): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'hci5' (00000000d33114d4): calling ktype release CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kobject: 'hci0' (000000005a3afe7a): fill_kobj_path: path = '/devices/virtual/bluetooth/hci0' kobject: 'hci2' (0000000055cd7ef2): kobject_cleanup, parent (null) kobject: 'hci5': free name CR2: 00007ffd99cd2694 CR3: 00000001ce353000 CR4: 00000000001406e0 kobject: 'hci3' (00000000447de8e7): kobject_uevent_env kobject: 'hci2' (0000000055cd7ef2): calling ktype release kobject: 'hci1' (00000000b003a7e4): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1' DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kobject: 'hci3' (00000000447de8e7): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'hci2': free name kobject: 'rfkill315' (000000007851dc3c): kobject_add_internal: parent: 'hci0', set: 'devices' DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 kobject: 'hci2' (000000009dc2d38a): kobject_add_internal: parent: 'bluetooth', set: 'devices'