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: 3591 Comm: syz-executor175 Not tainted 5.15.103-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+0x1ff/0x570 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:2103 [inline] aio_write+0x566/0x780 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:0x7f660fb5f369 Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffc42c2ad8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f660fb5f369 RDX: 00000000200001c0 RSI: 0000000000000001 RDI: 00007f660fb17000 RBP: 00007f660fb231f0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f660fb23280 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000