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: 4354 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106
assign_lock_key+0x1e0/0x1f0 kernel/locking/lockdep.c:937
register_lock_class+0x20e/0x880 kernel/locking/lockdep.c:1250
__lock_acquire+0x160/0x7c60 kernel/locking/lockdep.c:4891
lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0xa4/0xf0 kernel/locking/spinlock.c:162
gsmld_write+0x57/0x120 drivers/tty/n_gsm.c:2983
do_tty_write drivers/tty/tty_io.c:1038 [inline]
file_tty_write+0x557/0x910 drivers/tty/tty_io.c:1110
do_iter_readv_writev+0x497/0x600 fs/read_write.c:-1
do_iter_write+0x205/0x7b0 fs/read_write.c:855
vfs_writev fs/read_write.c:928 [inline]
do_writev+0x254/0x410 fs/read_write.c:971
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f154a070749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff95c3b458 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00007f154a2c6fa0 RCX: 00007f154a070749
RDX: 0000000000000004 RSI: 0000200000000400 RDI: 0000000000000003
RBP: 00007f154a0f4f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f154a2c6fa0 R14: 00007f154a2c6fa0 R15: 0000000000000003
BUG: sleeping function called from invalid context at kernel/printk/printk.c:2555
in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 4354, name: syz.0.17
INFO: lockdep is turned off.
irq event stamp: 2126
hardirqs last enabled at (2125): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
hardirqs last enabled at (2125): [] _raw_spin_unlock_irqrestore+0x82/0x100 kernel/locking/spinlock.c:194
hardirqs last disabled at (2126): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline]
hardirqs last disabled at (2126): [] _raw_spin_lock_irqsave+0x7f/0xf0 kernel/locking/spinlock.c:162
softirqs last enabled at (0): [] copy_process+0x139d/0x3e00 kernel/fork.c:2235
softirqs last disabled at (0): [<0000000000000000>] 0x0
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 PID: 4354 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106
___might_sleep+0x47c/0x600 kernel/sched/core.c:9658
console_lock+0x18/0x70 kernel/printk/printk.c:2555
do_con_write+0xed/0x68d0 drivers/tty/vt/vt.c:2908
con_write+0x1f/0x40 drivers/tty/vt/vt.c:3295
gsmld_write+0xf4/0x120 drivers/tty/n_gsm.c:2986
do_tty_write drivers/tty/tty_io.c:1038 [inline]
file_tty_write+0x557/0x910 drivers/tty/tty_io.c:1110
do_iter_readv_writev+0x497/0x600 fs/read_write.c:-1
do_iter_write+0x205/0x7b0 fs/read_write.c:855
vfs_writev fs/read_write.c:928 [inline]
do_writev+0x254/0x410 fs/read_write.c:971
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f154a070749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff95c3b458 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00007f154a2c6fa0 RCX: 00007f154a070749
RDX: 0000000000000004 RSI: 0000200000000400 RDI: 0000000000000003
RBP: 00007f154a0f4f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f154a2c6fa0 R14: 00007f154a2c6fa0 R15: 0000000000000003