input: syz1 as /devices/virtual/input/input8 ------------[ cut here ]------------ refcount_t: increment on 0; use-after-free. WARNING: CPU: 0 PID: 7937 at lib/refcount.c:156 refcount_inc_checked+0x4b/0x50 lib/refcount.c:156 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 7937 Comm: syz-executor129 Not tainted 5.3.0+ #0 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+0x1d8/0x2f8 lib/dump_stack.c:113 panic+0x25c/0x799 kernel/panic.c:219 __warn+0x22f/0x230 kernel/panic.c:576 report_bug+0x190/0x290 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:179 [inline] do_error_trap+0xd7/0x440 arch/x86/kernel/traps.c:272 do_invalid_op+0x36/0x40 arch/x86/kernel/traps.c:291 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1028 RIP: 0010:refcount_inc_checked+0x4b/0x50 lib/refcount.c:156 Code: 3d 5e 80 78 05 01 75 08 e8 a2 e4 30 fe 5b 5d c3 e8 9a e4 30 fe c6 05 48 80 78 05 01 48 c7 c7 04 28 40 88 31 c0 e8 95 9b 03 fe <0f> 0b eb df 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 10 RSP: 0018:ffff8880847f79b0 EFLAGS: 00010246 RAX: ce2d6c4bbf865b00 RBX: ffff88808fa65d40 RCX: ffff888098e3a140 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff8880847f79b8 R08: ffffffff815c9744 R09: fffffbfff12baea8 R10: fffffbfff12baea8 R11: 0000000000000000 R12: dffffc0000000000 R13: ffff88808fa65d08 R14: ffff88808fa65d44 R15: ffff88808fa65d08 kref_get include/linux/kref.h:45 [inline] kobject_get+0x91/0xc0 lib/kobject.c:644 cdev_get fs/char_dev.c:355 [inline] chrdev_open+0x17e/0x590 fs/char_dev.c:400 do_dentry_open+0x73b/0xf90 fs/open.c:797 vfs_open+0x73/0x80 fs/open.c:906 do_last fs/namei.c:3408 [inline] path_openat+0x1397/0x4460 fs/namei.c:3525 do_filp_open+0x192/0x3d0 fs/namei.c:3555 do_sys_open+0x29f/0x560 fs/open.c:1089 __do_sys_open fs/open.c:1107 [inline] __se_sys_open fs/open.c:1102 [inline] __x64_sys_open+0x87/0x90 fs/open.c:1102 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x403350 Code: 48 83 c4 08 48 3d 01 f0 ff ff 0f 83 3a 0e 00 00 c3 66 0f 1f 84 00 00 00 00 00 83 3d 9d f5 2d 00 00 75 14 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 14 0e 00 00 c3 48 83 ec 08 e8 7a 03 00 00 RSP: 002b:00007ffdb5564f38 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 000000000000000a RCX: 0000000000403350 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffdb5564f50 RBP: 000000000000e039 R08: 000000000000000f R09: 00000000000003e8 R10: 00000000000003e8 R11: 0000000000000246 R12: 0000000000000003 R13: 00000000006d5dc8 R14: 00000000006d6440 R15: 0000000000000000 Kernel Offset: disabled Rebooting in 86400 seconds..