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: 'rfkill152' (000000002bc73d3e): kobject_add_internal: parent: 'hci4', set: 'devices' CPU: 0 PID: 5834 Comm: syz-executor232 Not tainted 4.19.0+ #311 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:ffff8801ba68f5d0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8801ba1ade00 RCX: ffffffff87cc2707 RDX: 0000000000000001 RSI: ffffffff81f8bc2a RDI: 0000000000000008 kobject: 'hci1' (000000003117ee46): kobject_add_internal: parent: 'bluetooth', set: 'devices' RBP: ffff8801ba68f618 R08: fffffbfff12cf871 R09: fffffbfff12cf870 R10: fffffbfff12cf870 R11: ffffffff8967c387 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00000000017b5880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kobject: 'hci2' (000000003fad6c91): kobject_add_internal: parent: 'bluetooth', set: 'devices' CR2: 0000000000414ac0 CR3: 00000001d371b000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kobject: 'rfkill152' (000000002bc73d3e): 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: 'hci1' (000000003117ee46): kobject_uevent_env create_dir lib/kobject.c:88 [inline] kobject_add_internal.cold.11+0x116/0x6af lib/kobject.c:247 kobject_add_varg lib/kobject.c:382 [inline] kobject_add+0x13f/0x1b0 lib/kobject.c:426 device_add+0x445/0x18e0 drivers/base/core.c:1879 hci_register_dev+0x3b3/0x9c0 net/bluetooth/hci_core.c:3261 kobject: 'hci2' (000000003fad6c91): kobject_uevent_env __vhci_create_device+0x2c1/0x580 drivers/bluetooth/hci_vhci.c:139 kobject: 'rfkill152' (000000002bc73d3e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill152' 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:1839 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x6b8/0x9f0 fs/read_write.c:487 kobject: 'hci1' (000000003117ee46): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1' vfs_write+0x1fc/0x560 fs/read_write.c:549 ksys_write+0x101/0x260 fs/read_write.c:598 kobject: 'hci2' (000000003fad6c91): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' __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: 'rfkill152' (000000002bc73d3e): kobject_uevent_env kobject: 'rfkill152' (000000002bc73d3e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill152' kobject: 'rfkill153' (00000000f827155e): kobject_add_internal: parent: 'hci1', set: 'devices' entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x440e49 kobject: 'rfkill153' (00000000f827155e): kobject_uevent_env 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:00007ffe9a829ad8 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440e49 RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000003 kobject: 'rfkill153' (00000000f827155e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill153' RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 R10: 00000000017b5880 R11: 0000000000000213 R12: 000000000000cf0a R13: 0000000000401d70 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: kobject: 'rfkill154' (00000000452560d2): kobject_add_internal: parent: 'hci2', set: 'devices' kobject: 'hci5' (00000000dd261b1b): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill153' (00000000f827155e): kobject_uevent_env kobject: 'hci3' (000000007adb2c49): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill153' (00000000f827155e): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill153' kobject: 'hci3' (000000007adb2c49): kobject_uevent_env kobject: 'rfkill154' (00000000452560d2): kobject_uevent_env kobject: 'hci3' (000000007adb2c49): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'rfkill154' (00000000452560d2): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill154' kobject: 'hci5' (00000000dd261b1b): kobject_uevent_env kobject: 'rfkill152' (000000002bc73d3e): kobject_cleanup, parent (null) kobject: 'rfkill155' (0000000099aa93ef): kobject_add_internal: parent: 'hci3', set: 'devices' kobject: 'rfkill154' (00000000452560d2): kobject_uevent_env kobject: 'rfkill152' (000000002bc73d3e): calling ktype release kobject: 'rfkill154' (00000000452560d2): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill154' kobject: 'hci5' (00000000dd261b1b): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' kobject: 'rfkill152': free name kobject: 'rfkill155' (0000000099aa93ef): kobject_uevent_env kobject: 'hci4' (000000003e486a5c): kobject_uevent_env kobject: 'rfkill155' (0000000099aa93ef): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill155' kobject: 'hci4' (000000003e486a5c): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' kobject: 'rfkill153' (00000000f827155e): kobject_cleanup, parent (null) kobject: 'rfkill154' (00000000452560d2): kobject_cleanup, parent (null) kobject: 'rfkill156' (00000000098b792d): kobject_add_internal: parent: 'hci5', set: 'devices' kobject: 'hci4' (000000003e486a5c): kobject_cleanup, parent (null) kobject: 'rfkill153' (00000000f827155e): calling ktype release kobject: 'hci4' (000000003e486a5c): calling ktype release kobject: 'rfkill153': free name kobject: 'rfkill154' (00000000452560d2): calling ktype release kobject: 'hci1' (000000003117ee46): kobject_uevent_env kobject: 'hci4': free name kobject: 'rfkill156' (00000000098b792d): kobject_uevent_env kobject: 'rfkill154': free name kobject: 'hci1' (000000003117ee46): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1' kobject: 'hci2' (000000003fad6c91): kobject_uevent_env kobject: 'rfkill156' (00000000098b792d): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill156' kobject: 'hci4' (00000000b6037555): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'hci1' (000000003117ee46): kobject_cleanup, parent (null) kobject: 'hci4' (00000000b6037555): kobject_uevent_env kobject: 'rfkill155' (0000000099aa93ef): kobject_uevent_env kobject: 'hci2' (000000003fad6c91): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'rfkill156' (00000000098b792d): kobject_uevent_env kobject: 'hci2' (000000003fad6c91): kobject_cleanup, parent (null) kobject: 'hci1' (000000003117ee46): calling ktype release kobject: 'hci4' (00000000b6037555): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' kobject: 'rfkill155' (0000000099aa93ef): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill155' kobject: 'hci2' (000000003fad6c91): calling ktype release kobject: 'hci1': free name kobject: 'rfkill157' (00000000a76a75d5): kobject_add_internal: parent: 'hci4', set: 'devices' kobject: 'rfkill156' (00000000098b792d): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5/rfkill156' kobject: 'rfkill157' (00000000a76a75d5): kobject_uevent_env ---[ end trace a0d8de35ebcb2605 ]--- kobject: 'hci2': free name RIP: 0010:kernfs_add_one+0x342/0x4d0 fs/kernfs/dir.c:812 kobject: 'hci1' (00000000aaf03bbe): 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 kobject: 'rfkill157' (00000000a76a75d5): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill157' RSP: 0018:ffff8801ba68f5d0 EFLAGS: 00010202 kobject: 'hci1' (00000000aaf03bbe): kobject_uevent_env RAX: dffffc0000000000 RBX: ffff8801ba1ade00 RCX: ffffffff87cc2707 kobject: 'hci2' (000000001d3206e4): kobject_add_internal: parent: 'bluetooth', set: 'devices' RDX: 0000000000000001 RSI: ffffffff81f8bc2a RDI: 0000000000000008 kobject: 'rfkill157' (00000000a76a75d5): kobject_uevent_env kobject: 'rfkill155' (0000000099aa93ef): kobject_cleanup, parent (null) kobject: 'hci1' (00000000aaf03bbe): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1' kobject: 'rfkill156' (00000000098b792d): kobject_cleanup, parent (null) kobject: 'hci2' (000000001d3206e4): kobject_uevent_env RBP: ffff8801ba68f618 R08: fffffbfff12cf871 R09: fffffbfff12cf870 kobject: 'rfkill158' (0000000013c809ce): kobject_add_internal: parent: 'hci1', set: 'devices' kobject: 'rfkill155' (0000000099aa93ef): calling ktype release kobject: 'rfkill158' (0000000013c809ce): kobject_uevent_env kobject: 'rfkill157' (00000000a76a75d5): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4/rfkill157' kobject: 'hci2' (000000001d3206e4): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'rfkill156' (00000000098b792d): calling ktype release kobject: 'rfkill158' (0000000013c809ce): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill158' kobject: 'rfkill155': free name kobject: 'rfkill159' (00000000e2902c1d): kobject_add_internal: parent: 'hci2', set: 'devices' kobject: 'rfkill156': free name kobject: 'rfkill158' (0000000013c809ce): kobject_uevent_env kobject: 'hci3' (000000007adb2c49): kobject_uevent_env R10: fffffbfff12cf870 R11: ffffffff8967c387 R12: 0000000000000000 kobject: 'hci5' (00000000dd261b1b): kobject_uevent_env kobject: 'rfkill159' (00000000e2902c1d): kobject_uevent_env kobject: 'hci5' (00000000dd261b1b): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' kobject: 'rfkill159' (00000000e2902c1d): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill159' kobject: 'hci3' (000000007adb2c49): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 kobject: 'hci5' (00000000dd261b1b): kobject_cleanup, parent (null) kobject: 'rfkill158' (0000000013c809ce): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1/rfkill158' kobject: 'hci5' (00000000dd261b1b): calling ktype release kobject: 'rfkill157' (00000000a76a75d5): kobject_cleanup, parent (null) kobject: 'hci5': free name kobject: 'rfkill159' (00000000e2902c1d): kobject_uevent_env kobject: 'hci3' (000000007adb2c49): kobject_cleanup, parent (null) kobject: 'rfkill158' (0000000013c809ce): kobject_cleanup, parent (null) kobject: 'rfkill157' (00000000a76a75d5): calling ktype release kobject: 'rfkill159' (00000000e2902c1d): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill159' kobject: 'hci3' (000000007adb2c49): calling ktype release kobject: 'rfkill158' (0000000013c809ce): calling ktype release kobject: 'hci3' (00000000dadab329): kobject_add_internal: parent: 'bluetooth', set: 'devices' kobject: 'rfkill159' (00000000e2902c1d): kobject_cleanup, parent (null) FS: 00000000017b5880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 kobject: 'rfkill159' (00000000e2902c1d): calling ktype release kobject: 'hci3' (00000000dadab329): kobject_uevent_env kobject: 'rfkill158': free name CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kobject: 'hci3': free name kobject: 'hci3' (00000000dadab329): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' kobject: 'rfkill157': free name kobject: 'rfkill160' (00000000a18f6509): kobject_add_internal: parent: 'hci3', set: 'devices' kobject: 'rfkill159': free name CR2: 00000000006cb090 CR3: 00000001d371b000 CR4: 00000000001406f0 kobject: 'hci4' (00000000b6037555): kobject_uevent_env kobject: 'rfkill160' (00000000a18f6509): kobject_uevent_env kobject: 'hci1' (00000000aaf03bbe): kobject_uevent_env DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kobject: 'hci2' (000000001d3206e4): kobject_uevent_env kobject: 'rfkill160' (00000000a18f6509): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill160' kobject: 'hci5' (000000001886e18c): kobject_add_internal: parent: 'bluetooth', set: 'devices' DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 kobject: 'hci2' (000000001d3206e4): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kobject: 'hci4' (00000000b6037555): fill_kobj_path: path = '/devices/virtual/bluetooth/hci4' kobject: 'hci5' (000000001886e18c): kobject_uevent_env kobject: 'rfkill160' (00000000a18f6509): kobject_uevent_env kobject: 'hci2' (000000001d3206e4): kobject_cleanup, parent (null) kobject: 'hci4' (00000000b6037555): kobject_cleanup, parent (null) kobject: 'hci5' (000000001886e18c): fill_kobj_path: path = '/devices/virtual/bluetooth/hci5' kobject: 'hci1' (00000000aaf03bbe): fill_kobj_path: path = '/devices/virtual/bluetooth/hci1' kobject: 'hci2' (000000001d3206e4): calling ktype release kobject: 'rfkill160' (00000000a18f6509): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/rfkill160'