Warning: Permanently added '10.128.10.2' (ECDSA) to the list of known hosts. [ 34.707463] IPVS: ftp: loaded support on port[0] = 21 executing program [ 34.784946] FAULT_INJECTION: forcing a failure. [ 34.784946] name failslab, interval 1, probability 0, space 0, times 1 [ 34.797046] CPU: 0 PID: 8137 Comm: syz-executor372 Not tainted 4.19.211-syzkaller #0 [ 34.804906] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 [ 34.814252] Call Trace: [ 34.816834] dump_stack+0x1fc/0x2ef [ 34.820546] should_fail.cold+0xa/0xf [ 34.824328] ? setup_fault_attr+0x200/0x200 [ 34.828634] ? mark_held_locks+0xf0/0xf0 [ 34.832689] ? mark_held_locks+0xf0/0xf0 [ 34.836748] __should_failslab+0x115/0x180 [ 34.840970] should_failslab+0x5/0x10 [ 34.844753] __kmalloc+0x6d/0x3c0 [ 34.848186] ? tty_buffer_alloc+0x23f/0x2a0 [ 34.852503] tty_buffer_alloc+0x23f/0x2a0 [ 34.856636] __tty_buffer_request_room+0x156/0x2a0 [ 34.861548] tty_insert_flip_string_fixed_flag+0x93/0x250 [ 34.867093] ? do_raw_spin_lock+0xcb/0x220 [ 34.871417] pty_write+0x126/0x1f0 [ 34.874940] tty_put_char+0x122/0x150 [ 34.878719] ? dev_match_devt+0x90/0x90 [ 34.882681] ? tty_buffer_space_avail+0x7e/0xb0 [ 34.887343] ? pty_write_room+0xbe/0xe0 [ 34.891311] ? ptmx_open+0x350/0x350 [ 34.895013] __process_echoes+0x577/0x9f0 [ 34.899158] n_tty_receive_buf_common+0xc0c/0x2a90 [ 34.904229] ? n_tty_receive_buf2+0x40/0x40 [ 34.908534] tty_ioctl+0x1026/0x1630 [ 34.912226] ? tty_fasync+0x300/0x300 [ 34.916006] ? get_pid_task+0xf4/0x190 [ 34.919871] ? proc_fail_nth_write+0x95/0x1d0 [ 34.924346] ? proc_tgid_io_accounting+0x7f0/0x7f0 [ 34.929254] ? debug_check_no_obj_freed+0x201/0x490 [ 34.934249] ? __vfs_write+0xff/0x770 [ 34.938030] ? proc_tgid_io_accounting+0x7f0/0x7f0 [ 34.942940] ? common_file_perm+0x4e5/0x850 [ 34.947259] ? tty_fasync+0x300/0x300 [ 34.951059] do_vfs_ioctl+0xcdb/0x12e0 [ 34.954946] ? vfs_write+0x3d7/0x540 [ 34.958675] ? ioctl_preallocate+0x200/0x200 [ 34.963068] ? lock_downgrade+0x720/0x720 [ 34.967213] ? check_preemption_disabled+0x41/0x280 [ 34.972211] ? vfs_write+0x393/0x540 [ 34.975920] ? ksys_write+0x1c8/0x2a0 [ 34.979706] ksys_ioctl+0x9b/0xc0 [ 34.983140] __x64_sys_ioctl+0x6f/0xb0 [ 34.987010] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 34.991583] do_syscall_64+0xf9/0x620 [ 34.995366] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.000590] RIP: 0033:0x7f8646a3fd49 [ 35.004301] 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 [ 35.023182] RSP: 002b:00007ffddc2aed98 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 35.030868] RAX: ffffffffffffffda RBX: 00007f8646aade50 RCX: 00007f8646a3fd49 [ 35.038118] RDX: 0000000020000280 RSI: 0000000000005412 RDI: 0000000000000004 [ 35.045369] RBP: 0000000000000001 R08: 0000000000000001 R09: 00007ffddc2aedc8 [ 35.052710] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffddc2aedb0 [ 35.059961] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 35.067218] [ 35.067222] ====================================================== [ 35.067224] WARNING: possible circular locking dependency detected [ 35.067226] 4.19.211-syzkaller #0 Not tainted [ 35.067229] ------------------------------------------------------ [ 35.067232] syz-executor372/8137 is trying to acquire lock: [ 35.067233] 00000000081e8377 (console_owner){....}, at: console_unlock+0x3a9/0x1110 [ 35.067240] [ 35.067242] but task is already holding lock: [ 35.067244] 000000006c836ce2 (&(&port->lock)->rlock){-.-.}, at: pty_write+0xf4/0x1f0 [ 35.067251] [ 35.067253] which lock already depends on the new lock. [ 35.067254] [ 35.067255] [ 35.067258] the existing dependency chain (in reverse order) is: [ 35.067259] [ 35.067260] -> #2 (&(&port->lock)->rlock){-.-.}: [ 35.067267] tty_port_tty_get+0x1d/0x80 [ 35.067269] tty_port_default_wakeup+0x11/0x40 [ 35.067272] serial8250_tx_chars+0x490/0xaf0 [ 35.067274] serial8250_handle_irq.part.0+0x31f/0x3d0 [ 35.067276] serial8250_default_handle_irq+0xae/0x220 [ 35.067278] serial8250_interrupt+0x101/0x240 [ 35.067281] __handle_irq_event_percpu+0x27e/0x8e0 [ 35.067283] handle_irq_event+0x102/0x290 [ 35.067285] handle_edge_irq+0x260/0xcf0 [ 35.067286] handle_irq+0x35/0x50 [ 35.067288] do_IRQ+0x93/0x1c0 [ 35.067290] ret_from_intr+0x0/0x1e [ 35.067292] _raw_spin_unlock_irqrestore+0xa3/0xe0 [ 35.067294] uart_write+0x3bb/0x6f0 [ 35.067296] do_output_char+0x5de/0x850 [ 35.067298] n_tty_write+0x46e/0xff0 [ 35.067300] tty_write+0x496/0x810 [ 35.067302] redirected_tty_write+0xaa/0xb0 [ 35.067304] do_iter_write+0x461/0x5d0 [ 35.067306] vfs_writev+0x153/0x2e0 [ 35.067307] do_writev+0x136/0x330 [ 35.067309] do_syscall_64+0xf9/0x620 [ 35.067312] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.067313] [ 35.067314] -> #1 (&port_lock_key){-.-.}: [ 35.067321] serial8250_console_write+0x90e/0xb70 [ 35.067323] console_unlock+0xbb6/0x1110 [ 35.067325] vprintk_emit+0x2d1/0x740 [ 35.067327] vprintk_func+0x79/0x180 [ 35.067328] printk+0xba/0xed [ 35.067330] register_console+0x87f/0xc90 [ 35.067332] univ8250_console_init+0x3a/0x46 [ 35.067334] console_init+0x4cb/0x718 [ 35.067336] start_kernel+0x686/0x911 [ 35.067338] secondary_startup_64+0xa4/0xb0 [ 35.067339] [ 35.067341] -> #0 (console_owner){....}: [ 35.067347] console_unlock+0x411/0x1110 [ 35.067349] vprintk_emit+0x2d1/0x740 [ 35.067351] vprintk_func+0x79/0x180 [ 35.067353] printk+0xba/0xed [ 35.067355] should_fail+0x66b/0x7b0 [ 35.067357] __should_failslab+0x115/0x180 [ 35.067359] should_failslab+0x5/0x10 [ 35.067361] __kmalloc+0x6d/0x3c0 [ 35.067363] tty_buffer_alloc+0x23f/0x2a0 [ 35.067365] __tty_buffer_request_room+0x156/0x2a0 [ 35.067367] tty_insert_flip_string_fixed_flag+0x93/0x250 [ 35.067369] pty_write+0x126/0x1f0 [ 35.067371] tty_put_char+0x122/0x150 [ 35.067373] __process_echoes+0x577/0x9f0 [ 35.067376] n_tty_receive_buf_common+0xc0c/0x2a90 [ 35.067377] tty_ioctl+0x1026/0x1630 [ 35.067379] do_vfs_ioctl+0xcdb/0x12e0 [ 35.067381] ksys_ioctl+0x9b/0xc0 [ 35.067383] __x64_sys_ioctl+0x6f/0xb0 [ 35.067385] do_syscall_64+0xf9/0x620 [ 35.067387] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.067389] [ 35.067391] other info that might help us debug this: [ 35.067392] [ 35.067393] Chain exists of: [ 35.067394] console_owner --> &port_lock_key --> &(&port->lock)->rlock [ 35.067403] [ 35.067405] Possible unsafe locking scenario: [ 35.067406] [ 35.067408] CPU0 CPU1 [ 35.067410] ---- ---- [ 35.067411] lock(&(&port->lock)->rlock); [ 35.067416] lock(&port_lock_key); [ 35.067421] lock(&(&port->lock)->rlock); [ 35.067425] lock(console_owner); [ 35.067428] [ 35.067430] *** DEADLOCK *** [ 35.067431] [ 35.067433] 6 locks held by syz-executor372/8137: [ 35.067434] #0: 000000006226b309 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 [ 35.067442] #1: 00000000f5a0e3f4 (&port->buf.lock/1){+.+.}, at: tty_ioctl+0xfbc/0x1630 [ 35.067451] #2: 00000000357cb86a (&o_tty->termios_rwsem/1){++++}, at: isig+0x37d/0x430 [ 35.067460] #3: 000000005abb1eab (&ldata->output_lock){+.+.}, at: n_tty_receive_buf_common+0xbce/0x2a90 [ 35.067469] #4: 000000006c836ce2 (&(&port->lock)->rlock){-.-.}, at: pty_write+0xf4/0x1f0 [ 35.067477] #5: 000000005a7ae542 (console_lock){+.+.}, at: vprintk_func+0x79/0x180 [ 35.067486] [ 35.067487] stack backtrace: [ 35.067491] CPU: 0 PID: 8137 Comm: syz-executor372 Not tainted 4.19.211-syzkaller #0 [ 35.067494] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 [ 35.067496] Call Trace: [ 35.067498] dump_stack+0x1fc/0x2ef [ 35.067500] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 35.067502] __lock_acquire+0x30c9/0x3ff0 [ 35.067504] ? mark_held_locks+0xf0/0xf0 [ 35.067506] ? snprintf+0xf0/0xf0 [ 35.067508] ? console_unlock+0x3ec/0x1110 [ 35.067510] lock_acquire+0x170/0x3c0 [ 35.067512] ? console_unlock+0x3a9/0x1110 [ 35.067514] console_unlock+0x411/0x1110 [ 35.067516] ? console_unlock+0x3a9/0x1110 [ 35.067518] vprintk_emit+0x2d1/0x740 [ 35.067520] vprintk_func+0x79/0x180 [ 35.067521] printk+0xba/0xed [ 35.067523] ? log_store.cold+0x16/0x16 [ 35.067525] ? __lock_acquire+0x22f9/0x3ff0 [ 35.067527] ? ___ratelimit+0x319/0x590 [ 35.067529] should_fail+0x66b/0x7b0 [ 35.067531] ? setup_fault_attr+0x200/0x200 [ 35.067533] ? mark_held_locks+0xf0/0xf0 [ 35.067535] ? mark_held_locks+0xf0/0xf0 [ 35.067537] __should_failslab+0x115/0x180 [ 35.067539] should_failslab+0x5/0x10 [ 35.067541] __kmalloc+0x6d/0x3c0 [ 35.067543] ? tty_buffer_alloc+0x23f/0x2a0 [ 35.067545] tty_buffer_alloc+0x23f/0x2a0 [ 35.067547] __tty_buffer_request_room+0x156/0x2a0 [ 35.067550] tty_insert_flip_string_fixed_flag+0x93/0x250 [ 35.067552] ? do_raw_spin_lock+0xcb/0x220 [ 35.067554] pty_write+0x126/0x1f0 [ 35.067556] tty_put_char+0x122/0x150 [ 35.067558] ? dev_match_devt+0x90/0x90 [ 35.067560] ? tty_buffer_space_avail+0x7e/0xb0 [ 35.067562] ? pty_write_room+0xbe/0xe0 [ 35.067563] ? ptmx_open+0x350/0x350 [ 35.067565] __process_echoes+0x577/0x9f0 [ 35.067568] n_tty_receive_buf_common+0xc0c/0x2a90 [ 35.067570] ? n_tty_receive_buf2+0x40/0x40 [ 35.067572] tty_ioctl+0x1026/0x1630 [ 35.067574] ? tty_fasync+0x300/0x300 [ 35.067575] ? get_pid_task+0xf4/0x190 [ 35.067578] ? proc_fail_nth_write+0x95/0x1d0 [ 35.067580] ? proc_tgid_io_accounting+0x7f0/0x7f0 [ 35.067582] ? debug_check_no_obj_freed+0x201/0x490 [ 35.067584] ? __vfs_write+0xff/0x770 [ 35.067586] ? proc_tgid_io_accounting+0x7f0/0x7f0 [ 35.067588] ? common_file_perm+0x4e5/0x850 [ 35.067590] ? tty_fasync+0x300/0x300 [ 35.067592] do_vfs_ioctl+0xcdb/0x12e0 [ 35.067594] ? vfs_write+0x3d7/0x540 [ 35.067596] ? ioctl_preallocate+0x200/0x200 [ 35.067598] ? lock_downgrade+0x720/0x720 [ 35.067600] ? check_preemption_disabled+0x41/0x280 [ 35.067602] ? vfs_write+0x393/0x540 [ 35.067604] ? ksys_write+0x1c8/0x2a0 [ 35.067606] ksys_ioctl+0x9b/0xc0 [ 35.067608] __x64_sys_ioctl+0x6f/0xb0 [ 35.067610] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 35.067612] do_syscall_64+0xf9/0x620 [ 35.067614] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.067616] RIP: 0033:0x7f8646a3fd49 [ 35.067623] 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 [ 35.067625] RSP: 002b:00007ffddc2aed98 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 35.067630] RAX: ffffffffffffffda RBX: 00007f8646aade50 RCX: 00007f8646a3fd49 [ 35.067637] RDX: 0000000020000280 RSI: 0000000000005412 RDI: 0000000000000004 [ 35.067640] RBP: 0000000000000001 R08: 0000000000000001 R09: 00007ffddc2aedc8 [ 35.