[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.250' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 39.301448] BUG: sleeping function called from invalid context at drivers/tty/vt/vt.c:2581 [ 39.309978] in_atomic(): 1, irqs_disabled(): 1, pid: 8129, name: syz-executor325 [ 39.317489] 3 locks held by syz-executor325/8129: [ 39.322341] #0: 00000000e1476003 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 [ 39.330837] #1: 0000000001cf809f (&(&tty->flow_lock)->rlock){....}, at: n_tty_ioctl_helper+0xcc/0x3a0 [ 39.340284] #2: 00000000e1476003 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref+0x1d/0x80 [ 39.348339] irq event stamp: 418 [ 39.351703] hardirqs last enabled at (417): [] do_syscall_64+0x21/0x620 [ 39.360090] hardirqs last disabled at (418): [] _raw_spin_lock_irq+0x35/0x80 [ 39.368820] softirqs last enabled at (0): [] copy_process.part.0+0x15b9/0x8260 [ 39.377804] softirqs last disabled at (0): [<0000000000000000>] (null) [ 39.385310] Preemption disabled at: [ 39.385314] [<0000000000000000>] (null) [ 39.393756] CPU: 1 PID: 8129 Comm: syz-executor325 Not tainted 4.19.188-syzkaller #0 [ 39.401612] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.410944] Call Trace: [ 39.413512] dump_stack+0x1fc/0x2ef [ 39.417119] ___might_sleep.cold+0x235/0x250 [ 39.421508] do_con_write+0x116/0x1d90 [ 39.425376] ? mark_held_locks+0xf0/0xf0 [ 39.429425] ? resched_curr+0xc9/0x320 [ 39.433307] ? try_to_wake_up+0x733/0x1050 [ 39.437523] ? n_hdlc_buf_get+0x1ab/0x240 [ 39.441650] ? do_con_trol+0x5970/0x5970 [ 39.445865] ? lock_downgrade+0x720/0x720 [ 39.450005] ? lock_acquire+0x170/0x3c0 [ 39.453971] ? n_hdlc_buf_get+0x22/0x240 [ 39.458021] ? trace_hardirqs_off+0x64/0x200 [ 39.462418] ? con_put_char+0xe0/0xe0 [ 39.466211] con_write+0x22/0xb0 [ 39.469583] ? con_put_char+0xe0/0xe0 [ 39.473429] n_hdlc_send_frames+0x278/0x470 [ 39.477741] n_hdlc_tty_wakeup+0xa0/0xc0 [ 39.481789] ? n_hdlc_tty_open+0x510/0x510 [ 39.486024] tty_wakeup+0xd4/0x110 [ 39.489561] ? lf+0x2b0/0x2b0 [ 39.492652] __start_tty+0x116/0x150 [ 39.496362] n_tty_ioctl_helper+0x348/0x3a0 [ 39.500677] n_hdlc_tty_ioctl+0x102/0x350 [ 39.504820] tty_ioctl+0x65d/0x15c0 [ 39.508456] ? n_hdlc_tty_wakeup+0xc0/0xc0 [ 39.512677] ? do_sys_open+0x2ba/0x520 [ 39.516545] ? tty_fasync+0x300/0x300 [ 39.520329] ? mark_held_locks+0xf0/0xf0 [ 39.524399] ? debug_check_no_obj_freed+0x201/0x490 [ 39.529397] ? lock_downgrade+0x720/0x720 [ 39.533524] ? lock_acquire+0x170/0x3c0 [ 39.537496] ? debug_check_no_obj_freed+0xb5/0x490 [ 39.542407] ? tty_fasync+0x300/0x300 [ 39.546190] do_vfs_ioctl+0xcdb/0x12e0 [ 39.550060] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 39.555145] ? debug_check_no_obj_freed+0x201/0x490 [ 39.560161] ? ioctl_preallocate+0x200/0x200 [ 39.564560] ? putname+0xe1/0x120 [ 39.567993] ? putname+0xe1/0x120 [ 39.571453] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 39.576460] ? kmem_cache_free+0x226/0x260 [ 39.580675] ? putname+0xe1/0x120 [ 39.584197] ? do_sys_open+0x2bf/0x520 [ 39.588080] ? filp_open+0x70/0x70 [ 39.591608] ksys_ioctl+0x9b/0xc0 [ 39.595070] __x64_sys_ioctl+0x6f/0xb0 [ 39.598954] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 39.603540] do_syscall_64+0xf9/0x620 [ 39.607329] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.612548] RIP: 0033:0x440009 [ 39.615724] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 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 [ 39.634624] RSP: 002b:00007fff0320fc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 39.642312] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 0000000000440009 executing program executing program executing program executing program executing program executing program executing program [ 39.649563] RDX: 0000000000000001 RSI: 000000000000540a RDI: 0000000000000005 [ 39.656812] RBP: 0000000000000000 R08: 000000000000000d R09: 0000000000000001 [ 39.664061] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000996e [ 39.671311] R13: 00007fff0320fc7c R14: 00007fff0320fc90 R15: 00007fff0320fc80 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 41.364690] BUG: sleeping function called from invalid context at drivers/tty/vt/vt.c:2581 [ 41.373116] in_atomic(): 1, irqs_disabled(): 1, pid: 8348, name: syz-executor325 [ 41.380653] 3 locks held by syz-executor325/8348: [ 41.385536] #0: 00000000e1476003 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 [ 41.394021] #1: 0000000001cf809f (&(&tty->flow_lock)->rlock){....}, at: n_tty_ioctl_helper+0xcc/0x3a0 [ 41.403474] #2: 00000000e1476003 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref+0x1d/0x80 [ 41.411524] irq event stamp: 430 [ 41.414914] hardirqs last enabled at (429): [] do_syscall_64+0x21/0x620 [ 41.423330] hardirqs last disabled at (430): [] _raw_spin_lock_irq+0x35/0x80 [ 41.432088] softirqs last enabled at (222): [] __do_softirq+0x678/0x980 [ 41.440489] softirqs last disabled at (195): [] irq_exit+0x215/0x260 [ 41.448719] Preemption disabled at: [ 41.448724] [<0000000000000000>] (null) [ 41.457186] CPU: 1 PID: 8348 Comm: syz-executor325 Tainted: G W 4.19.188-syzkaller #0 [ 41.466472] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.475827] Call Trace: [ 41.478425] dump_stack+0x1fc/0x2ef [ 41.482054] ___might_sleep.cold+0x235/0x250 [ 41.486451] do_con_write+0x116/0x1d90 [ 41.490359] ? mark_held_locks+0xf0/0xf0 [ 41.494404] ? resched_curr+0xc9/0x320 [ 41.498276] ? try_to_wake_up+0x733/0x1050 [ 41.502498] ? n_hdlc_buf_get+0x1ab/0x240 [ 41.506647] ? do_con_trol+0x5970/0x5970 [ 41.510708] ? lock_downgrade+0x720/0x720 [ 41.514846] ? lock_acquire+0x170/0x3c0 [ 41.518801] ? n_hdlc_buf_get+0x22/0x240 [ 41.522848] ? trace_hardirqs_off+0x64/0x200 [ 41.527260] ? con_put_char+0xe0/0xe0 [ 41.531043] con_write+0x22/0xb0 [ 41.534393] ? con_put_char+0xe0/0xe0 [ 41.538197] n_hdlc_send_frames+0x278/0x470 [ 41.542613] n_hdlc_tty_wakeup+0xa0/0xc0 [ 41.546660] ? n_hdlc_tty_open+0x510/0x510 [ 41.550877] tty_wakeup+0xd4/0x110 [ 41.554401] ? lf+0x2b0/0x2b0 [ 41.557511] __start_tty+0x116/0x150 [ 41.561208] n_tty_ioctl_helper+0x348/0x3a0 [ 41.565517] n_hdlc_tty_ioctl+0x102/0x350 [ 41.569650] tty_ioctl+0x65d/0x15c0 [ 41.573262] ? n_hdlc_tty_wakeup+0xc0/0xc0 [ 41.577489] ? do_sys_open+0x2ba/0x520 [ 41.581466] ? tty_fasync+0x300/0x300 [ 41.585260] ? mark_held_locks+0xf0/0xf0 [ 41.589313] ? mark_held_locks+0xf0/0xf0 [ 41.593364] ? debug_check_no_obj_freed+0x201/0x490 [ 41.598368] ? lock_downgrade+0x720/0x720 [ 41.602501] ? lock_acquire+0x170/0x3c0 [ 41.606458] ? debug_check_no_obj_freed+0xb5/0x490 [ 41.611373] ? tty_fasync+0x300/0x300 [ 41.615157] do_vfs_ioctl+0xcdb/0x12e0 [ 41.619033] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 41.624219] ? debug_check_no_obj_freed+0x201/0x490 [ 41.629228] ? ioctl_preallocate+0x200/0x200 [ 41.633641] ? putname+0xe1/0x120 [ 41.637092] ? putname+0xe1/0x120 [ 41.640529] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 41.645543] ? kmem_cache_free+0x226/0x260 [ 41.649768] ? putname+0xe1/0x120 [ 41.653226] ? do_sys_open+0x2bf/0x520 [ 41.657096] ? filp_open+0x70/0x70 [ 41.660620] ksys_ioctl+0x9b/0xc0 [ 41.664096] __x64_sys_ioctl+0x6f/0xb0 [ 41.668136] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 41.672726] do_syscall_64+0xf9/0x620 [ 41.676560] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.681747] RIP: 0033:0x440009 [ 41.684936] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 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 [ 41.703913] RSP: 002b:00007fff0320fc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 executing program executing program executing program executing program [ 41.711608] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 0000000000440009 [ 41.718883] RDX: 0000000000000001 RSI: 000000000000540a RDI: 0000000000000005 [ 41.726233] RBP: 0000000000000000 R08: 000000000000000d R09: 0000000000000001 [ 41.733495] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000a15e [ 41.740748] R13: 00007fff0320fc7c R14: 00007fff0320fc90 R15: 00007fff0320fc80 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 43.548832] BUG: sleeping function called from invalid context at drivers/tty/vt/vt.c:2581 [ 43.557361] in_atomic(): 1, irqs_disabled(): 1, pid: 8578, name: syz-executor325 [ 43.564892] 3 locks held by syz-executor325/8578: [ 43.569723] #0: 00000000e1476003 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 [ 43.578303] #1: 0000000001cf809f (&(&tty->flow_lock)->rlock){....}, at: n_tty_ioctl_helper+0xcc/0x3a0 [ 43.587765] #2: 00000000e1476003 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref+0x1d/0x80 [ 43.595820] irq event stamp: 470 [ 43.599178] hardirqs last enabled at (469): [] do_syscall_64+0x21/0x620 [ 43.607569] hardirqs last disabled at (470): [] _raw_spin_lock_irq+0x35/0x80 [ 43.617256] softirqs last enabled at (324): [] __do_softirq+0x678/0x980 [ 43.625657] softirqs last disabled at (295): [] irq_exit+0x215/0x260 [ 43.633779] Preemption disabled at: [ 43.633784] [<0000000000000000>] (null) [ 43.642755] CPU: 1 PID: 8578 Comm: syz-executor325 Tainted: G W 4.19.188-syzkaller #0 [ 43.652004] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.661367] Call Trace: [ 43.663948] dump_stack+0x1fc/0x2ef [ 43.667558] ___might_sleep.cold+0x235/0x250 [ 43.671950] do_con_write+0x116/0x1d90 [ 43.675869] ? mark_held_locks+0xf0/0xf0 [ 43.679911] ? update_curr+0x28d/0x870 [ 43.683781] ? try_to_wake_up+0x733/0x1050 [ 43.688025] ? n_hdlc_buf_get+0x1ab/0x240 [ 43.692153] ? do_con_trol+0x5970/0x5970 [ 43.696336] ? lock_downgrade+0x720/0x720 [ 43.700485] ? lock_acquire+0x170/0x3c0 [ 43.704447] ? n_hdlc_buf_get+0x22/0x240 [ 43.708498] ? trace_hardirqs_off+0x64/0x200 [ 43.712893] ? con_put_char+0xe0/0xe0 [ 43.716675] con_write+0x22/0xb0 [ 43.720022] ? con_put_char+0xe0/0xe0 [ 43.723805] n_hdlc_send_frames+0x278/0x470 [ 43.728205] n_hdlc_tty_wakeup+0xa0/0xc0 [ 43.732250] ? n_hdlc_tty_open+0x510/0x510 [ 43.736501] tty_wakeup+0xd4/0x110 [ 43.740104] ? lf+0x2b0/0x2b0 [ 43.743245] __start_tty+0x116/0x150 [ 43.747002] n_tty_ioctl_helper+0x348/0x3a0 [ 43.751322] n_hdlc_tty_ioctl+0x102/0x350 [ 43.755487] tty_ioctl+0x65d/0x15c0 [ 43.759097] ? n_hdlc_tty_wakeup+0xc0/0xc0 [ 43.763333] ? do_sys_open+0x2ba/0x520 [ 43.767202] ? tty_fasync+0x300/0x300 [ 43.770987] ? mark_held_locks+0xf0/0xf0 [ 43.775050] ? debug_check_no_obj_freed+0x201/0x490 [ 43.780081] ? lock_downgrade+0x720/0x720 [ 43.784225] ? lock_acquire+0x170/0x3c0 [ 43.788222] ? debug_check_no_obj_freed+0xb5/0x490 [ 43.793139] ? tty_fasync+0x300/0x300 [ 43.796923] do_vfs_ioctl+0xcdb/0x12e0 [ 43.800794] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 43.805877] ? debug_check_no_obj_freed+0x201/0x490 [ 43.810873] ? ioctl_preallocate+0x200/0x200 [ 43.815263] ? putname+0xe1/0x120 [ 43.818697] ? putname+0xe1/0x120 [ 43.822132] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 43.827147] ? kmem_cache_free+0x226/0x260 [ 43.831365] ? putname+0xe1/0x120 [ 43.834803] ? do_sys_open+0x2bf/0x520 [ 43.838677] ? filp_open+0x70/0x70 [ 43.842198] ksys_ioctl+0x9b/0xc0 [ 43.845634] __x64_sys_ioctl+0x6f/0xb0 [ 43.849505] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 43.854069] do_syscall_64+0xf9/0x620 [ 43.857907] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.863089] RIP: 0033:0x440009 [ 43.866270] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 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 [ 43.885326] RSP: 002b:00007fff0320fc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 43.893031] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 0000000000440009 executing program executing program executing program executing program executing program executing program [ 43.900297] RDX: 0000000000000001 RSI: 000000000000540a RDI: 0000000000000005 [ 43.907544] RBP: 0000000000000000 R08: 000000000000000d R09: 0000000000000001 [ 43.914795] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000a9c7 [ 43.922159] R13: 00007fff0320fc7c R14: 00007fff0320fc90 R15: 00007fff0320fc80 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.645544] BUG: sleeping function called from invalid context at drivers/tty/vt/vt.c:2581 [ 44.654056] in_atomic(): 1, irqs_disabled(): 1, pid: 8674, name: syz-executor325 [ 44.661580] 3 locks held by syz-executor325/8674: [ 44.666538] #0: 00000000e1476003 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 [ 44.675022] #1: 0000000001cf809f (&(&tty->flow_lock)->rlock){....}, at: n_tty_ioctl_helper+0xcc/0x3a0 [ 44.684453] #2: 00000000e1476003 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref+0x1d/0x80 [ 44.692511] irq event stamp: 378 [ 44.695861] hardirqs last enabled at (377): [] do_syscall_64+0x21/0x620 [ 44.704248] hardirqs last disabled at (378): [] _raw_spin_lock_irq+0x35/0x80 [ 44.712982] softirqs last enabled at (0): [] copy_process.part.0+0x15b9/0x8260 [ 44.722018] softirqs last disabled at (0): [<0000000000000000>] (null) [ 44.729527] Preemption disabled at: [ 44.729530] [<0000000000000000>] (null) [ 44.737967] CPU: 0 PID: 8674 Comm: syz-executor325 Tainted: G W 4.19.188-syzkaller #0 [ 44.747233] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.756579] Call Trace: [ 44.759153] dump_stack+0x1fc/0x2ef [ 44.762762] ___might_sleep.cold+0x235/0x250 [ 44.767153] do_con_write+0x116/0x1d90 [ 44.771044] ? mark_held_locks+0xf0/0xf0 [ 44.775086] ? resched_curr+0xc9/0x320 [ 44.778954] ? try_to_wake_up+0x733/0x1050 [ 44.783182] ? n_hdlc_buf_get+0x1ab/0x240 [ 44.787310] ? do_con_trol+0x5970/0x5970 [ 44.791368] ? lock_downgrade+0x720/0x720 [ 44.795494] ? lock_acquire+0x170/0x3c0 [ 44.799461] ? n_hdlc_buf_get+0x22/0x240 [ 44.803504] ? trace_hardirqs_off+0x64/0x200 [ 44.807893] ? con_put_char+0xe0/0xe0 [ 44.811674] con_write+0x22/0xb0 [ 44.815023] ? con_put_char+0xe0/0xe0 [ 44.818801] n_hdlc_send_frames+0x278/0x470 [ 44.823107] n_hdlc_tty_wakeup+0xa0/0xc0 [ 44.827148] ? n_hdlc_tty_open+0x510/0x510 [ 44.831361] tty_wakeup+0xd4/0x110 [ 44.834906] ? lf+0x2b0/0x2b0 [ 44.837992] __start_tty+0x116/0x150 [ 44.841700] n_tty_ioctl_helper+0x348/0x3a0 [ 44.846005] n_hdlc_tty_ioctl+0x102/0x350 [ 44.850133] tty_ioctl+0x65d/0x15c0 [ 44.853756] ? n_hdlc_tty_wakeup+0xc0/0xc0 [ 44.857989] ? do_sys_open+0x2ba/0x520 [ 44.861855] ? tty_fasync+0x300/0x300 [ 44.865650] ? mark_held_locks+0xf0/0xf0 [ 44.869694] ? debug_check_no_obj_freed+0x201/0x490 [ 44.874705] ? lock_downgrade+0x720/0x720 [ 44.878831] ? lock_acquire+0x170/0x3c0 [ 44.882799] ? debug_check_no_obj_freed+0xb5/0x490 [ 44.887727] ? tty_fasync+0x300/0x300 [ 44.891514] do_vfs_ioctl+0xcdb/0x12e0 [ 44.895427] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 44.900510] ? debug_check_no_obj_freed+0x201/0x490 [ 44.905508] ? ioctl_preallocate+0x200/0x200 [ 44.909919] ? putname+0xe1/0x120 [ 44.913372] ? putname+0xe1/0x120 [ 44.916818] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 44.921867] ? kmem_cache_free+0x226/0x260 [ 44.926086] ? putname+0xe1/0x120 [ 44.929522] ? do_sys_open+0x2bf/0x520 [ 44.933392] ? filp_open+0x70/0x70 [ 44.936922] ksys_ioctl+0x9b/0xc0 [ 44.940361] __x64_sys_ioctl+0x6f/0xb0 [ 44.944258] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 44.948822] do_syscall_64+0xf9/0x620 [ 44.952609] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.957782] RIP: 0033:0x440009 [ 44.960956] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 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 [ 44.979843] RSP: 002b:00007fff0320fc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 44.987530] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 0000000000440009 executing program executing program executing program executing program executing program executing program executing program [ 44.994779] RDX: 0000000000000001 RSI: 000000000000540a RDI: 0000000000000005 [ 45.002029] RBP: 0000000000000000 R08: 000000000000000d R09: 0000000000000001 [ 45.009292] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000ae38 [ 45.016548] R13: 00007fff0320fc7c R14: 00007fff0320fc90 R15: 00007fff0320fc80 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 47.343601] BUG: sleeping function called from invalid context at drivers/tty/vt/vt.c:2581 [ 47.352124] in_atomic(): 1, irqs_disabled(): 1, pid: 8969, name: syz-executor325 [ 47.361449] 3 locks held by syz-executor325/8969: [ 47.366272] #0: 00000000e1476003 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 [ 47.374757] #1: 0000000001cf809f (&(&tty->flow_lock)->rlock){....}, at: n_tty_ioctl_helper+0xcc/0x3a0 [ 47.384196] #2: 00000000e1476003 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref+0x1d/0x80 [ 47.392240] irq event stamp: 652 [ 47.395602] hardirqs last enabled at (651): [] do_syscall_64+0x21/0x620 [ 47.403986] hardirqs last disabled at (652): [] _raw_spin_lock_irq+0x35/0x80 [ 47.412717] softirqs last enabled at (602): [] __do_softirq+0x678/0x980 [ 47.421102] softirqs last disabled at (433): [] irq_exit+0x215/0x260 [ 47.429143] Preemption disabled at: [ 47.429147] [<0000000000000000>] (null) [ 47.437870] CPU: 0 PID: 8969 Comm: syz-executor325 Tainted: G W 4.19.188-syzkaller #0 [ 47.447115] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.456448] Call Trace: [ 47.459033] dump_stack+0x1fc/0x2ef [ 47.462644] ___might_sleep.cold+0x235/0x250 [ 47.467051] do_con_write+0x116/0x1d90 [ 47.470953] ? mark_held_locks+0xf0/0xf0 [ 47.475003] ? resched_curr+0xc9/0x320 [ 47.478890] ? try_to_wake_up+0x733/0x1050 [ 47.483112] ? n_hdlc_buf_get+0x1ab/0x240 [ 47.487259] ? do_con_trol+0x5970/0x5970 [ 47.491333] ? lock_downgrade+0x720/0x720 [ 47.495466] ? lock_acquire+0x170/0x3c0 [ 47.499424] ? n_hdlc_buf_get+0x22/0x240 [ 47.503490] ? trace_hardirqs_off+0x64/0x200 [ 47.507881] ? con_put_char+0xe0/0xe0 [ 47.511682] con_write+0x22/0xb0 [ 47.515031] ? con_put_char+0xe0/0xe0 [ 47.518835] n_hdlc_send_frames+0x278/0x470 [ 47.523159] n_hdlc_tty_wakeup+0xa0/0xc0 [ 47.527219] ? n_hdlc_tty_open+0x510/0x510 [ 47.531450] tty_wakeup+0xd4/0x110 [ 47.534989] ? lf+0x2b0/0x2b0 [ 47.538073] __start_tty+0x116/0x150 [ 47.541768] n_tty_ioctl_helper+0x348/0x3a0 [ 47.546073] n_hdlc_tty_ioctl+0x102/0x350 [ 47.550220] tty_ioctl+0x65d/0x15c0 [ 47.553827] ? n_hdlc_tty_wakeup+0xc0/0xc0 [ 47.558056] ? do_sys_open+0x2ba/0x520 [ 47.561941] ? tty_fasync+0x300/0x300 [ 47.565730] ? mark_held_locks+0xf0/0xf0 [ 47.569775] ? debug_check_no_obj_freed+0x201/0x490 [ 47.574900] ? lock_downgrade+0x720/0x720 [ 47.579027] ? lock_acquire+0x170/0x3c0 [ 47.583011] ? debug_check_no_obj_freed+0xb5/0x490 [ 47.587925] ? tty_fasync+0x300/0x300 [ 47.591714] do_vfs_ioctl+0xcdb/0x12e0 [ 47.595613] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 47.600735] ? debug_check_no_obj_freed+0x201/0x490 [ 47.605737] ? ioctl_preallocate+0x200/0x200 [ 47.610146] ? putname+0xe1/0x120 [ 47.613584] ? putname+0xe1/0x120 [ 47.617020] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 47.622020] ? kmem_cache_free+0x226/0x260 [ 47.626255] ? putname+0xe1/0x120 [ 47.629708] ? do_sys_open+0x2bf/0x520 [ 47.633579] ? filp_open+0x70/0x70 [ 47.641901] ksys_ioctl+0x9b/0xc0 [ 47.645514] __x64_sys_ioctl+0x6f/0xb0 [ 47.649383] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 47.653954] do_syscall_64+0xf9/0x620 [ 47.657736] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.662915] RIP: 0033:0x440009 [ 47.666090] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 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 [ 47.684976] RSP: 002b:00007fff0320fc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 executing program executing program executing program executing program executing program executing program [ 47.692667] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 0000000000440009 [ 47.699963] RDX: 0000000000000001 RSI: 000000000000540a RDI: 0000000000000005 [ 47.707224] RBP: 0000000000000000 R08: 000000000000000d R09: 0000000000000001 [ 47.714474] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000b896 [ 47.721776] R13: 00007fff0320fc7c R14: 00007fff0320fc90 R15: 00007fff0320fc80 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program