Warning: Permanently added '10.128.1.68' (ECDSA) to the list of known hosts. [ 33.942318] IPVS: ftp: loaded support on port[0] = 21 executing program [ 34.082598] FAULT_INJECTION: forcing a failure. [ 34.082598] name failslab, interval 1, probability 0, space 0, times 1 [ 34.094650] CPU: 0 PID: 8132 Comm: syz-executor239 Not tainted 4.19.211-syzkaller #0 [ 34.102514] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 34.111847] Call Trace: [ 34.114428] dump_stack+0x1fc/0x2ef [ 34.118040] should_fail.cold+0xa/0xf [ 34.121831] ? setup_fault_attr+0x200/0x200 [ 34.126150] ? mark_held_locks+0xf0/0xf0 [ 34.130192] ? mark_held_locks+0xf0/0xf0 [ 34.134232] __should_failslab+0x115/0x180 [ 34.138465] should_failslab+0x5/0x10 [ 34.142244] __kmalloc+0x6d/0x3c0 [ 34.145677] ? tty_buffer_alloc+0x23f/0x2a0 [ 34.149977] tty_buffer_alloc+0x23f/0x2a0 [ 34.154104] __tty_buffer_request_room+0x156/0x2a0 [ 34.159011] tty_insert_flip_string_fixed_flag+0x93/0x250 [ 34.164526] ? do_raw_spin_lock+0xcb/0x220 [ 34.168736] pty_write+0x126/0x1f0 [ 34.172257] tty_put_char+0x122/0x150 [ 34.176035] ? dev_match_devt+0x90/0x90 [ 34.179997] ? tty_buffer_space_avail+0x7e/0xb0 [ 34.185438] ? pty_write_room+0xbe/0xe0 [ 34.189388] ? ptmx_open+0x350/0x350 [ 34.193080] __process_echoes+0x577/0x9f0 [ 34.197208] n_tty_receive_buf_common+0xc0c/0x2a90 [ 34.202118] ? n_tty_receive_buf2+0x40/0x40 [ 34.206417] tty_ioctl+0x1026/0x1630 [ 34.210109] ? tty_fasync+0x300/0x300 [ 34.213887] ? get_pid_task+0xf4/0x190 [ 34.217781] ? mark_held_locks+0xf0/0xf0 [ 34.221829] ? proc_fail_nth_write+0x95/0x1d0 [ 34.226306] ? proc_tgid_io_accounting+0x7f0/0x7f0 [ 34.231212] ? __fdget_pos+0x26f/0x310 [ 34.235076] ? ksys_write+0x241/0x2a0 [ 34.238853] ? tty_fasync+0x300/0x300 [ 34.242628] do_vfs_ioctl+0xcdb/0x12e0 [ 34.246492] ? lock_downgrade+0x720/0x720 [ 34.250623] ? check_preemption_disabled+0x41/0x280 [ 34.255612] ? ioctl_preallocate+0x200/0x200 [ 34.259995] ? __fget+0x356/0x510 [ 34.263425] ? do_dup2+0x450/0x450 [ 34.266940] ? vfs_write+0x393/0x540 [ 34.270632] ? fput+0x2b/0x190 [ 34.273800] ksys_ioctl+0x9b/0xc0 [ 34.277229] __x64_sys_ioctl+0x6f/0xb0 [ 34.281095] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 34.285657] do_syscall_64+0xf9/0x620 [ 34.289451] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.294618] RIP: 0033:0x7fb9a4006729 [ 34.298310] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 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 b8 ff ff ff f7 d8 64 89 01 48 [ 34.317189] RSP: 002b:00007fb9a3f96268 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 34.324874] RAX: ffffffffffffffda RBX: 00007fb9a408f4d0 RCX: 00007fb9a4006729 [ 34.332117] RDX: 0000000020000080 RSI: 0000000000005412 RDI: 0000000000000003 [ 34.339362] RBP: 00007fb9a405c1b0 R08: 0000000000000001 R09: 0000000000000000 [ 34.346609] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb9a3f96280 [ 34.353855] R13: 00007fb9a408f4d8 R14: 00007fb9a3f9627c R15: 0000000000000001 [ 34.361112] [ 34.361115] ====================================================== [ 34.361118] WARNING: possible circular locking dependency detected [ 34.361120] 4.19.211-syzkaller #0 Not tainted [ 34.361123] ------------------------------------------------------ [ 34.361126] syz-executor239/8132 is trying to acquire lock: [ 34.361128] 00000000119beeb9 (console_owner){....}, at: console_unlock+0x3a9/0x1110 [ 34.361135] [ 34.361137] but task is already holding lock: [ 34.361139] 00000000cd6d87c9 (&(&port->lock)->rlock){-.-.}, at: pty_write+0xf4/0x1f0 [ 34.361146] [ 34.361148] which lock already depends on the new lock. [ 34.361150] [ 34.361151] [ 34.361154] the existing dependency chain (in reverse order) is: [ 34.361155] [ 34.361156] -> #2 (&(&port->lock)->rlock){-.-.}: [ 34.361163] tty_port_tty_get+0x1d/0x80 [ 34.361165] tty_port_default_wakeup+0x11/0x40 [ 34.361168] serial8250_tx_chars+0x490/0xaf0 [ 34.361170] serial8250_handle_irq.part.0+0x31f/0x3d0 [ 34.361172] serial8250_default_handle_irq+0xae/0x220 [ 34.361175] serial8250_interrupt+0x101/0x240 [ 34.361177] __handle_irq_event_percpu+0x27e/0x8e0 [ 34.361179] handle_irq_event+0x102/0x290 [ 34.361181] handle_edge_irq+0x260/0xcf0 [ 34.361183] handle_irq+0x35/0x50 [ 34.361185] do_IRQ+0x93/0x1c0 [ 34.361187] ret_from_intr+0x0/0x1e [ 34.361189] _raw_spin_unlock_irqrestore+0xa3/0xe0 [ 34.361191] uart_write+0x3bb/0x6f0 [ 34.361193] do_output_char+0x5de/0x850 [ 34.361195] n_tty_write+0x46e/0xff0 [ 34.361197] tty_write+0x496/0x810 [ 34.361199] redirected_tty_write+0xaa/0xb0 [ 34.361201] do_iter_write+0x461/0x5d0 [ 34.361203] vfs_writev+0x153/0x2e0 [ 34.361205] do_writev+0x136/0x330 [ 34.361207] do_syscall_64+0xf9/0x620 [ 34.361209] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.361210] [ 34.361211] -> #1 (&port_lock_key){-.-.}: [ 34.361219] serial8250_console_write+0x90e/0xb70 [ 34.361221] console_unlock+0xbb6/0x1110 [ 34.361223] vprintk_emit+0x2d1/0x740 [ 34.361225] vprintk_func+0x79/0x180 [ 34.361226] printk+0xba/0xed [ 34.361228] register_console+0x87f/0xc90 [ 34.361231] univ8250_console_init+0x3a/0x46 [ 34.361236] console_init+0x4cb/0x718 [ 34.361238] start_kernel+0x686/0x911 [ 34.361240] secondary_startup_64+0xa4/0xb0 [ 34.361241] [ 34.361242] -> #0 (console_owner){....}: [ 34.361249] console_unlock+0x411/0x1110 [ 34.361251] vprintk_emit+0x2d1/0x740 [ 34.361253] vprintk_func+0x79/0x180 [ 34.361255] printk+0xba/0xed [ 34.361257] should_fail+0x66b/0x7b0 [ 34.361259] __should_failslab+0x115/0x180 [ 34.361261] should_failslab+0x5/0x10 [ 34.361263] __kmalloc+0x6d/0x3c0 [ 34.361265] tty_buffer_alloc+0x23f/0x2a0 [ 34.361268] __tty_buffer_request_room+0x156/0x2a0 [ 34.361270] tty_insert_flip_string_fixed_flag+0x93/0x250 [ 34.361272] pty_write+0x126/0x1f0 [ 34.361274] tty_put_char+0x122/0x150 [ 34.361276] __process_echoes+0x577/0x9f0 [ 34.361279] n_tty_receive_buf_common+0xc0c/0x2a90 [ 34.361281] tty_ioctl+0x1026/0x1630 [ 34.361283] do_vfs_ioctl+0xcdb/0x12e0 [ 34.361285] ksys_ioctl+0x9b/0xc0 [ 34.361287] __x64_sys_ioctl+0x6f/0xb0 [ 34.361289] do_syscall_64+0xf9/0x620 [ 34.361291] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.361292] [ 34.361295] other info that might help us debug this: [ 34.361296] [ 34.361297] Chain exists of: [ 34.361298] console_owner --> &port_lock_key --> &(&port->lock)->rlock [ 34.361307] [ 34.361310] Possible unsafe locking scenario: [ 34.361311] [ 34.361313] CPU0 CPU1 [ 34.361315] ---- ---- [ 34.361316] lock(&(&port->lock)->rlock); [ 34.361321] lock(&port_lock_key); [ 34.361326] lock(&(&port->lock)->rlock); [ 34.361330] lock(console_owner); [ 34.361334] [ 34.361335] *** DEADLOCK *** [ 34.361336] [ 34.361339] 6 locks held by syz-executor239/8132: [ 34.361340] #0: 00000000267c2a39 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 [ 34.361348] #1: 000000006065e03f (&port->buf.lock/1){+.+.}, at: tty_ioctl+0xfbc/0x1630 [ 34.361358] #2: 00000000a2aa8765 (&o_tty->termios_rwsem/1){++++}, at: n_tty_receive_buf_common+0x84/0x2a90 [ 34.361368] #3: 00000000defedd96 (&ldata->output_lock){+.+.}, at: n_tty_receive_buf_common+0xbce/0x2a90 [ 34.361377] #4: 00000000cd6d87c9 (&(&port->lock)->rlock){-.-.}, at: pty_write+0xf4/0x1f0 [ 34.361385] #5: 000000005eda3dbd (console_lock){+.+.}, at: vprintk_func+0x79/0x180 [ 34.361393] [ 34.361395] stack backtrace: [ 34.361398] CPU: 0 PID: 8132 Comm: syz-executor239 Not tainted 4.19.211-syzkaller #0 [ 34.361402] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 34.361404] Call Trace: [ 34.361405] dump_stack+0x1fc/0x2ef [ 34.361408] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 34.361410] __lock_acquire+0x30c9/0x3ff0 [ 34.361412] ? mark_held_locks+0xf0/0xf0 [ 34.361414] ? snprintf+0xf0/0xf0 [ 34.361416] ? console_unlock+0x3ec/0x1110 [ 34.361418] lock_acquire+0x170/0x3c0 [ 34.361420] ? console_unlock+0x3a9/0x1110 [ 34.361422] console_unlock+0x411/0x1110 [ 34.361424] ? console_unlock+0x3a9/0x1110 [ 34.361426] vprintk_emit+0x2d1/0x740 [ 34.361428] vprintk_func+0x79/0x180 [ 34.361430] ? check_usage+0x19a/0x670 [ 34.361432] printk+0xba/0xed [ 34.361434] ? log_store.cold+0x16/0x16 [ 34.361436] ? __lock_acquire+0x22f9/0x3ff0 [ 34.361438] ? ___ratelimit+0x319/0x590 [ 34.361440] should_fail+0x66b/0x7b0 [ 34.361442] ? setup_fault_attr+0x200/0x200 [ 34.361444] ? mark_held_locks+0xf0/0xf0 [ 34.361446] ? mark_held_locks+0xf0/0xf0 [ 34.361448] __should_failslab+0x115/0x180 [ 34.361450] should_failslab+0x5/0x10 [ 34.361452] __kmalloc+0x6d/0x3c0 [ 34.361454] ? tty_buffer_alloc+0x23f/0x2a0 [ 34.361456] tty_buffer_alloc+0x23f/0x2a0 [ 34.361459] __tty_buffer_request_room+0x156/0x2a0 [ 34.361461] tty_insert_flip_string_fixed_flag+0x93/0x250 [ 34.361463] ? do_raw_spin_lock+0xcb/0x220 [ 34.361465] pty_write+0x126/0x1f0 [ 34.361467] tty_put_char+0x122/0x150 [ 34.361469] ? dev_match_devt+0x90/0x90 [ 34.361471] ? tty_buffer_space_avail+0x7e/0xb0 [ 34.361473] ? pty_write_room+0xbe/0xe0 [ 34.361475] ? ptmx_open+0x350/0x350 [ 34.361477] __process_echoes+0x577/0x9f0 [ 34.361480] n_tty_receive_buf_common+0xc0c/0x2a90 [ 34.361482] ? n_tty_receive_buf2+0x40/0x40 [ 34.361484] tty_ioctl+0x1026/0x1630 [ 34.361486] ? tty_fasync+0x300/0x300 [ 34.361488] ? get_pid_task+0xf4/0x190 [ 34.361490] ? mark_held_locks+0xf0/0xf0 [ 34.361492] ? proc_fail_nth_write+0x95/0x1d0 [ 34.361494] ? proc_tgid_io_accounting+0x7f0/0x7f0 [ 34.361496] ? __fdget_pos+0x26f/0x310 [ 34.361498] ? ksys_write+0x241/0x2a0 [ 34.361500] ? tty_fasync+0x300/0x300 [ 34.361502] do_vfs_ioctl+0xcdb/0x12e0 [ 34.361504] ? lock_downgrade+0x720/0x720 [ 34.361507] ? check_preemption_disabled+0x41/0x280 [ 34.361509] ? ioctl_preallocate+0x200/0x200 [ 34.361511] ? __fget+0x356/0x510 [ 34.361512] ? do_dup2+0x450/0x450 [ 34.361514] ? vfs_write+0x393/0x540 [ 34.361516] ? fput+0x2b/0x190 [ 34.361518] ksys_ioctl+0x9b/0xc0 [ 34.361520] __x64_sys_ioctl+0x6f/0xb0 [ 34.361522] ? lockdep_hardirqs_on+0x3a8/0x5c0 [ 34.361524] do_syscall_64+0xf9/0x620 [ 34.361527] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.361529] RIP: 0033:0x7fb9a4006729 [ 34.361536] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 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 b8 ff ff ff f7 d8 64 89 01 48 [ 34.361538] RSP: 002b:00007fb9a3f96268 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 34.361543] RAX: ffffffffffffffda RBX: 00007fb9a408f4d0 RCX: 00007fb9a4006729 [ 34.361546] RDX: 0000000020000080 RSI: 0000000000005412 RDI: 0000000000000003 [ 34.361549] RBP: 00007fb9a405c1b0 R08: 0000000000000001 R09: 0000000000000000 [ 34.361553] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb9a3f96280 [ 34.361556] R13: 00007fb9a408f4d8 R14: 00007fb9a3f9627c R15: 0000000000000001