Warning: Permanently added '10.128.0.200' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 51.263926][ T8453] IPVS: ftp: loaded support on port[0] = 21 [ 51.312703][ T8453] ttyprintk ttyprintk: tty_port_close_start: tty->count = 1 port count = 2 [ 51.322639][ C0] [ 51.322649][ C0] ====================================================== [ 51.322652][ C0] WARNING: possible circular locking dependency detected [ 51.322654][ C0] 5.11.0-rc3-syzkaller #0 Not tainted [ 51.322657][ C0] ------------------------------------------------------ [ 51.322660][ C0] syz-executor278/8453 is trying to acquire lock: [ 51.322662][ C0] ffffffff8c305fe0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x2d/0x60 [ 51.322674][ C0] [ 51.322676][ C0] but task is already holding lock: [ 51.322678][ C0] ffffffff9045eff8 (&port->lock){-.-.}-{2:2}, at: tty_port_close_start+0x58/0x550 [ 51.322687][ C0] [ 51.322689][ C0] which lock already depends on the new lock. [ 51.322691][ C0] [ 51.322692][ C0] [ 51.322694][ C0] the existing dependency chain (in reverse order) is: [ 51.322696][ C0] [ 51.322698][ C0] -> #2 (&port->lock){-.-.}-{2:2}: [ 51.322706][ C0] lock_acquire+0x174/0x6c0 [ 51.322710][ C0] _raw_spin_lock_irqsave+0xb3/0x100 [ 51.322712][ C0] tty_port_tty_get+0x21/0xe0 [ 51.322715][ C0] tty_port_default_wakeup+0x11/0x40 [ 51.322717][ C0] serial8250_tx_chars+0x5ea/0x800 [ 51.322719][ C0] serial8250_handle_irq+0x2fd/0x3e0 [ 51.322722][ C0] serial8250_default_handle_irq+0xaf/0x190 [ 51.322724][ C0] serial8250_interrupt+0xa3/0x1e0 [ 51.322726][ C0] __handle_irq_event_percpu+0x20a/0x6d0 [ 51.322728][ C0] handle_irq_event+0x10a/0x2f0 [ 51.322730][ C0] handle_edge_irq+0x245/0xbe0 [ 51.322732][ C0] asm_call_irq_on_stack+0xf/0x20 [ 51.322734][ C0] common_interrupt+0x147/0x230 [ 51.322737][ C0] asm_common_interrupt+0x1e/0x40 [ 51.322739][ C0] acpi_idle_enter+0x430/0x780 [ 51.322741][ C0] cpuidle_enter_state+0x509/0xe60 [ 51.322743][ C0] cpuidle_enter+0x59/0x90 [ 51.322745][ C0] do_idle+0x3ae/0x600 [ 51.322747][ C0] cpu_startup_entry+0x15/0x20 [ 51.322749][ C0] start_kernel+0x494/0x53a [ 51.322751][ C0] secondary_startup_64_no_verify+0xb0/0xbb [ 51.322753][ C0] [ 51.322754][ C0] -> #1 (&port_lock_key){-.-.}-{2:2}: [ 51.322762][ C0] lock_acquire+0x174/0x6c0 [ 51.322764][ C0] _raw_spin_lock_irqsave+0xb3/0x100 [ 51.322767][ C0] serial8250_console_write+0x173/0xe00 [ 51.322769][ C0] console_unlock+0xc84/0x1120 [ 51.322771][ C0] vprintk_emit+0x1b2/0x270 [ 51.322773][ C0] printk+0xc0/0x103 [ 51.322775][ C0] register_console+0x832/0xb30 [ 51.322777][ C0] univ8250_console_init+0x41/0x43 [ 51.322779][ C0] console_init+0x52/0x97 [ 51.322781][ C0] start_kernel+0x302/0x53a [ 51.322783][ C0] secondary_startup_64_no_verify+0xb0/0xbb [ 51.322785][ C0] [ 51.322786][ C0] -> #0 (console_owner){....}-{0:0}: [ 51.322794][ C0] check_prevs_add+0x53a/0x5600 [ 51.322796][ C0] __lock_acquire+0x428c/0x5e40 [ 51.322805][ C0] lock_acquire+0x174/0x6c0 [ 51.322807][ C0] console_lock_spinning_enable+0x52/0x60 [ 51.322809][ C0] console_unlock+0x9cd/0x1120 [ 51.322811][ C0] vprintk_emit+0x1b2/0x270 [ 51.322813][ C0] printk+0xc0/0x103 [ 51.322902][ C0] tty_port_close_start+0x3c8/0x550 [ 51.322904][ C0] tty_port_close+0x26/0x140 [ 51.322906][ C0] tty_release+0x30c/0xef0 [ 51.322908][ C0] __fput+0x34d/0x7a0 [ 51.322910][ C0] task_work_run+0x137/0x1c0 [ 51.322912][ C0] exit_to_user_mode_prepare+0x10b/0x1e0 [ 51.322914][ C0] syscall_exit_to_user_mode+0x48/0x190 [ 51.322916][ C0] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 51.322918][ C0] [ 51.322920][ C0] other info that might help us debug this: [ 51.322922][ C0] [ 51.322923][ C0] Chain exists of: [ 51.322925][ C0] console_owner --> &port_lock_key --> &port->lock [ 51.322936][ C0] [ 51.322937][ C0] Possible unsafe locking scenario: [ 51.322939][ C0] [ 51.322941][ C0] CPU0 CPU1 [ 51.322943][ C0] ---- ---- [ 51.322945][ C0] lock(&port->lock); [ 51.322950][ C0] lock(&port_lock_key); [ 51.322955][ C0] lock(&port->lock); [ 51.322960][ C0] lock(console_owner); [ 51.322964][ C0] [ 51.322966][ C0] *** DEADLOCK *** [ 51.322967][ C0] [ 51.322969][ C0] 3 locks held by syz-executor278/8453: [ 51.322971][ C0] #0: ffff8881440061c0 (&tty->legacy_mutex){+.+.}-{3:3}, at: tty_release+0xac/0xef0 [ 51.322982][ C0] #1: ffffffff9045eff8 (&port->lock){-.-.}-{2:2}, at: tty_port_close_start+0x58/0x550 [ 51.322992][ C0] #2: ffffffff8c1edd00 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x199/0x270 [ 51.323002][ C0] [ 51.323004][ C0] stack backtrace: [ 51.323006][ C0] CPU: 0 PID: 8453 Comm: syz-executor278 Not tainted 5.11.0-rc3-syzkaller #0 [ 51.323009][ C0] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 51.323011][ C0] Call Trace: [ 51.323013][ C0] dump_stack+0x183/0x22e [ 51.323015][ C0] ? log_buf_vmcoreinfo_setup+0x45d/0x45d [ 51.323017][ C0] ? show_regs_print_info+0x12/0x12 [ 51.323019][ C0] ? save_trace+0x5a/0x9f0 [ 51.323021][ C0] print_circular_bug+0xb17/0xdc0 [ 51.323023][ C0] ? hlock_conflict+0x1f0/0x1f0 [ 51.323025][ C0] ? __bfs+0x333/0x6c0 [ 51.323027][ C0] ? check_path+0x40/0x40 [ 51.323028][ C0] ? noop_count+0x30/0x30 [ 51.323030][ C0] ? arch_stack_walk+0x98/0xe0 [ 51.323032][ C0] ? save_trace+0x5a/0x9f0 [ 51.323034][ C0] check_noncircular+0x2cc/0x390 [ 51.323036][ C0] ? add_chain_block+0x850/0x850 [ 51.323038][ C0] ? __bfs+0x333/0x6c0 [ 51.323040][ C0] ? find_first_zero_bit+0xe1/0x100 [ 51.323042][ C0] ? add_lock_to_list+0x1c7/0x2d0 [ 51.323044][ C0] check_prevs_add+0x53a/0x5600 [ 51.323046][ C0] ? reacquire_held_locks+0x5f0/0x5f0 [ 51.323048][ C0] ? __lock_acquire+0x5e40/0x5e40 [ 51.323050][ C0] ? reacquire_held_locks+0x5f0/0x5f0 [ 51.323052][ C0] ? do_raw_spin_unlock+0x134/0x8a0 [ 51.323054][ C0] ? mark_lock+0x1ac/0x1f70 [ 51.323056][ C0] ? mark_lock+0x1ac/0x1f70 [ 51.323058][ C0] ? __bfs+0x6c0/0x6c0 [ 51.323060][ C0] ? __bfs+0x6c0/0x6c0 [ 51.323062][ C0] ? __lock_acquire+0x144e/0x5e40 [ 51.323063][ C0] ? mark_lock+0x1ac/0x1f70 [ 51.323065][ C0] ? mark_lock+0x1ac/0x1f70 [ 51.323067][ C0] ? __bfs+0x6c0/0x6c0 [ 51.323069][ C0] ? __bfs+0x6c0/0x6c0 [ 51.323071][ C0] ? mark_lock+0x1ac/0x1f70 [ 51.323072][ C0] ? __bfs+0x6c0/0x6c0 [ 51.323074][ C0] ? mark_lock+0x1ac/0x1f70 [ 51.323076][ C0] ? __bfs+0x6c0/0x6c0 [ 51.323078][ C0] ? mark_lock+0x1ac/0x1f70 [ 51.323080][ C0] ? lockdep_lock+0x102/0x2c0 [ 51.323082][ C0] ? lockdep_count_forward_deps+0x200/0x200 [ 51.323084][ C0] ? lockdep_unlock+0x145/0x2e0 [ 51.323086][ C0] ? lockdep_lock+0x2c0/0x2c0 [ 51.323087][ C0] ? lockdep_lock+0x102/0x2c0 [ 51.323089][ C0] __lock_acquire+0x428c/0x5e40 [ 51.323091][ C0] ? lockdep_lock+0x2c0/0x2c0 [ 51.323093][ C0] ? trace_lock_acquire+0x180/0x180 [ 51.323095][ C0] ? number+0xbdc/0x1060 [ 51.323097][ C0] ? skip_atoi+0xb5/0xd0 [ 51.323099][ C0] ? format_decode+0x441/0x1ab0 [ 51.323101][ C0] ? vsnprintf+0x1d60/0x1d60 [ 51.323104][ C0] ? memset+0x1f/0x40 [ 51.323106][ C0] ? vsnprintf+0x1e4/0x1d60 [ 51.323108][ C0] ? rcu_read_lock_sched_held+0x87/0x110 [ 51.323110][ C0] ? __bpf_trace_rcu_utilization+0x10/0x10 [ 51.323112][ C0] ? rcu_read_lock_sched_held+0x87/0x110 [ 51.323114][ C0] lock_acquire+0x174/0x6c0 [ 51.323116][ C0] ? console_lock_spinning_enable+0x2d/0x60 [ 51.323118][ C0] ? read_lock_is_recursive+0x10/0x10 [ 51.323120][ C0] ? console_lock_spinning_enable+0x2d/0x60 [ 51.323122][ C0] ? __lock_acquire+0x5e40/0x5e40 [ 51.323124][ C0] console_lock_spinning_enable+0x52/0x60 [ 51.323126][ C0] ? console_lock_spinning_enable+0x2d/0x60 [ 51.323128][ C0] console_unlock+0x9cd/0x1120 [ 51.323130][ C0] ? down_trylock+0x51/0x90 [ 51.323132][ C0] ? console_trylock_spinning+0x2c0/0x2c0 [ 51.323134][ C0] ? __down_trylock_console_sem+0x13d/0x180 [ 51.323137][ C0] ? vprintk_emit+0x199/0x270 [ 51.323139][ C0] ? vprintk_emit+0x199/0x270 [ 51.323141][ C0] ? console_trylock_spinning+0x1e5/0x2c0 [ 51.323143][ C0] ? vprintk_emit+0x270/0x270 [ 51.323145][ C0] vprintk_emit+0x1b2/0x270 [ 51.323146][ C0] ? vprintk_store+0xf30/0xf30 [ 51.323148][ C0] ? do_raw_spin_lock+0x151/0x8e0 [ 51.323150][ C0] printk+0xc0/0x103 [ 51.323152][ C0] ? log_buf_vmcoreinfo_setup+0x45d/0x45d [ 51.323154][ C0] ? _raw_spin_lock_irqsave+0xbf/0x100 [ 51.323156][ C0] tty_port_close_start+0x3c8/0x550 [ 51.323158][ C0] ? tpk_open+0x60/0x60 [ 51.323160][ C0] tty_port_close+0x26/0x140 [ 51.323162][ C0] ? tpk_open+0x60/0x60 [ 51.323164][ C0] tty_release+0x30c/0xef0 [ 51.323165][ C0] ? lockdep_hardirqs_on_prepare+0x3e2/0x750 [ 51.323168][ C0] ? ima_file_free+0xe8/0x3b0 [ 51.323169][ C0] ? __lock_acquire+0x5e40/0x5e40 [ 51.323171][ C0] ? tty_release_struct+0xd0/0xd0 [ 51.323173][ C0] __fput+0x34d/0x7a0 [ 51.323175][ C0] task_work_run+0x137/0x1c0 [ 51.323177][ C0] exit_to_user_mode_prepare+0x10b/0x1e0 [ 51.323179][ C0] ? trace_irq_disable_rcuidle+0x11/0x170 [ 51.323181][ C0] syscall_exit_to_user_mode+0x48/0x190 [ 51.323183][ C0] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 51.323185][ C0] RIP: 0033:0x405691 [ 51.323188][ C0] Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 04 19 00 00 c3 48 83 ec 08 e8 6a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 b3 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 [ 51.323193][ C0] RSP: 002b:00007fffc7b816b0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 [ 51.323197][ C0] RAX: 0000000000000000 RBX: 00007fffc7b816e0 RCX: 0000000000405691 [ 51.323200][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 [ 51.323203][ C0] RBP: 0000000000000004 R08: 0000000000000000 R09: