kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 9720 Comm: syz-executor4 Not tainted 4.20.0-rc2+ #118 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 audit: type=1804 audit(1542615252.618:43): pid=9714 uid=0 auid=4294967295 ses=4294967295 subj=_ op=invalid_pcr cause=ToMToU comm="syz-executor5" name="/root/syzkaller-testdir572773472/syzkaller.mb35os/64/bus" dev="sda1" ino=16734 res=1 RSP: 0018:ffff88817734f5d0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8881c32990e0 RCX: ffffc9000de4e000 RDX: 0000000000000001 RSI: ffffffff81f8fd3a RDI: 0000000000000008 RBP: ffff88817734f618 R08: fffffbfff12cfa19 R09: fffffbfff12cfa18 R10: fffffbfff12cfa18 R11: ffffffff8967d0c7 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f9753980700(0000) GS:ffff8881daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000728000 CR3: 00000001b8cfe000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kernfs_create_dir_ns+0xf6/0x160 fs/kernfs/dir.c:1031 sysfs_create_dir_ns+0x19b/0x340 fs/sysfs/dir.c:58 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 audit: type=1804 audit(1542615252.628:44): pid=9714 uid=0 auid=4294967295 ses=4294967295 subj=_ op=invalid_pcr cause=open_writers comm="syz-executor5" name="/root/syzkaller-testdir572773472/syzkaller.mb35os/64/bus" dev="sda1" ino=16734 res=1 hci_register_dev+0x3b3/0x9c0 net/bluetooth/hci_core.c:3261 __vhci_create_device+0x2c1/0x580 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+0x2de/0x470 drivers/bluetooth/hci_vhci.c:299 call_write_iter include/linux/fs.h:1857 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x6b8/0x9f0 fs/read_write.c:487 kobject: 'loop3' (0000000024be30f2): kobject_uevent_env vfs_write+0x1fc/0x560 fs/read_write.c:549 ksys_write+0x101/0x260 fs/read_write.c:598 kobject: 'loop3' (0000000024be30f2): fill_kobj_path: path = '/devices/virtual/block/loop3' __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 audit: type=1804 audit(1542615252.638:45): pid=9716 uid=0 auid=4294967295 ses=4294967295 subj=_ op=invalid_pcr cause=ToMToU comm="syz-executor5" name="/root/syzkaller-testdir572773472/syzkaller.mb35os/64/bus" dev="sda1" ino=16734 res=1 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457569 Code: fd b3 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 b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f975397fc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569 RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000004 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f97539806d4 R13: 00000000004c553b R14: 00000000004d8fe8 R15: 00000000ffffffff Modules linked in: ---[ end trace 22ad582995bb6fa4 ]--- 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 kobject: 'loop2' (0000000028959c2a): kobject_uevent_env kobject: 'loop2' (0000000028959c2a): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'vti0' (000000000523013e): kobject_add_internal: parent: 'net', set: 'devices' FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 RSP: 0018:ffff88817734f5d0 EFLAGS: 00010202 kobject: 'vti0' (000000000523013e): kobject_uevent_env kobject: 'loop5' (000000004852ff88): kobject_uevent_env RAX: dffffc0000000000 RBX: ffff8881c32990e0 RCX: ffffc9000de4e000 kobject: 'vti0' (000000000523013e): fill_kobj_path: path = '/devices/virtual/net/vti0' kobject: 'loop5' (000000004852ff88): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'queues' (0000000010a04267): kobject_add_internal: parent: 'vti0', set: '' CPU: 1 PID: 9751 Comm: syz-executor2 Tainted: G D 4.20.0-rc2+ #118 RDX: 0000000000000001 RSI: ffffffff81f8fd3a RDI: 0000000000000008 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x244/0x39d lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0xa/0x17 lib/fault-inject.c:149 kobject: 'queues' (0000000010a04267): kobject_uevent_env kobject: 'queues' (0000000010a04267): kobject_uevent_env: filter function caused the event to drop! kobject: 'rx-0' (000000002e51d493): kobject_add_internal: parent: 'queues', set: 'queues' kobject: 'rx-0' (000000002e51d493): kobject_uevent_env __should_failslab+0x124/0x180 mm/failslab.c:32 RBP: ffff88817734f618 R08: fffffbfff12cfa19 R09: fffffbfff12cfa18 should_failslab+0x9/0x14 mm/slab_common.c:1578 R10: fffffbfff12cfa18 R11: ffffffff8967d0c7 R12: 0000000000000000 slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc_node mm/slab.c:3299 [inline] kmem_cache_alloc_node_trace+0x5a/0x740 mm/slab.c:3661 kobject: 'rx-0' (000000002e51d493): fill_kobj_path: path = '/devices/virtual/net/vti0/queues/rx-0' __do_kmalloc_node mm/slab.c:3683 [inline] __kmalloc_node_track_caller+0x3c/0x70 mm/slab.c:3698 __kmalloc_reserve.isra.40+0x41/0xe0 net/core/skbuff.c:137 __alloc_skb+0x155/0x770 net/core/skbuff.c:205 kobject: 'tx-0' (0000000033f37b85): kobject_add_internal: parent: 'queues', set: 'queues' kobject: 'tx-0' (0000000033f37b85): kobject_uevent_env alloc_skb include/linux/skbuff.h:997 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:339 [inline] create_monitor_ctrl_open+0x148/0x9e0 net/bluetooth/hci_sock.c:515 kobject: 'tx-0' (0000000033f37b85): fill_kobj_path: path = '/devices/virtual/net/vti0/queues/tx-0' hci_sock_ioctl+0x37e/0x810 net/bluetooth/hci_sock.c:993 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 sock_do_ioctl+0xeb/0x420 net/socket.c:950 FS: 00007f9753980700(0000) GS:ffff8881dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 sock_ioctl+0x313/0x690 net/socket.c:1074 CR2: 0000000000707158 CR3: 00000001b8cfe000 CR4: 00000000001406f0 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0x1de/0x1790 fs/ioctl.c:696 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400