Warning: Permanently added '10.128.1.8' (ECDSA) to the list of known hosts. [ 36.171840] IPVS: ftp: loaded support on port[0] = 21 executing program [ 36.233937] FAULT_INJECTION: forcing a failure. [ 36.233937] name failslab, interval 1, probability 0, space 0, times 1 [ 36.245984] CPU: 1 PID: 8094 Comm: syz-executor358 Not tainted 4.19.211-syzkaller #0 [ 36.253846] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 36.263175] Call Trace: [ 36.265744] dump_stack+0x1fc/0x2ef [ 36.269348] should_fail.cold+0xa/0xf [ 36.273142] ? setup_fault_attr+0x200/0x200 [ 36.277443] ? mark_held_locks+0xf0/0xf0 [ 36.281483] ? mark_held_locks+0xf0/0xf0 [ 36.285521] __should_failslab+0x115/0x180 [ 36.289739] should_failslab+0x5/0x10 [ 36.293520] __kmalloc+0x6d/0x3c0 [ 36.296951] ? tty_buffer_alloc+0x23f/0x2a0 [ 36.301250] tty_buffer_alloc+0x23f/0x2a0 [ 36.305377] __tty_buffer_request_room+0x156/0x2a0 [ 36.310287] tty_insert_flip_string_fixed_flag+0x93/0x250 [ 36.315802] ? do_raw_spin_lock+0xcb/0x220 [ 36.320017] pty_write+0x126/0x1f0 [ 36.323534] tty_put_char+0x122/0x150 [ 36.327314] ? dev_match_devt+0x90/0x90 [ 36.331271] ? tty_buffer_space_avail+0x7e/0xb0 [ 36.335924] ? pty_write_room+0xbe/0xe0 [ 36.339879] ? ptmx_open+0x350/0x350 [ 36.343582] __process_echoes+0x577/0x9f0 [ 36.347710] n_tty_receive_buf_common+0xc0c/0x2a90 [ 36.352619] ? n_tty_receive_buf2+0x40/0x40 [ 36.356931] tty_ioctl+0x1026/0x1630 [ 36.360630] ? tty_fasync+0x300/0x300 [ 36.364944] ? get_pid_task+0xf4/0x190 [ 36.368811] ? proc_fail_nth_write+0x95/0x1d0 [ 36.373286] ? proc_tgid_io_accounting+0x7f0/0x7f0 [ 36.378198] ? debug_check_no_obj_freed+0x201/0x490 [ 36.383197] ? __vfs_write+0xff/0x770 [ 36.386981] ? proc_tgid_io_accounting+0x7f0/0x7f0 [ 36.391917] ? common_file_perm+0x4e5/0x850 [ 36.396236] ? tty_fasync+0x300/0x300 [ 36.400019] do_vfs_ioctl+0xcdb/0x12e0 [ 36.403891] ? vfs_write+0x3d7/0x540 [ 36.407583] ? ioctl_preallocate+0x200/0x200 [ 36.411969] ? lock_downgrade+0x720/0x720 [ 36.416097] ? check_preemption_disabled+0x41/0x280 [ 36.421093] ? vfs_write+0x393/0x540 [ 36.424783] ? ksys_write+0x1c8/0x2a0 [ 36.428563] ksys_ioctl+0x9b/0xc0 [ 36.432011] __x64_sys_ioctl+0x6f/0xb0 [ 36.435884] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 36.440447] do_syscall_64+0xf9/0x620 [ 36.444227] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.449409] RIP: 0033:0x7f4cb9960d39 [ 36.453126] Code: 28 c3 e8 1a 15 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 [ 36.472016] RSP: 002b:00007ffca4916928 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 36.479702] RAX: ffffffffffffffda RBX: 00007f4cb99cee50 RCX: 00007f4cb9960d39 [ 36.486949] RDX: 00000000200000c0 RSI: 0000000000005412 RDI: 0000000000000004 [ 36.494209] RBP: 0000000000000001 R08: 0000000000000001 R09: 00007ffca4916958 [ 36.501466] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffca4916940 [ 36.508732] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 36.515990] [ 36.515993] ====================================================== [ 36.515996] WARNING: possible circular locking dependency detected [ 36.515998] 4.19.211-syzkaller #0 Not tainted [ 36.516001] ------------------------------------------------------ [ 36.516004] syz-executor358/8094 is trying to acquire lock: [ 36.516005] 000000000fe8354f (console_owner){....}, at: console_unlock+0x3a9/0x1110 [ 36.516013] [ 36.516015] but task is already holding lock: [ 36.516017] 00000000b69669ac (&(&port->lock)->rlock){-.-.}, at: pty_write+0xf4/0x1f0 [ 36.516024] [ 36.516027] which lock already depends on the new lock. [ 36.516028] [ 36.516029] [ 36.516032] the existing dependency chain (in reverse order) is: [ 36.516033] [ 36.516034] -> #2 (&(&port->lock)->rlock){-.-.}: [ 36.516041] tty_port_tty_get+0x1d/0x80 [ 36.516043] tty_port_default_wakeup+0x11/0x40 [ 36.516046] serial8250_tx_chars+0x490/0xaf0 [ 36.516048] serial8250_handle_irq.part.0+0x31f/0x3d0 [ 36.516050] serial8250_default_handle_irq+0xae/0x220 [ 36.516053] serial8250_interrupt+0x101/0x240 [ 36.516055] __handle_irq_event_percpu+0x27e/0x8e0 [ 36.516057] handle_irq_event+0x102/0x290 [ 36.516059] handle_edge_irq+0x260/0xcf0 [ 36.516061] handle_irq+0x35/0x50 [ 36.516063] do_IRQ+0x93/0x1c0 [ 36.516065] ret_from_intr+0x0/0x1e [ 36.516067] _raw_spin_unlock_irqrestore+0xa3/0xe0 [ 36.516069] uart_write+0x3bb/0x6f0 [ 36.516071] do_output_char+0x5de/0x850 [ 36.516073] n_tty_write+0x46e/0xff0 [ 36.516075] tty_write+0x496/0x810 [ 36.516077] redirected_tty_write+0xaa/0xb0 [ 36.516079] do_iter_write+0x461/0x5d0 [ 36.516081] vfs_writev+0x153/0x2e0 [ 36.516083] do_writev+0x136/0x330 [ 36.516085] do_syscall_64+0xf9/0x620 [ 36.516087] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.516088] [ 36.516089] -> #1 (&port_lock_key){-.-.}: [ 36.516097] serial8250_console_write+0x90e/0xb70 [ 36.516099] console_unlock+0xbb6/0x1110 [ 36.516101] vprintk_emit+0x2d1/0x740 [ 36.516106] vprintk_func+0x79/0x180 [ 36.516108] printk+0xba/0xed [ 36.516110] register_console+0x87f/0xc90 [ 36.516112] univ8250_console_init+0x3a/0x46 [ 36.516114] console_init+0x4cb/0x718 [ 36.516116] start_kernel+0x686/0x911 [ 36.516118] secondary_startup_64+0xa4/0xb0 [ 36.516119] [ 36.516121] -> #0 (console_owner){....}: [ 36.516128] console_unlock+0x411/0x1110 [ 36.516130] vprintk_emit+0x2d1/0x740 [ 36.516132] vprintk_func+0x79/0x180 [ 36.516133] printk+0xba/0xed [ 36.516135] should_fail+0x66b/0x7b0 [ 36.516137] __should_failslab+0x115/0x180 [ 36.516139] should_failslab+0x5/0x10 [ 36.516141] __kmalloc+0x6d/0x3c0 [ 36.516143] tty_buffer_alloc+0x23f/0x2a0 [ 36.516146] __tty_buffer_request_room+0x156/0x2a0 [ 36.516149] tty_insert_flip_string_fixed_flag+0x93/0x250 [ 36.516151] pty_write+0x126/0x1f0 [ 36.516153] tty_put_char+0x122/0x150 [ 36.516155] __process_echoes+0x577/0x9f0 [ 36.516157] n_tty_receive_buf_common+0xc0c/0x2a90 [ 36.516159] tty_ioctl+0x1026/0x1630 [ 36.516161] do_vfs_ioctl+0xcdb/0x12e0 [ 36.516163] ksys_ioctl+0x9b/0xc0 [ 36.516165] __x64_sys_ioctl+0x6f/0xb0 [ 36.516167] do_syscall_64+0xf9/0x620 [ 36.516169] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.516170] [ 36.516173] other info that might help us debug this: [ 36.516174] [ 36.516175] Chain exists of: [ 36.516176] console_owner --> &port_lock_key --> &(&port->lock)->rlock [ 36.516185] [ 36.516188] Possible unsafe locking scenario: [ 36.516189] [ 36.516191] CPU0 CPU1 [ 36.516193] ---- ---- [ 36.516194] lock(&(&port->lock)->rlock); [ 36.516199] lock(&port_lock_key); [ 36.516204] lock(&(&port->lock)->rlock); [ 36.516208] lock(console_owner); [ 36.516212] [ 36.516213] *** DEADLOCK *** [ 36.516214] [ 36.516217] 6 locks held by syz-executor358/8094: [ 36.516218] #0: 00000000177139ee (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 [ 36.516226] #1: 00000000bd927afb (&port->buf.lock/1){+.+.}, at: tty_ioctl+0xfbc/0x1630 [ 36.516236] #2: 000000009708128a (&o_tty->termios_rwsem/1){++++}, at: isig+0x37d/0x430 [ 36.516245] #3: 00000000ade10974 (&ldata->output_lock){+.+.}, at: n_tty_receive_buf_common+0xbce/0x2a90 [ 36.516254] #4: 00000000b69669ac (&(&port->lock)->rlock){-.-.}, at: pty_write+0xf4/0x1f0 [ 36.516262] #5: 00000000f1a31751 (console_lock){+.+.}, at: vprintk_func+0x79/0x180 [ 36.516270] [ 36.516272] stack backtrace: [ 36.516275] CPU: 1 PID: 8094 Comm: syz-executor358 Not tainted 4.19.211-syzkaller #0 [ 36.516279] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 36.516281] Call Trace: [ 36.516283] dump_stack+0x1fc/0x2ef [ 36.516285] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 36.516287] __lock_acquire+0x30c9/0x3ff0 [ 36.516290] ? mark_held_locks+0xf0/0xf0 [ 36.516291] ? snprintf+0xf0/0xf0 [ 36.516294] ? console_unlock+0x3ec/0x1110 [ 36.516295] lock_acquire+0x170/0x3c0 [ 36.516298] ? console_unlock+0x3a9/0x1110 [ 36.516300] console_unlock+0x411/0x1110 [ 36.516302] ? console_unlock+0x3a9/0x1110 [ 36.516304] vprintk_emit+0x2d1/0x740 [ 36.516306] vprintk_func+0x79/0x180 [ 36.516308] printk+0xba/0xed [ 36.516310] ? log_store.cold+0x16/0x16 [ 36.516312] ? __lock_acquire+0x22f9/0x3ff0 [ 36.516314] ? ___ratelimit+0x319/0x590 [ 36.516316] should_fail+0x66b/0x7b0 [ 36.516318] ? setup_fault_attr+0x200/0x200 [ 36.516320] ? mark_held_locks+0xf0/0xf0 [ 36.516322] ? mark_held_locks+0xf0/0xf0 [ 36.516324] __should_failslab+0x115/0x180 [ 36.516326] should_failslab+0x5/0x10 [ 36.516328] __kmalloc+0x6d/0x3c0 [ 36.516330] ? tty_buffer_alloc+0x23f/0x2a0 [ 36.516332] tty_buffer_alloc+0x23f/0x2a0 [ 36.516334] __tty_buffer_request_room+0x156/0x2a0 [ 36.516337] tty_insert_flip_string_fixed_flag+0x93/0x250 [ 36.516339] ? do_raw_spin_lock+0xcb/0x220 [ 36.516341] pty_write+0x126/0x1f0 [ 36.516343] tty_put_char+0x122/0x150 [ 36.516345] ? dev_match_devt+0x90/0x90 [ 36.516347] ? tty_buffer_space_avail+0x7e/0xb0 [ 36.516349] ? pty_write_room+0xbe/0xe0 [ 36.516351] ? ptmx_open+0x350/0x350 [ 36.516353] __process_echoes+0x577/0x9f0 [ 36.516355] n_tty_receive_buf_common+0xc0c/0x2a90 [ 36.516357] ? n_tty_receive_buf2+0x40/0x40 [ 36.516359] tty_ioctl+0x1026/0x1630 [ 36.516361] ? tty_fasync+0x300/0x300 [ 36.516363] ? get_pid_task+0xf4/0x190 [ 36.516366] ? proc_fail_nth_write+0x95/0x1d0 [ 36.516368] ? proc_tgid_io_accounting+0x7f0/0x7f0 [ 36.516370] ? debug_check_no_obj_freed+0x201/0x490 [ 36.516372] ? __vfs_write+0xff/0x770 [ 36.516375] ? proc_tgid_io_accounting+0x7f0/0x7f0 [ 36.516377] ? common_file_perm+0x4e5/0x850 [ 36.516379] ? tty_fasync+0x300/0x300 [ 36.516381] do_vfs_ioctl+0xcdb/0x12e0 [ 36.516383] ? vfs_write+0x3d7/0x540 [ 36.516385] ? ioctl_preallocate+0x200/0x200 [ 36.516387] ? lock_downgrade+0x720/0x720 [ 36.516389] ? check_preemption_disabled+0x41/0x280 [ 36.516391] ? vfs_write+0x393/0x540 [ 36.516393] ? ksys_write+0x1c8/0x2a0 [ 36.516395] ksys_ioctl+0x9b/0xc0 [ 36.516397] __x64_sys_ioctl+0x6f/0xb0 [ 36.516399] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 36.516402] do_syscall_64+0xf9/0x620 [ 36.516405] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.516407] RIP: 0033:0x7f4cb9960d39 [ 36.516414] Code: 28 c3 e8 1a 15 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 [ 36.516417] RSP: 002b:00007ffca4916928 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 36.516422] RAX: ffffffffffffffda RBX: 00007f4cb99cee50 RCX: 00007f4cb9960d39 [ 36.516425] RDX: 00000000200000c0 RSI: 0000000000005412 RDI: 0000000000000004 [ 36.516428] RBP: 0000000000000001 R08: 0000000000000001 R09: 00007ffca4916958 [ 36.516431] R10: 0000000000000000