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: 1 PID: 18722 Comm: syz-executor.0 Not tainted 6.0.0-rc3-syzkaller-16800-g85413d1e802e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call trace: dump_backtrace+0x1b0/0x1dc arch/arm64/kernel/stacktrace.c:182 show_stack+0x2c/0x64 arch/arm64/kernel/stacktrace.c:189 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x104/0x16c lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 assign_lock_key+0x134/0x140 kernel/locking/lockdep.c:979 register_lock_class+0xc4/0x2f8 kernel/locking/lockdep.c:1292 __lock_acquire+0xa8/0x30a4 kernel/locking/lockdep.c:4932 lock_acquire+0x100/0x1f8 kernel/locking/lockdep.c:5666 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x6c/0xb4 kernel/locking/spinlock.c:162 gsmld_write+0x3c/0xe4 drivers/tty/n_gsm.c:3023 do_tty_write drivers/tty/tty_io.c:1024 [inline] file_tty_write+0x29c/0x484 drivers/tty/tty_io.c:1095 tty_write+0x2c/0x3c drivers/tty/tty_io.c:1116 do_iter_write+0x318/0x560 fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_writev+0x12c/0x234 fs/read_write.c:971 __do_sys_writev fs/read_write.c:1044 [inline] __se_sys_writev fs/read_write.c:1041 [inline] __arm64_sys_writev+0x28/0x38 fs/read_write.c:1041 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x154 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:624 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:642 el0t_64_sync+0x18c/0x190 BUG: sleeping function called from invalid context at kernel/printk/printk.c:2566 in_atomic(): 1, irqs_disabled(): 128, non_block: 0, pid: 18722, name: syz-executor.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. irq event stamp: 250 hardirqs last enabled at (249): [] local_daif_restore arch/arm64/include/asm/daifflags.h:75 [inline] hardirqs last enabled at (249): [] el0_svc_common+0x40/0x220 arch/arm64/kernel/syscall.c:107 hardirqs last disabled at (250): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (250): [] _raw_spin_lock_irqsave+0xa4/0xb4 kernel/locking/spinlock.c:162 softirqs last enabled at (200): [] ppp_unbridge_channels+0xec/0x2a4 drivers/net/ppp/ppp_generic.c:670 softirqs last disabled at (198): [] ppp_unbridge_channels+0x28/0x2a4 drivers/net/ppp/ppp_generic.c:667 Preemption disabled at: [] gsmld_write+0x3c/0xe4 drivers/tty/n_gsm.c:3023 CPU: 1 PID: 18722 Comm: syz-executor.0 Not tainted 6.0.0-rc3-syzkaller-16800-g85413d1e802e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call trace: dump_backtrace+0x1b0/0x1dc arch/arm64/kernel/stacktrace.c:182 show_stack+0x2c/0x64 arch/arm64/kernel/stacktrace.c:189 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x104/0x16c lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 __might_resched+0x208/0x218 kernel/sched/core.c:9892 __might_sleep+0x48/0x78 kernel/sched/core.c:9821 console_lock+0x28/0xb8 kernel/printk/printk.c:2566 do_con_write+0x84/0xddc drivers/tty/vt/vt.c:2908 con_write+0x34/0xb0 drivers/tty/vt/vt.c:3295 gsmld_write+0xa4/0xe4 drivers/tty/n_gsm.c:3026 do_tty_write drivers/tty/tty_io.c:1024 [inline] file_tty_write+0x29c/0x484 drivers/tty/tty_io.c:1095 tty_write+0x2c/0x3c drivers/tty/tty_io.c:1116 do_iter_write+0x318/0x560 fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_writev+0x12c/0x234 fs/read_write.c:971 __do_sys_writev fs/read_write.c:1044 [inline] __se_sys_writev fs/read_write.c:1041 [inline] __arm64_sys_writev+0x28/0x38 fs/read_write.c:1041 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x154 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:624 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:642 el0t_64_sync+0x18c/0x190