Warning: Permanently added '10.128.1.92' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 26.898500] BUG: sleeping function called from invalid context at drivers/tty/vt/vt.c:2245 [ 26.906984] in_atomic(): 1, irqs_disabled(): 1, pid: 7980, name: syz-executor189 [ 26.914493] 3 locks held by syz-executor189/7980: [ 26.919308] #0: (&tty->ldisc_sem){++++}, at: [] tty_ldisc_ref_wait+0x22/0x80 [ 26.928221] #1: (&(&tty->flow_lock)->rlock){....}, at: [] n_tty_ioctl_helper+0xa0/0x350 [ 26.938199] #2: (&tty->ldisc_sem){++++}, at: [] tty_ldisc_ref+0x1b/0x80 [ 26.946672] irq event stamp: 8080 [ 26.950110] hardirqs last enabled at (8079): [] do_syscall_64+0x4c/0x640 [ 26.958575] hardirqs last disabled at (8080): [] _raw_spin_lock_irq+0x35/0x80 [ 26.967388] softirqs last enabled at (5518): [] __do_softirq+0x68b/0x9ff [ 26.975864] softirqs last disabled at (5491): [] irq_exit+0x193/0x240 [ 26.983980] Preemption disabled at: [ 26.983985] [< (null)>] (null) [ 26.992408] CPU: 1 PID: 7980 Comm: syz-executor189 Not tainted 4.14.299-syzkaller #0 [ 27.000260] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 27.009589] Call Trace: [ 27.012161] dump_stack+0x1b2/0x281 [ 27.015765] ___might_sleep.cold+0x235/0x250 [ 27.020150] do_con_write+0xd0/0x19b0 [ 27.023928] ? resched_curr+0xc7/0x360 [ 27.027791] ? n_hdlc_buf_get+0x194/0x220 [ 27.031913] ? lock_acquire+0x170/0x3f0 [ 27.035860] ? lock_downgrade+0x740/0x740 [ 27.039988] ? do_con_trol+0x51e0/0x51e0 [ 27.044040] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 27.049119] con_write+0x21/0xa0 [ 27.052573] ? con_put_char+0xa0/0xa0 [ 27.056350] n_hdlc_send_frames+0x241/0x410 [ 27.060653] n_hdlc_tty_wakeup+0x95/0xb0 [ 27.064691] ? n_hdlc_tty_open+0x4d0/0x4d0 [ 27.068904] tty_wakeup+0xc3/0xf0 [ 27.072332] ? insert_char+0x280/0x280 [ 27.076191] __start_tty+0x10b/0x140 [ 27.079881] n_tty_ioctl_helper+0x2f8/0x350 [ 27.084181] n_hdlc_tty_ioctl+0xd4/0x300 [ 27.088221] tty_ioctl+0x5af/0x1430 [ 27.091834] ? n_hdlc_tty_wakeup+0xb0/0xb0 [ 27.096106] ? tty_fasync+0x2c0/0x2c0 [ 27.099884] ? lock_acquire+0x170/0x3f0 [ 27.103831] ? lock_downgrade+0x740/0x740 [ 27.107955] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 27.113053] ? debug_check_no_obj_freed+0x2c0/0x680 [ 27.118048] ? tty_fasync+0x2c0/0x2c0 [ 27.121825] do_vfs_ioctl+0x75a/0xff0 [ 27.125624] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 27.131049] ? ioctl_preallocate+0x1a0/0x1a0 [ 27.135444] ? kmem_cache_free+0x23a/0x2b0 [ 27.139660] ? putname+0xcd/0x110 [ 27.143964] ? do_sys_open+0x208/0x410 [ 27.147831] ? filp