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: 30593 Comm: syz-executor.0 Not tainted 5.2.0-rc6+ #10 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:kernfs_add_one+0x4e3/0x670 fs/kernfs/dir.c:813 Code: 44 de 48 83 c3 70 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 7b 68 d3 ff 48 8b 1b 48 83 c3 08 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 3b 01 00 00 44 8b 33 44 89 f6 83 e6 01 31 RSP: 0018:ffff88805b4676d8 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000008 RCX: ffffffff8797aefc RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff88b0e510 RBP: ffff88805b467720 R08: dffffc0000000000 R09: fffffbfff1161ca3 R10: fffffbfff1161ca3 R11: 1ffffffff1161ca2 R12: 000000000198a07f R13: dffffc0000000000 R14: ffff88809a6ebb60 R15: 0000000056c3ceb5 FS: 00007f358354d700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffcdf893818 CR3: 000000005869d000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kernfs_create_dir_ns+0x1c8/0x230 fs/kernfs/dir.c:1032 sysfs_create_dir_ns+0x161/0x300 fs/sysfs/dir.c:59 create_dir lib/kobject.c:89 [inline] kobject_add_internal+0x459/0xd50 lib/kobject.c:255 kobject_add_varg lib/kobject.c:390 [inline] kobject_add+0x138/0x200 lib/kobject.c:442 device_add+0x508/0x1570 drivers/base/core.c:2062 hci_register_dev+0x331/0x6c0 net/bluetooth/hci_core.c:3305 __vhci_create_device drivers/bluetooth/hci_vhci.c:124 [inline] vhci_create_device+0x2d1/0x510 drivers/bluetooth/hci_vhci.c:148 vhci_get_user drivers/bluetooth/hci_vhci.c:204 [inline] vhci_write+0x3ac/0x440 drivers/bluetooth/hci_vhci.c:284 call_write_iter include/linux/fs.h:1872 [inline] new_sync_write fs/read_write.c:483 [inline] __vfs_write+0x617/0x7d0 fs/read_write.c:496 vfs_write+0x227/0x510 fs/read_write.c:558 ksys_write+0x16b/0x2a0 fs/read_write.c:611 __do_sys_write fs/read_write.c:623 [inline] __se_sys_write fs/read_write.c:620 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:620 do_syscall_64+0xfe/0x140 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459519 Code: fd 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f358354cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459519 RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f358354d6d4 R13: 00000000004c8f76 R14: 00000000004dff38 R15: 00000000ffffffff Modules linked in: ---[ end trace 741fa8ba434b6b9c ]--- RIP: 0010:kernfs_add_one+0x4e3/0x670 fs/kernfs/dir.c:813 Code: 44 de 48 83 c3 70 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 7b 68 d3 ff 48 8b 1b 48 83 c3 08 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 3b 01 00 00 44 8b 33 44 89 f6 83 e6 01 31 RSP: 0018:ffff88805b4676d8 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000008 RCX: ffffffff8797aefc RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff88b0e510 RBP: ffff88805b467720 R08: dffffc0000000000 R09: fffffbfff1161ca3 R10: fffffbfff1161ca3 R11: 1ffffffff1161ca2 R12: 000000000198a07f R13: dffffc0000000000 R14: ffff88809a6ebb60 R15: 0000000056c3ceb5 FS: 00007f358354d700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f35834c8db8 CR3: 000000005869d000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400