INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 0 PID: 8622 Comm: syz-executor.3 Not tainted 5.5.0-syzkaller #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+0x128/0x182 lib/dump_stack.c:118 assign_lock_key kernel/locking/lockdep.c:880 [inline] register_lock_class+0x18a5/0x1a50 kernel/locking/lockdep.c:1189 __lock_acquire+0x101/0x4370 kernel/locking/lockdep.c:3836 lock_acquire+0x19b/0x420 kernel/locking/lockdep.c:4484 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x95/0xc0 kernel/locking/spinlock.c:159 prepare_to_wait_event+0x65/0x650 kernel/sched/wait.c:280 uhid_char_read+0x246/0x5cb drivers/hid/uhid.c:669 do_loop_readv_writev fs/read_write.c:714 [inline] do_iter_read+0x360/0x580 fs/read_write.c:935 vfs_readv+0xc7/0x130 fs/read_write.c:997 do_readv+0x20e/0x280 fs/read_write.c:1034 do_syscall_64+0xc6/0x5e0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c849 Code: ad b6 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fc3eaf14c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000013 RAX: ffffffffffffffda RBX: 00007fc3eaf156d4 RCX: 000000000045c849 RDX: 0000000000000002 RSI: 0000000020001680 RDI: 0000000000000003 RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000886 R14: 00000000004cb18c R15: 000000000076bf0c list_del corruption. prev->next should be ffffc90003187bb0, but was 0000000000000000 ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:53! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8622 Comm: syz-executor.3 Not tainted 5.5.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__list_del_entry_valid.cold.1+0x48/0x4d lib/list_debug.c:51 Code: 4e 8d 87 e8 db 90 11 fe 0f 0b 48 89 de 48 c7 c7 c0 4f 8d 87 e8 ca 90 11 fe 0f 0b 48 89 de 48 c7 c7 60 4f 8d 87 e8 b9 90 11 fe <0f> 0b cc cc cc 41 57 41 56 41 55 41 54 55 48 bd 00 00 00 00 00 fc RSP: 0018:ffffc90003187a48 EFLAGS: 00010086 RAX: 0000000000000054 RBX: ffffc90003187bb0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000007 RDI: ffffffff8b3d6360 RBP: ffff88807bde11f8 R08: ffffed1015d045c9 R09: ffffed1015d045c9 R10: ffffed1015d045c8 R11: ffff8880ae822e43 R12: ffff88807bde11f8 R13: ffff88807bde11c0 R14: ffffc90003187bb0 R15: 0000000000000001 FS: 00007fc3eaf15700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000815fd0 CR3: 00000000a03b8000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_del_entry include/linux/list.h:131 [inline] list_del_init include/linux/list.h:190 [inline] prepare_to_wait_event+0x1d4/0x650 kernel/sched/wait.c:294 uhid_char_read+0x246/0x5cb drivers/hid/uhid.c:669 do_loop_readv_writev fs/read_write.c:714 [inline] do_iter_read+0x360/0x580 fs/read_write.c:935 vfs_readv+0xc7/0x130 fs/read_write.c:997 do_readv+0x20e/0x280 fs/read_write.c:1034 do_syscall_64+0xc6/0x5e0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c849 Code: ad b6 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fc3eaf14c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000013 RAX: ffffffffffffffda RBX: 00007fc3eaf156d4 RCX: 000000000045c849 RDX: 0000000000000002 RSI: 0000000020001680 RDI: 0000000000000003 RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000886 R14: 00000000004cb18c R15: 000000000076bf0c Modules linked in: ---[ end trace 1fb4ca2f099b84c2 ]--- RIP: 0010:__list_del_entry_valid.cold.1+0x48/0x4d lib/list_debug.c:51 Code: 4e 8d 87 e8 db 90 11 fe 0f 0b 48 89 de 48 c7 c7 c0 4f 8d 87 e8 ca 90 11 fe 0f 0b 48 89 de 48 c7 c7 60 4f 8d 87 e8 b9 90 11 fe <0f> 0b cc cc cc 41 57 41 56 41 55 41 54 55 48 bd 00 00 00 00 00 fc RSP: 0018:ffffc90003187a48 EFLAGS: 00010086 RAX: 0000000000000054 RBX: ffffc90003187bb0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000007 RDI: ffffffff8b3d6360 RBP: ffff88807bde11f8 R08: ffffed1015d045c9 R09: ffffed1015d045c9 R10: ffffed1015d045c8 R11: ffff8880ae822e43 R12: ffff88807bde11f8 R13: ffff88807bde11c0 R14: ffffc90003187bb0 R15: 0000000000000001 FS: 00007fc3eaf15700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000815fd0 CR3: 00000000a03b8000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400