INFO: trying to register non-static key. The code is fine but needs lockdep annotation, or maybe you didn't initialize this object before use? turning off the locking correctness validator. CPU: 0 PID: 19309 Comm: syz-executor.5 Not tainted 5.15.98-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 assign_lock_key+0x21e/0x230 kernel/locking/lockdep.c:937 register_lock_class+0x28a/0x9a0 kernel/locking/lockdep.c:1250 __lock_acquire+0xd7/0x1ff0 kernel/locking/lockdep.c:4890 lock_acquire+0x1f6/0x560 kernel/locking/lockdep.c:5622 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 gsmld_write+0x5b/0x120 drivers/tty/n_gsm.c:2925 do_tty_write drivers/tty/tty_io.c:1038 [inline] file_tty_write+0x561/0x920 drivers/tty/tty_io.c:1110 call_write_iter include/linux/fs.h:2101 [inline] aio_write+0x548/0x770 fs/aio.c:1583 io_submit_one+0x768/0x18d0 fs/aio.c:2002 __do_sys_io_submit fs/aio.c:2061 [inline] __se_sys_io_submit+0x17b/0x2f0 fs/aio.c:2031 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f3ee00040f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3ede576168 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007f3ee0123f80 RCX: 00007f3ee00040f9 RDX: 00000000200001c0 RSI: 0000000000000001 RDI: 00007f3ee0107000 RBP: 00007f3ee005fae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe33257cbf R14: 00007f3ede576300 R15: 0000000000022000