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: 'rfkill133' (000000005a2e83c4): kobject_uevent_env CPU: 0 PID: 8352 Comm: syz-executor616 Not tainted 4.20.0+ #172 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:ffff88808565f5d0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88809895d7e0 RCX: ffffffff87e92f67 RDX: 0000000000000001 RSI: ffffffff81fae6aa RDI: 0000000000000008 RBP: ffff88808565f618 R08: fffffbfff131030d R09: fffffbfff131030c R10: fffffbfff131030c R11: ffffffff89881867 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 000000000174f880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe80070464 CR3: 0000000088449000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kobject: 'hci4' (000000000daf95b0): kobject_add_internal: parent: 'bluetooth', set: 'devices' DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 kobject: 'hci5' (00000000b77a0aaf): kobject_add_internal: parent: 'bluetooth', set: 'devices' 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: 'rfkill130': free name kobject: 'rfkill133' (000000005a2e83c4): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill133' create_dir lib/kobject.c:88 [inline] kobject_add_internal.cold.11+0x116/0x6af lib/kobject.c:247 kobject: 'hci4' (000000000daf95b0): kobject_uevent_env kobject: 'hci2' (00000000bdd06e08): kobject_uevent_env kobject_add_varg lib/kobject.c:382 [inline] kobject_add+0x13f/0x1b0 lib/kobject.c:426 kobject: 'rfkill133' (000000005a2e83c4): kobject_cleanup, parent (null) device_add+0x445/0x18f0 drivers/base/core.c:1900 kobject: 'hci2' (00000000bdd06e08): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' hci_register_dev+0x3b3/0x9c0 net/bluetooth/hci_core.c:3261 kobject: 'hci5' (00000000b77a0aaf): kobject_uevent_env __vhci_create_device+0x2c1/0x580 drivers/bluetooth/hci_vhci.c:139 kobject: 'hci4' (000000000daf95b0): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' 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 kobject: 'hci2' (00000000bdd06e08): kobject_cleanup, parent (null) call_write_iter include/linux/fs.h:1862 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x6b8/0x9f0 fs/read_write.c:487 kobject: 'rfkill133' (000000005a2e83c4): calling ktype release kobject: 'rfkill135' (00000000e2329c66): kobject_add_internal: parent: 'hci4', set: 'devices' vfs_write+0x1fc/0x580 fs/read_write.c:549 ksys_write+0x101/0x260 fs/read_write.c:598 kobject: 'hci5' (00000000b77a0aaf): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' __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' (00000000bdd06e08): calling ktype release kobject: 'rfkill135' (00000000e2329c66): kobject_uevent_env kobject: 'rfkill133': free name kobject: 'hci3' (000000003a8bb19a): kobject_uevent_env 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 RSP: 002b:00007ffe80070458 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 kobject: 'hci2': free name RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440e49 RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 R10: 000000000174f880 R11: 0000000000000213 R12: 00000000000149df R13: 0000000000401d70 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: kobject: 'rfkill135' (00000000e2329c66): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill135' kobject: 'hci3' (000000003a8bb19a): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'hci3' (000000003a8bb19a): kobject_cleanup, parent (null) kobject: 'rfkill134' (000000008bf2a3df): kobject_uevent_env kobject: 'hci3' (000000003a8bb19a): calling ktype release kobject: 'rfkill136' (000000002b4f0d4d): kobject_add_internal: parent: 'hci5', set: 'devices' kobject: 'rfkill135' (00000000e2329c66): kobject_uevent_env kobject: 'hci2' (000000000e04012a): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill134' (000000008bf2a3df): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill134' kobject: 'hci2' (000000000e04012a): kobject_uevent_env kobject: 'hci3': free name kobject: 'hci2' (000000000e04012a): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'rfkill135' (00000000e2329c66): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill135' kobject: 'rfkill136' (000000002b4f0d4d): kobject_uevent_env kobject: 'rfkill136' (000000002b4f0d4d): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill136' ---[ end trace 16caaefba29cf998 ]--- kobject: 'hci3' (0000000014f3b9db): kobject_add_internal: parent: 'bluetooth', set: 'devices' RIP: 0010:kernfs_add_one+0x342/0x4d0 fs/kernfs/dir.c:812 kobject: 'hci3' (0000000014f3b9db): 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: 'hci3' (0000000014f3b9db): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' RSP: 0018:ffff88808565f5d0 EFLAGS: 00010202 kobject: 'rfkill134' (000000008bf2a3df): kobject_cleanup, parent (null) kobject: 'rfkill135' (00000000e2329c66): kobject_cleanup, parent (null) kobject: 'rfkill136' (000000002b4f0d4d): kobject_uevent_env kobject: 'rfkill137' (00000000fa36e5b7): kobject_add_internal: parent: 'hci2', set: 'devices' kobject: 'rfkill134' (000000008bf2a3df): calling ktype release kobject: 'rfkill137' (00000000fa36e5b7): kobject_uevent_env kobject: 'rfkill136' (000000002b4f0d4d): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill136' kobject: 'rfkill135' (00000000e2329c66): calling ktype release kobject: 'rfkill134': free name RAX: dffffc0000000000 RBX: ffff88809895d7e0 RCX: ffffffff87e92f67 kobject: 'hci1' (000000008b14e306): kobject_uevent_env kobject: 'rfkill135': free name kobject: 'hci1' (000000008b14e306): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1' kobject: 'hci4' (000000000daf95b0): kobject_uevent_env kobject: 'hci1' (000000008b14e306): kobject_cleanup, parent (null) kobject: 'hci4' (000000000daf95b0): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' kobject: 'rfkill137' (00000000fa36e5b7): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill137' kobject: 'hci4' (000000000daf95b0): kobject_cleanup, parent (null) kobject: 'hci1' (000000008b14e306): calling ktype release kobject: 'hci4' (000000000daf95b0): calling ktype release kobject: 'rfkill136' (000000002b4f0d4d): kobject_cleanup, parent (null) kobject: 'hci4': free name kobject: 'rfkill138' (00000000a6d5272d): kobject_add_internal: parent: 'hci3', set: 'devices' RDX: 0000000000000001 RSI: ffffffff81fae6aa RDI: 0000000000000008 kobject: 'rfkill137' (00000000fa36e5b7): kobject_uevent_env kobject: 'hci1': free name kobject: 'rfkill136' (000000002b4f0d4d): calling ktype release RBP: ffff88808565f618 R08: fffffbfff131030d R09: fffffbfff131030c kobject: 'rfkill138' (00000000a6d5272d): kobject_uevent_env kobject: 'hci1' (000000001259984e): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill137' (00000000fa36e5b7): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill137' R10: fffffbfff131030c R11: ffffffff89881867 R12: 0000000000000000 kobject: 'rfkill136': free name kobject: 'hci1' (000000001259984e): kobject_uevent_env kobject: 'rfkill138' (00000000a6d5272d): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill138' R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 kobject: 'hci4' (00000000e2040c66): kobject_add_internal: parent: 'bluetooth', set: 'devices' FS: 000000000174f880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 kobject: 'rfkill137' (00000000fa36e5b7): kobject_cleanup, parent (null) kobject: 'hci1' (000000001259984e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1' kobject: 'rfkill138' (00000000a6d5272d): kobject_uevent_env kobject: 'rfkill139' (00000000cd2ed49a): kobject_add_internal: parent: 'hci1', set: 'devices' kobject: 'rfkill137' (00000000fa36e5b7): calling ktype release CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kobject: 'hci5' (00000000b77a0aaf): kobject_uevent_env kobject: 'rfkill139' (00000000cd2ed49a): kobject_uevent_env kobject: 'rfkill137': free name CR2: 00007ffe80070464 CR3: 0000000088449000 CR4: 00000000001406f0 kobject: 'rfkill138' (00000000a6d5272d): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill138' DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kobject: 'hci5' (00000000b77a0aaf): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' kobject: 'rfkill139' (00000000cd2ed49a): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill139' kobject: 'hci4' (00000000e2040c66): kobject_uevent_env DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 kobject: 'hci5' (00000000b77a0aaf): kobject_cleanup, parent (null) kobject: 'rfkill139' (00000000cd2ed49a): kobject_uevent_env kobject: 'rfkill138' (00000000a6d5272d): kobject_cleanup, parent (null)