input: syz0 as /devices/virtual/input/input366
------------[ cut here ]------------
WARNING: CPU: 1 PID: 29424 at fs/kernfs/dir.c:494 kernfs_get.part.0+0x5e/0x70 fs/kernfs/dir.c:494
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 29424 Comm: syz-executor.0 Not tainted 4.14.138+ #32
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0xca/0x134 lib/dump_stack.c:53
 panic+0x1ea/0x3d3 kernel/panic.c:182
 __warn.cold+0x2f/0x3a kernel/panic.c:546
 report_bug+0x20a/0x248 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x1bf/0x2d0 arch/x86/kernel/traps.c:295
uinput: write device info first
 invalid_op+0x18/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:kernfs_get.part.0+0x5e/0x70 fs/kernfs/dir.c:494
RSP: 0018:ffff8881d46678d0 EFLAGS: 00010212
RAX: 0000000000040000 RBX: ffff8881d10261c0 RCX: 00000000000006fe
RDX: ffffffff816dd5ee RSI: ffffc90000599000 RDI: ffff8881d10261c0
RBP: ffff8881d54b42e0 R08: 0000000000000001 R09: ffffed103a204c39
R10: ffffed103a204c38 R11: ffff8881d10261c3 R12: ffff8881c5851540
R13: 00000000000041ed R14: 0000000000000001 R15: ffff8881c64079e8
 kernfs_get fs/kernfs/dir.c:493 [inline]
 kernfs_new_node+0x9a/0xf0 fs/kernfs/dir.c:680
 kernfs_create_dir_ns+0x3c/0x130 fs/kernfs/dir.c:999
 sysfs_create_dir_ns+0xb7/0x1d0 fs/sysfs/dir.c:55
 create_dir lib/kobject.c:71 [inline]
 kobject_add_internal+0x27f/0x830 lib/kobject.c:229
 kobject_add_varg lib/kobject.c:364 [inline]
 kobject_add+0x135/0x1a0 lib/kobject.c:409
 device_add+0x333/0x13a0 drivers/base/core.c:1809
 input_register_device+0x605/0xb20 drivers/input/input.c:2144
 uinput_create_device drivers/input/misc/uinput.c:324 [inline]
 uinput_ioctl_handler.isra.0+0xa2a/0x1850 drivers/input/misc/uinput.c:839
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0xabe/0x1040 fs/ioctl.c:684
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 do_syscall_64+0x19b/0x520 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x459829
RSP: 002b:00007fd9b6343c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 0000000000459829
RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd9b63446d4
R13: 00000000004c4582 R14: 00000000004d8848 R15: 00000000ffffffff
Kernel Offset: 0x8800000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
Rebooting in 86400 seconds..