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: 9001 Comm: syz-executor3 Not tainted 5.0.0-rc2+ #27 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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:ffff888057bcf0c0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000be37000 RDX: 0000000000000001 RSI: ffffffff81fba28b RDI: 0000000000000008 RBP: ffff888057bcf100 R08: 1ffffffff135106c R09: fffffbfff135106d R10: fffffbfff135106c R11: ffffffff89a88367 R12: ffff88809e304ee0 R13: ffff88809e304ee0 R14: 0000000000000000 R15: 0000000000000000 FS: 00007fe6fa623700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000009a3408 CR3: 00000000a138f000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kernfs_create_dir_ns+0xff/0x160 fs/kernfs/dir.c:1031 sysfs_create_dir_ns+0x192/0x340 fs/sysfs/dir.c:59 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_add_varg lib/kobject.c:382 [inline] kobject_add+0x150/0x1c0 lib/kobject.c:426 device_add+0x3d9/0x1800 drivers/base/core.c:1912 hci_register_dev+0x3b9/0x9d0 net/bluetooth/hci_core.c:3261 __vhci_create_device+0x2d0/0x5a0 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+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 __kernel_write+0x110/0x3b0 fs/read_write.c:506 write_pipe_buf+0x180/0x240 fs/splice.c:797 splice_from_pipe_feed fs/splice.c:503 [inline] __splice_from_pipe+0x39a/0x7e0 fs/splice.c:627 splice_from_pipe+0x1ea/0x310 fs/splice.c:662 default_file_splice_write+0x3c/0x90 fs/splice.c:809 do_splice_from fs/splice.c:851 [inline] direct_splice_actor+0x126/0x1a0 fs/splice.c:1023 splice_direct_to_actor+0x3be/0x9d0 fs/splice.c:978 do_splice_direct+0x2c7/0x420 fs/splice.c:1066 do_sendfile+0x61a/0xe60 fs/read_write.c:1436 __do_sys_sendfile64 fs/read_write.c:1491 [inline] __se_sys_sendfile64 fs/read_write.c:1483 [inline] __x64_sys_sendfile64+0x15a/0x240 fs/read_write.c:1483 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457ec9 Code: 6d b7 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 3b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fe6fa622c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000457ec9 RDX: 0000000020d83ff8 RSI: 000000000000000a RDI: 0000000000000007 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 00007fe6fa6236d4 R13: 00000000004c4d93 R14: 00000000004d8828 R15: 00000000ffffffff Modules linked in: kobject: 'loop4' (00000000a32f2e96): kobject_uevent_env ---[ end trace c6ee941fde0fc848 ]--- RIP: 0010:kernfs_add_one+0x343/0x4d0 fs/kernfs/dir.c:812 kobject: 'brif' (00000000159d9d67): kobject_cleanup, parent 00000000b31ddccf 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:ffff888057bcf0c0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000be37000 RDX: 0000000000000001 RSI: ffffffff81fba28b RDI: 0000000000000008 kobject: 'loop4' (00000000a32f2e96): fill_kobj_path: path = '/devices/virtual/block/loop4' RBP: ffff888057bcf100 R08: 1ffffffff135106c R09: fffffbfff135106d kobject: 'brif' (00000000159d9d67): auto cleanup kobject_del R10: fffffbfff135106c R11: ffffffff89a88367 R12: ffff88809e304ee0 kobject: 'loop1' (000000005d399458): kobject_uevent_env R13: ffff88809e304ee0 R14: 0000000000000000 R15: 0000000000000000 kobject: 'brif' (00000000159d9d67): calling ktype release FS: 00007fe6fa623700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 kobject: 'loop1' (000000005d399458): fill_kobj_path: path = '/devices/virtual/block/loop1' CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kobject: (00000000159d9d67): dynamic_kobj_release CR2: 0000000000625208 CR3: 00000000a138f000 CR4: 00000000001406f0 kobject: 'brif': free name DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400