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 CPU: 0 PID: 8635 Comm: syz-executor005 Not tainted 5.0.0-rc1+ #22 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 kobject: 'rfkill614' (00000000df495bf4): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill614' RIP: 0010:kernfs_add_one+0x343/0x4d0 fs/kernfs/dir.c:812 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 52 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 5b 70 48 8d 7b 08 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 1f 01 00 00 8b 5b 08 31 ff 83 RSP: 0018:ffff8880a5dcf670 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87f31065 RDX: 0000000000000001 RSI: ffffffff81fba28b RDI: 0000000000000008 RBP: ffff8880a5dcf6b0 R08: 1ffffffff135106c R09: fffffbfff135106d kobject: 'rfkill614' (00000000df495bf4): kobject_uevent_env R10: fffffbfff135106c R11: ffffffff89a88367 R12: ffff888092413540 R13: ffff888092413540 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000001b26880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000006cb090 CR3: 0000000098f96000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 kobject: 'hci1' (000000006bce8501): kobject_add_internal: parent: 'bluetooth', set: 'devices' Call Trace: kernfs_create_dir_ns+0xff/0x160 fs/kernfs/dir.c:1031 sysfs_create_dir_ns+0x192/0x330 fs/sysfs/dir.c:58 kobject: 'rfkill614' (00000000df495bf4): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill614' create_dir lib/kobject.c:88 [inline] kobject_add_internal lib/kobject.c:247 [inline] kobject_add_internal.cold+0x129/0x6d8 lib/kobject.c:217 kobject: 'hci1' (000000006bce8501): kobject_uevent_env kobject: 'rfkill614' (00000000df495bf4): kobject_cleanup, parent (null) kobject_add_varg lib/kobject.c:382 [inline] kobject_add+0x150/0x1c0 lib/kobject.c:426 kobject: 'hci1' (000000006bce8501): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1' device_add+0x3d9/0x1800 drivers/base/core.c:1912 kobject: 'rfkill615' (0000000003b3d900): kobject_add_internal: parent: 'hci1', set: 'devices' hci_register_dev+0x3b9/0x9d0 net/bluetooth/hci_core.c:3261 kobject: 'rfkill614' (00000000df495bf4): calling ktype release kobject: 'rfkill615' (0000000003b3d900): kobject_uevent_env __vhci_create_device+0x2d0/0x5a0 drivers/bluetooth/hci_vhci.c:139 kobject: 'rfkill614': free name vhci_create_device drivers/bluetooth/hci_vhci.c:163 [inline] vhci_get_user drivers/bluetooth/hci_vhci.c:219 [inline] vhci_write+0x2d0/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+0x764/0xb40 fs/read_write.c:487 kobject: 'rfkill615' (0000000003b3d900): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill615' kobject: 'hci3' (000000002073de9e): kobject_uevent_env vfs_write+0x20c/0x580 fs/read_write.c:549 ksys_write+0x105/0x260 fs/read_write.c:598 kobject: 'hci3' (000000002073de9e): 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+0x1a3/0x800 arch/x86/entry/common.c:290 kobject: 'hci3' (000000002073de9e): kobject_cleanup, parent (null) entry_SYSCALL_64_after_hwframe+0x49/0xbe kobject: 'rfkill615' (0000000003b3d900): 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:00007ffc16f75908 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 kobject: 'hci3' (000000002073de9e): calling ktype release RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440e49 RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 R10: 0000000001b26880 R11: 0000000000000213 R12: 000000000000d99e R13: 0000000000401d70 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: kobject: 'rfkill616' (000000007a8926dc): kobject_add_internal: parent: 'hci5', set: 'devices' kobject: 'hci3': free name kobject: 'rfkill616' (000000007a8926dc): kobject_uevent_env kobject: 'rfkill615' (0000000003b3d900): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill615' kobject: 'rfkill616' (000000007a8926dc): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill616' kobject: 'hci3' (000000000c6bcb1f): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill613' (00000000bbeb59a0): kobject_cleanup, parent (null) kobject: 'hci3' (000000000c6bcb1f): kobject_uevent_env kobject: 'rfkill617' (00000000c232b19e): kobject_add_internal: parent: 'hci4', set: 'devices' kobject: 'hci3' (000000000c6bcb1f): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'rfkill616' (000000007a8926dc): kobject_uevent_env ---[ end trace 382fe2f41f5389db ]--- kobject: 'rfkill617' (00000000c232b19e): kobject_uevent_env RIP: 0010:kernfs_add_one+0x343/0x4d0 fs/kernfs/dir.c:812 kobject: 'rfkill616' (000000007a8926dc): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill616' Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 52 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 5b 70 48 8d 7b 08 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 1f 01 00 00 8b 5b 08 31 ff 83 kobject: 'rfkill617' (00000000c232b19e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill617' RSP: 0018:ffff8880a5dcf670 EFLAGS: 00010202 kobject: 'rfkill613' (00000000bbeb59a0): calling ktype release RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87f31065 kobject: 'rfkill615' (0000000003b3d900): kobject_cleanup, parent (null) RDX: 0000000000000001 RSI: ffffffff81fba28b RDI: 0000000000000008 kobject: 'rfkill617' (00000000c232b19e): kobject_uevent_env kobject: 'rfkill618' (00000000ecea83cc): kobject_add_internal: parent: 'hci3', set: 'devices' kobject: 'rfkill613': free name kobject: 'rfkill618' (00000000ecea83cc): kobject_uevent_env kobject: 'rfkill615' (0000000003b3d900): calling ktype release RBP: ffff8880a5dcf6b0 R08: 1ffffffff135106c R09: fffffbfff135106d kobject: 'hci2' (00000000431aaef8): kobject_uevent_env kobject: 'rfkill618' (00000000ecea83cc): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill618' kobject: 'rfkill615': free name kobject: 'rfkill617' (00000000c232b19e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill617' R10: fffffbfff135106c R11: ffffffff89a88367 R12: ffff888092413540 kobject: 'rfkill618' (00000000ecea83cc): kobject_uevent_env kobject: 'rfkill616' (000000007a8926dc): kobject_cleanup, parent (null) kobject: 'rfkill617' (00000000c232b19e): kobject_cleanup, parent (null) kobject: 'hci1' (000000006bce8501): kobject_uevent_env kobject: 'rfkill617' (00000000c232b19e): calling ktype release kobject: 'rfkill616' (000000007a8926dc): calling ktype release kobject: 'rfkill618' (00000000ecea83cc): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill618' R13: ffff888092413540 R14: 0000000000000000 R15: 0000000000000000 kobject: 'hci2' (00000000431aaef8): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'hci1' (000000006bce8501): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1' kobject: 'rfkill618' (00000000ecea83cc): kobject_cleanup, parent (null) FS: 0000000001b26880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 kobject: 'hci2' (00000000431aaef8): kobject_cleanup, parent (null) kobject: 'rfkill617': free name kobject: 'rfkill618' (00000000ecea83cc): calling ktype release CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kobject: 'rfkill616': free name kobject: 'hci4' (000000000339b2a5): kobject_uevent_env kobject: 'hci2' (00000000431aaef8): calling ktype release kobject: 'rfkill618': free name kobject: 'hci5' (00000000ad6913a6): kobject_uevent_env kobject: 'hci4' (000000000339b2a5): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' kobject: 'hci1' (000000006bce8501): kobject_cleanup, parent (null) kobject: 'hci3' (000000000c6bcb1f): kobject_uevent_env CR2: 00000000006cb090 CR3: 0000000098f96000 CR4: 00000000001406f0 kobject: 'hci4' (000000000339b2a5): kobject_cleanup, parent (null) kobject: 'hci2': free name kobject: 'hci5' (00000000ad6913a6): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kobject: 'hci3' (000000000c6bcb1f): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'hci1' (000000006bce8501): calling ktype release kobject: 'hci5' (00000000ad6913a6): kobject_cleanup, parent (null) DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 kobject: 'hci4' (000000000339b2a5): calling ktype release kobject: 'hci1' (00000000b822c927): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci3' (000000000c6bcb1f): kobject_cleanup, parent (null) kobject: 'hci1': free name kobject: 'hci4': free name