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: 10499 Comm: syz-executor.0 Not tainted 5.15.157-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 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:4891 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __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_wakeup+0x69/0x2e0 drivers/tty/n_gsm.c:2871 tty_ldisc_hangup+0x16a/0x4b0 drivers/tty/tty_ldisc.c:723 __tty_hangup+0x47a/0x6b0 drivers/tty/tty_io.c:639 tty_vhangup drivers/tty/tty_io.c:711 [inline] tty_ioctl+0x608/0xc50 drivers/tty/tty_io.c:2750 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f787025cea9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f786e7cf0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f787038af80 RCX: 00007f787025cea9 RDX: 0000000000000000 RSI: 0000000000005437 RDI: 0000000000000004 RBP: 00007f78702a94a4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f787038af80 R15: 00007ffc20b362a8