INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 1 PID: 8584 Comm: syz-executor.2 Not tainted 5.6.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:913 [inline] register_lock_class+0x1852/0x1860 kernel/locking/lockdep.c:1225 __lock_acquire+0x100/0x3740 kernel/locking/lockdep.c:4223 lock_acquire+0x1e3/0x970 kernel/locking/lockdep.c:4923 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x95/0xc0 kernel/locking/spinlock.c:159 io_sqe_files_register fs/io_uring.c:6571 [inline] __io_uring_register+0x188d/0x2ae0 fs/io_uring.c:7973 __do_sys_io_uring_register fs/io_uring.c:8053 [inline] __se_sys_io_uring_register fs/io_uring.c:8035 [inline] __x64_sys_io_uring_register+0x15d/0x450 fs/io_uring.c:8035 do_syscall_64+0xc6/0x620 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45c879 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:00007f5b7cfa5c78 EFLAGS: 00000246 ORIG_RAX: 00000000000001ab RAX: ffffffffffffffda RBX: 00007f5b7cfa66d4 RCX: 000000000045c879 RDX: 0000000020000280 RSI: 0000000000000002 RDI: 0000000000000003 RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000001fd R14: 00000000004d2f40 R15: 000000000076bf0c