input: syz0 as /devices/virtual/input/input4676 input: syz0 as /devices/virtual/input/input4677 input: syz0 as /devices/virtual/input/input4678 ------------[ cut here ]------------ refcount_t: increment on 0; use-after-free. WARNING: CPU: 0 PID: 17360 at lib/refcount.c:153 refcount_inc_checked lib/refcount.c:153 [inline] WARNING: CPU: 0 PID: 17360 at lib/refcount.c:153 refcount_inc_checked+0x61/0x70 lib/refcount.c:151 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 17360 Comm: syz-executor478 Not tainted 4.19.36 #4 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+0x172/0x1f0 lib/dump_stack.c:113 panic+0x263/0x51d kernel/panic.c:185 __warn.cold+0x20/0x54 kernel/panic.c:540 report_bug+0x263/0x2b0 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:178 [inline] fixup_bug arch/x86/kernel/traps.c:173 [inline] do_error_trap+0x204/0x360 arch/x86/kernel/traps.c:296 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:997 RIP: 0010:refcount_inc_checked lib/refcount.c:153 [inline] RIP: 0010:refcount_inc_checked+0x61/0x70 lib/refcount.c:151 Code: 1d 49 4d 12 06 31 ff 89 de e8 2b 9f 47 fe 84 db 75 dd e8 e2 9d 47 fe 48 c7 c7 c0 84 81 87 c6 05 29 4d 12 06 01 e8 fd 79 1b fe <0f> 0b eb c1 90 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 RSP: 0018:ffff88809fb0f8b8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff8155df26 RDI: ffffed1013f61f09 RBP: ffff88809fb0f8c8 R08: ffff8880a42d2640 R09: ffff8880a42d2ee0 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880aa31faa8 R13: 0000000000000000 R14: ffff8880a90c4300 R15: ffff888090e41480 kref_get include/linux/kref.h:47 [inline] kobject_get+0x66/0xc0 lib/kobject.c:613 cdev_get+0x60/0xb0 fs/char_dev.c:358 chrdev_open+0xb0/0x6b0 fs/char_dev.c:403 do_dentry_open+0x4c6/0x1200 fs/open.c:777 vfs_open+0xa0/0xd0 fs/open.c:886 do_last fs/namei.c:3418 [inline] path_openat+0x10d7/0x4690 fs/namei.c:3534 do_filp_open+0x1a1/0x280 fs/namei.c:3564 do_sys_open+0x3fe/0x550 fs/open.c:1069 __do_sys_open fs/open.c:1087 [inline] __se_sys_open fs/open.c:1082 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1082 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x402bd0 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 5d 9f 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:00007ffdf264c0f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 000000000000000a RCX: 0000000000402bd0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffdf264c110 RBP: 0000000000000000 R08: 000000000000000f R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000309 R13: 0000000000403f00 R14: 0000000000000000 R15: 0000000000000000 Kernel Offset: disabled Rebooting in 86400 seconds..