input: syz1 as /devices/virtual/input/input12206 ================================================ WARNING: lock held when returning to user space! 4.14.292-syzkaller #0 Not tainted ------------------------------------------------ syz-executor.1/21804 is leaving the kernel with locks still held! 1 lock held by syz-executor.1/21804: #0: (&lo->lo_ctl_mutex/1){+.+.}, at: [] lo_ioctl+0x87/0x1cd0 drivers/block/loop.c:1419 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 0 PID: 21845 Comm: syz-executor.4 Not tainted 4.14.292-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10a/0x149 lib/fault-inject.c:149 should_failslab+0xd6/0x130 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] kmem_cache_alloc+0x28e/0x3c0 mm/slab.c:3550 kmem_cache_zalloc include/linux/slab.h:651 [inline] __kernfs_new_node+0x6f/0x470 fs/kernfs/dir.c:640 uinput: write device info first kernfs_new_node+0x7b/0xe0 fs/kernfs/dir.c:685 kernfs_create_link+0x27/0x160 fs/kernfs/symlink.c:32 sysfs_do_create_link_sd+0x90/0x120 fs/sysfs/symlink.c:44 sysfs_do_create_link fs/sysfs/symlink.c:80 [inline] sysfs_create_link+0x5f/0xc0 fs/sysfs/symlink.c:92 device_add_class_symlinks drivers/base/core.c:1677 [inline] device_add+0x461/0x15c0 drivers/base/core.c:1899 input_register_device+0x59e/0xa90 drivers/input/input.c:2169 uinput_create_device drivers/input/misc/uinput.c:324 [inline] uinput_ioctl_handler.isra.0+0x84c/0x1790 drivers/input/misc/uinput.c:839 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7ff7d472f3c9 RSP: 002b:00007ff7d30a4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff7d4841f80 RCX: 00007ff7d472f3c9 RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000003 RBP: 00007ff7d30a41d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007fff50698f9f R14: 00007ff7d30a4300 R15: 0000000000022000