Warning: Permanently added '10.128.0.27' (ECDSA) to the list of known hosts. executing program [ 34.563666] BUG: sleeping function called from invalid context at drivers/tty/vt/vt.c:2599 [ 34.572457] in_atomic(): 1, irqs_disabled(): 1, pid: 8128, name: syz-executor568 [ 34.580000] 3 locks held by syz-executor568/8128: [ 34.584843] #0: 00000000910a3338 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 [ 34.593360] #1: 000000002e1d9a5d (&(&tty->flow_lock)->rlock){....}, at: n_tty_ioctl_helper+0xcc/0x3a0 [ 34.602835] #2: 00000000910a3338 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref+0x1d/0x80 [ 34.610920] irq event stamp: 6958 [ 34.614418] hardirqs last enabled at (6957): [] _raw_spin_unlock_irqrestore+0x79/0xe0 [ 34.624022] hardirqs last disabled at (6958): [] _raw_spin_lock_irq+0x35/0x80 [ 34.632845] softirqs last enabled at (5650): [] __do_softirq+0x678/0x980 [ 34.641331] softirqs last disabled at (5619): [] irq_exit+0x215/0x260 [ 34.649537] Preemption disabled at: [ 34.649542] [<0000000000000000>] (null) [ 34.657985] CPU: 0 PID: 8128 Comm: syz-executor568 Not tainted 4.19.211-syzkaller #0 [ 34.665851] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 [ 34.675294] Call Trace: [ 34.677877] dump_stack+0x1fc/0x2ef [ 34.681516] ___might_sleep.cold+0x235/0x250 [ 34.685910] do_con_write+0x116/0x1d90 [ 34.689897] ? mark_held_locks+0xf0/0xf0 [ 34.693981] ? try_to_wake_up+0x733/0x1050 [ 34.698218] ? n_hdlc_buf_get+0x1ab/0x240 [ 34.702382] ? do_con_trol+0x5970/0x5970 [ 34.706436] ? lock_downgrade+0x720/0x720 [ 34.710589] ? lock_acquire+0x170/0x3c0 [ 34.714583] ? n_hdlc_buf_get+0x22/0x240 [ 34.718724] ? trace_hardirqs_off+0x64/0x200 [ 34.723120] ? con_put_char+0xe0/0xe0 [ 34.726903] con_write+0x22/0xb0 [ 34.730284] ? con_put_char+0xe0/0xe0 [ 34.734072] n_hdlc_send_frames+0x278/0x470 [ 34.738387] n_hdlc_tty_wakeup+0xa0/0xc0 [ 34.742455] ? n_hdlc_tty_open+0x510/0x510 [ 34.746694] tty_wakeup+0xd4/0x110 [ 34.750220] ? lf+0x2b0/0x2b0 [ 34.753315] __start_tty+0x116/0x150 [ 34.757113] n_tty_ioctl_helper+0x348/0x3a0 [ 34.761620] n_hdlc_tty_ioctl+0x102/0x350 [ 34.765774] tty_ioctl+0x65d/0x1630 [ 34.769407] ? n_hdlc_tty_wakeup+0xc0/0xc0 [ 34.773632] ? tty_fasync+0x300/0x300 [ 34.777428] ? ldsem_up_read+0x45/0x80 [ 34.781301] ? tty_write+0x561/0x810 [ 34.785020] ? n_hdlc_tty_poll+0x360/0x360 [ 34.789248] ? __vfs_write+0xff/0x770 [ 34.793033] ? tty_compat_ioctl+0x270/0x270 [ 34.797362] ? common_file_perm+0x4e5/0x850 [ 34.801667] ? tty_fasync+0x300/0x300 [ 34.805471] do_vfs_ioctl+0xcdb/0x12e0 [ 34.809372] ? ioctl_preallocate+0x200/0x200 [ 34.813785] ? fsnotify_first_mark+0x200/0x200 [ 34.818356] ? security_file_permission+0x1c0/0x220 [ 34.823359] ? vfs_write+0x393/0x540 [ 34.827069] ? ksys_write+0x1c8/0x2a0 [ 34.830883] ksys_ioctl+0x9b/0xc0 [ 34.834323] __x64_sys_ioctl+0x6f/0xb0 [ 34.838197] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 34.842767] do_syscall_64+0xf9/0x620 [ 34.846555] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.851727] RIP: 0033:0x7f24e959e2e9 [ 34.855426] 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 [ 34.874310] RSP: 002b:00007ffdd83e81c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 34.882001] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f24e959e2e9 [ 34.889255] RDX: 0000000000000001 RSI: 000000000000540a RDI: 0000000000000003 [ 34.896511] RBP: 00007f24e9562170 R08: 0000000000000000 R09: 0000000000000000 [ 34.903765] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f24e9562200 [ 34.911018] R13: 0000000000000000 R14: 0000000000