Warning: Permanently added '10.128.1.172' (ECDSA) to the list of known hosts. executing program [ 27.412795] BUG: sleeping function called from invalid context at drivers/tty/vt/vt.c:2245 [ 27.421338] in_atomic(): 1, irqs_disabled(): 1, pid: 7995, name: syz-executor424 [ 27.428864] 3 locks held by syz-executor424/7995: [ 27.433694] #0: (&tty->ldisc_sem){++++}, at: [] tty_ldisc_ref_wait+0x22/0x80 [ 27.442633] #1: (&tty->atomic_write_lock){+.+.}, at: [] tty_write+0x22d/0x740 [ 27.451656] #2: (&(&gsm->tx_lock)->rlock){....}, at: [] gsmld_write+0x5e/0x120 [ 27.460769] irq event stamp: 14024 [ 27.464312] hardirqs last enabled at (14023): [] do_syscall_64+0x4c/0x640 [ 27.472896] hardirqs last disabled at (14024): [] _raw_spin_lock_irqsave+0x66/0xc0 [ 27.482168] softirqs last enabled at (12104): [] __do_softirq+0x68b/0x9ff [ 27.490740] softirqs last disabled at (11975): [] irq_exit+0x193/0x240 [ 27.498958] Preemption disabled at: [ 27.498965] [< (null)>] (null) [ 27.507412] CPU: 1 PID: 7995 Comm: syz-executor424 Not tainted 4.14.301-syzkaller #0 [ 27.515282] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 27.524623] Call Trace: [ 27.527205] dump_stack+0x1b2/0x281 [ 27.530821] ___might_sleep.cold+0x235/0x250 [ 27.535211] do_con_write+0xd0/0x19b0 [ 27.538993] ? lock_acquire+0x170/0x3f0 [ 27.542943] ? tty_ldisc_ref_wait+0x22/0x80 [ 27.547246] ? __might_fault+0x104/0x1b0 [ 27.551302] ? do_con_trol+0x51e0/0x51e0 [ 27.555339] ? lock_acquire+0x170/0x3f0 [ 27.559311] ? gsmld_write+0x5e/0x120 [ 27.563085] con_write+0x21/0xa0 [ 27.566428] gsmld_write+0xbb/0x120 [ 27.570037] tty_write+0x410/0x740 [ 27.573553] ? gsmld_poll+0x1f0/0x1f0 [ 27.577335] __vfs_write+0xe4/0x630 [ 27.580935] ? tty_compat_ioctl+0x240/0x240 [ 27.585226] ? __handle_mm_fault+0x80f/0x4620 [ 27.589696] ? kernel_read+0x110/0x110 [ 27.593559] ? common_file_perm+0x3ee/0x580 [ 27.597857] ? security_file_permission+0x82/0x1e0 [ 27.602761] ? rw_verify_area+0xe1/0x2a0 [ 27.606797] vfs_write+0x17f/0x4d0 [ 27.610311] SyS_write+0xf2/0x210 [ 27.613737] ? SyS_read+0x210/0x210 [ 27.617338] ? do_syscall_64+0x4c/0x640 [ 27.621302] ? SyS_read+0x210/0x210 [ 27.624900] do_syscall_64+0x1d5/0x640 [ 27.628762] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 27.633924] RIP: 0033:0x7f664fcd72a9 [ 27.637606] RSP: 002b:00007fff834e2678 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 27.645287] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f664fcd72a9 [ 27.652530] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 [ 27.659774] RBP: 00007f664fc9b130 R08: 0000000000000000 R09: 0000000000000000 [ 27.667280] R10: 000000000000000e R11: 0000000000000246 R12: 00007f664fc9b1c0 [ 27.674524] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000