Warning: Permanently added '10.128.1.60' (ECDSA) to the list of known hosts. executing program [ 56.313899][ T3602] FAULT_INJECTION: forcing a failure. [ 56.313899][ T3602] name failslab, interval 1, probability 0, space 0, times 1 [ 56.314001][ T3602] [ 56.314004][ T3602] ====================================================== [ 56.314008][ T3602] WARNING: possible circular locking dependency detected [ 56.314012][ T3602] 5.17.0-rc1-syzkaller #0 Not tainted [ 56.314018][ T3602] ------------------------------------------------------ [ 56.314021][ T3602] syz-executor053/3602 is trying to acquire lock: [ 56.314027][ T3602] ffffffff8ba921a0 (console_owner){....}-{0:0}, at: console_unlock+0x303/0xb70 [ 56.314063][ T3602] [ 56.314063][ T3602] but task is already holding lock: [ 56.314066][ T3602] ffff88801c2ab958 (&port->lock){-.-.}-{2:2}, at: pty_write+0xea/0x1e0 [ 56.314091][ T3602] [ 56.314091][ T3602] which lock already depends on the new lock. [ 56.314091][ T3602] [ 56.314094][ T3602] [ 56.314094][ T3602] the existing dependency chain (in reverse order) is: [ 56.314097][ T3602] [ 56.314097][ T3602] -> #2 (&port->lock){-.-.}-{2:2}: [ 56.314112][ T3602] _raw_spin_lock_irqsave+0x39/0x50 [ 56.314127][ T3602] tty_port_tty_get+0x1f/0x100 [ 56.314141][ T3602] tty_port_default_wakeup+0x11/0x40 [ 56.314155][ T3602] serial8250_tx_chars+0x4f3/0xad0 [ 56.314167][ T3602] serial8250_handle_irq.part.0+0x328/0x3d0 [ 56.314180][ T3602] serial8250_default_handle_irq+0xb2/0x220 [ 56.314193][ T3602] serial8250_interrupt+0xfd/0x200 [ 56.314207][ T3602] __handle_irq_event_percpu+0x22b/0x880 [ 56.314219][ T3602] handle_irq_event+0xa7/0x1e0 [ 56.314229][ T3602] handle_edge_irq+0x25f/0xd00 [ 56.314242][ T3602] __common_interrupt+0x9d/0x210 [ 56.314254][ T3602] common_interrupt+0xa4/0xc0 [ 56.314268][ T3602] asm_common_interrupt+0x1e/0x40 [ 56.314280][ T3602] _raw_spin_unlock_irqrestore+0x38/0x70 [ 56.314292][ T3602] uart_write+0x30d/0x570 [ 56.314305][ T3602] n_tty_write+0x410/0xfd0 [ 56.314316][ T3602] file_tty_write.constprop.0+0x526/0x910 [ 56.314329][ T3602] redirected_tty_write+0xa1/0xc0 [ 56.314340][ T3602] new_sync_write+0x431/0x660 [ 56.314354][ T3602] vfs_write+0x7cd/0xae0 [ 56.314366][ T3602] ksys_write+0x12d/0x250 [ 56.314378][ T3602] do_syscall_64+0x35/0xb0 [ 56.314390][ T3602] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 56.314403][ T3602] [ 56.314403][ T3602] -> #1 (&port_lock_key){-.-.}-{2:2}: [ 56.314417][ T3602] _raw_spin_lock_irqsave+0x39/0x50 [ 56.314429][ T3602] serial8250_console_write+0xb11/0xe90 [ 56.314441][ T3602] console_unlock+0x7a9/0xb70 [ 56.314454][ T3602] vprintk_emit+0x198/0x4f0 [ 56.314467][ T3602] vprintk+0x80/0x90 [ 56.314479][ T3602] _printk+0xba/0xed [ 56.314492][ T3602] register_console+0x410/0x7c0 [ 56.314506][ T3602] univ8250_console_init+0x3a/0x46 [ 56.314521][ T3602] console_init+0x3c1/0x58d [ 56.314536][ T3602] start_kernel+0x30b/0x49b [ 56.314548][ T3602] secondary_startup_64_no_verify+0xc3/0xcb [ 56.314564][ T3602] [ 56.314564][ T3602] -> #0 (console_owner){....}-{0:0}: [ 56.314578][ T3602] __lock_acquire+0x2a2c/0x5470 [ 56.314592][ T3602] lock_acquire+0x1ab/0x510 [ 56.314604][ T3602] console_unlock+0x356/0xb70 [ 56.314623][ T3602] vprintk_emit+0x198/0x4f0 [ 56.314636][ T3602] vprintk+0x80/0x90 [ 56.314648][ T3602] _printk+0xba/0xed [ 56.314660][ T3602] should_fail+0x472/0x5a0 [ 56.314672][ T3602] should_failslab+0x5/0x10 [ 56.314687][ T3602] __kmalloc+0x72/0x340 [ 56.314702][ T3602] tty_buffer_alloc+0x23f/0x2a0 [ 56.314715][ T3602] __tty_buffer_request_room+0x156/0x2a0 [ 56.314729][ T3602] tty_insert_flip_string_fixed_flag+0x93/0x250 [ 56.314744][ T3602] pty_write+0x11c/0x1e0 [ 56.314754][ T3602] n_tty_write+0xa7a/0xfd0 [ 56.314765][ T3602] file_tty_write.constprop.0+0x526/0x910 [ 56.314778][ T3602] new_sync_write+0x431/0x660 [ 56.314789][ T3602] vfs_write+0x7cd/0xae0 [ 56.314801][ T3602] ksys_write+0x12d/0x250 [ 56.314813][ T3602] do_syscall_64+0x35/0xb0 [ 56.314825][ T3602] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 56.314838][ T3602] [ 56.314838][ T3602] other info that might help us debug this: [ 56.314838][ T3602] [ 56.314841][ T3602] Chain exists of: [ 56.314841][ T3602] console_owner --> &port_lock_key --> &port->lock [ 56.314841][ T3602] [ 56.314857][ T3602] Possible unsafe locking scenario: [ 56.314857][ T3602] [ 56.314859][ T3602] CPU0 CPU1 [ 56.314861][ T3602] ---- ---- [ 56.314864][ T3602] lock(&port->lock); [ 56.314870][ T3602] lock(&port_lock_key); [ 56.314876][ T3602] lock(&port->lock); [ 56.314883][ T3602] lock(console_owner); [ 56.314889][ T3602] [ 56.314889][ T3602] *** DEADLOCK *** [ 56.314889][ T3602] [ 56.314891][ T3602] 6 locks held by syz-executor053/3602: [ 56.314898][ T3602] #0: ffff888012b8a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 [ 56.314927][ T3602] #1: ffff888012b8a130 (&tty->atomic_write_lock){+.+.}-{3:3}, at: file_tty_write.constprop.0+0x29f/0x910 [ 56.314956][ T3602] #2: ffff888012b8a2e8 (&tty->termios_rwsem){++++}-{3:3}, at: n_tty_write+0x1bf/0xfd0 [ 56.314984][ T3602] #3: ffffc90001ac8378 (&ldata->output_lock){+.+.}-{3:3}, at: n_tty_write+0xa47/0xfd0 [ 56.315012][ T3602] #4: ffff88801c2ab958 (&port->lock){-.-.}-{2:2}, at: pty_write+0xea/0x1e0 [ 56.315038][ T3602] #5: ffffffff8bb725e0 (console_lock){+.+.}-{0:0}, at: vprintk+0x80/0x90 [ 56.315066][ T3602] [ 56.315066][ T3602] stack backtrace: [ 56.315070][ T3602] CPU: 1 PID: 3602 Comm: syz-executor053 Not tainted 5.17.0-rc1-syzkaller #0 [ 56.315083][ T3602] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.315091][ T3602] Call Trace: [ 56.315094][ T3602] [ 56.315098][ T3602] dump_stack_lvl+0xcd/0x134 [ 56.315115][ T3602] check_noncircular+0x25f/0x2e0 [ 56.315129][ T3602] ? filter_irq_stacks+0x90/0x90 [ 56.315145][ T3602] ? print_circular_bug+0x1e0/0x1e0 [ 56.315159][ T3602] ? memcpy+0x39/0x60 [ 56.315173][ T3602] ? lockdep_lock+0xc6/0x200 [ 56.315186][ T3602] ? call_rcu_zapped+0xb0/0xb0 [ 56.315200][ T3602] __lock_acquire+0x2a2c/0x5470 [ 56.315217][ T3602] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 56.315234][ T3602] lock_acquire+0x1ab/0x510 [ 56.315247][ T3602] ? console_unlock+0x303/0xb70 [ 56.315262][ T3602] ? lock_release+0x720/0x720 [ 56.315275][ T3602] ? lock_downgrade+0x6e0/0x6e0 [ 56.315289][ T3602] ? do_raw_spin_lock+0x120/0x2b0 [ 56.315304][ T3602] ? rwlock_bug.part.0+0x90/0x90 [ 56.315321][ T3602] console_unlock+0x356/0xb70 [ 56.315334][ T3602] ? console_unlock+0x303/0xb70 [ 56.315349][ T3602] ? devkmsg_read+0x730/0x730 [ 56.315363][ T3602] ? lock_release+0x720/0x720 [ 56.315379][ T3602] ? vprintk+0x80/0x90 [ 56.315394][ T3602] vprintk_emit+0x198/0x4f0 [ 56.315409][ T3602] vprintk+0x80/0x90 [ 56.315422][ T3602] _printk+0xba/0xed [ 56.315435][ T3602] ? record_print_text.cold+0x16/0x16 [ 56.315452][ T3602] ? ___ratelimit+0x222/0x4b0 [ 56.315465][ T3602] should_fail+0x472/0x5a0 [ 56.315477][ T3602] ? tty_buffer_alloc+0x23f/0x2a0 [ 56.315491][ T3602] should_failslab+0x5/0x10 [ 56.315505][ T3602] __kmalloc+0x72/0x340 [ 56.315520][ T3602] tty_buffer_alloc+0x23f/0x2a0 [ 56.315534][ T3602] __tty_buffer_request_room+0x156/0x2a0 [ 56.315550][ T3602] tty_insert_flip_string_fixed_flag+0x93/0x250 [ 56.315568][ T3602] pty_write+0x11c/0x1e0 [ 56.315579][ T3602] n_tty_write+0xa7a/0xfd0 [ 56.315592][ T3602] ? __sanitizer_cov_trace_cmp8+0x1d/0x70 [ 56.315613][ T3602] ? _copy_from_iter+0x12b/0x1410 [ 56.315629][ T3602] ? n_tty_receive_char+0x5b0/0x5b0 [ 56.315643][ T3602] ? __init_waitqueue_head+0xd0/0xd0 [ 56.315657][ T3602] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 56.315673][ T3602] ? __phys_addr+0xc4/0x140 [ 56.315689][ T3602] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 56.315705][ T3602] ? __phys_addr_symbol+0x2c/0x70 [ 56.315718][ T3602] ? __sanitizer_cov_trace_cmp8+0x1d/0x70 [ 56.315734][ T3602] ? __check_object_size+0x16e/0x310 [ 56.315751][ T3602] file_tty_write.constprop.0+0x526/0x910 [ 56.315764][ T3602] ? n_tty_receive_char+0x5b0/0x5b0 [ 56.315780][ T3602] new_sync_write+0x431/0x660 [ 56.315793][ T3602] ? new_sync_read+0x6e0/0x6e0 [ 56.315806][ T3602] ? x86_pmu_start+0x170/0x270 [ 56.315824][ T3602] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 56.315840][ T3602] ? security_file_permission+0xab/0xd0 [ 56.315858][ T3602] vfs_write+0x7cd/0xae0 [ 56.315872][ T3602] ksys_write+0x12d/0x250 [ 56.315885][ T3602] ? __ia32_sys_read+0xb0/0xb0 [ 56.315899][ T3602] ? syscall_enter_from_user_mode+0x21/0x70 [ 56.315913][ T3602] do_syscall_64+0x35/0xb0 [ 56.315926][ T3602] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 56.315940][ T3602] RIP: 0033:0x7ff503e326f9 [ 56.315950][ T3602] Code: 28 c3 e8 2a 14 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 [ 56.315962][ T3602] RSP: 002b:00007ffdcf6aede8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 56.315974][ T3602] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007ff503e326f9 [ 56.315983][ T3602] RDX: 000000000000ff2e RSI: 00000000200000c0 RDI: 0000000000000003 [ 56.315990][ T3602] RBP: 00007ffdcf6aee00 R08: 0000000000000001 R09: 0000000000000001 [ 56.315998][ T3602] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 [ 56.316006][ T3602] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 56.316016][ T3602] [ 57.239662][ T3602] CPU: 1 PID: 3602 Comm: syz-executor053 Not tainted 5.17.0-rc1-syzkaller #0 [ 57.248404][ T3602] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 57.258441][ T3602] Call Trace: [ 57.261707][ T3602] [ 57.264624][ T3602] dump_stack_lvl+0xcd/0x134 [ 57.269208][ T3602] should_fail.cold+0x5/0xa [ 57.273697][ T3602] ? tty_buffer_alloc+0x23f/0x2a0 [ 57.278723][ T3602] should_failslab+0x5/0x10 [ 57.283216][ T3602] __kmalloc+0x72/0x340 [ 57.287358][ T3602] tty_buffer_alloc+0x23f/0x2a0 [ 57.292200][ T3602] __tty_buffer_request_room+0x156/0x2a0 [ 57.297824][ T3602] tty_insert_flip_string_fixed_flag+0x93/0x250 [ 57.304067][ T3602] pty_write+0x11c/0x1e0 [ 57.308323][ T3602] n_tty_write+0xa7a/0xfd0 [ 57.312724][ T3602] ? __sanitizer_cov_trace_cmp8+0x1d/0x70 [ 57.318451][ T3602] ? _copy_from_iter+0x12b/0x1410 [ 57.323465][ T3602] ? n_tty_receive_char+0x5b0/0x5b0 [ 57.328652][ T3602] ? __init_waitqueue_head+0xd0/0xd0 [ 57.333928][ T3602] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 57.340162][ T3602] ? __phys_addr+0xc4/0x140 [ 57.344656][ T3602] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 57.350899][ T3602] ? __phys_addr_symbol+0x2c/0x70 [ 57.355930][ T3602] ? __sanitizer_cov_trace_cmp8+0x1d/0x70 [ 57.361656][ T3602] ? __check_object_size+0x16e/0x310 [ 57.366950][ T3602] file_tty_write.constprop.0+0x526/0x910 [ 57.372660][ T3602] ? n_tty_receive_char+0x5b0/0x5b0 [ 57.377855][ T3602] new_sync_write+0x431/0x660 [ 57.382520][ T3602] ? new_sync_read+0x6e0/0x6e0 [ 57.387274][ T3602] ? x86_pmu_start+0x170/0x270 [ 57.392030][ T3602] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 57.398263][ T3602] ? security_file_permission+0xab/0xd0 [ 57.403800][ T3602] vfs_write+0x7cd/0xae0 [ 57.408205][ T3602] ksys_write+0x12d/0x250 [ 57.412544][ T3602] ? __ia32_sys_read+0xb0/0xb0 [ 57.417294][ T3602] ? syscall_enter_from_user_mode+0x21/0x70 [ 57.423175][ T3602] do_syscall_64+0x35/0xb0 [ 57.427581][ T3602] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 57.433478][ T3602] RIP: 0033:0x7ff503e326f9 [ 57.437881][ T3602] Code: 28 c3 e8 2a 14 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 [ 57.457575][ T3602] RSP: 002b:00007ffdcf6aede8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 57.465995][ T3602] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007ff503e326f9 [ 57.473963][ T3602] RDX: 000000000000ff2e RSI: 00000000200000c0 RDI: 0000000000000003 [ 57.481921][ T3602] RBP: 00007ffdcf6aee00 R08: 0000000000000001 R09: 0000000000000001 [ 57.489877][ T3602] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 [ 57.497833][ T3602] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 57.505791][ T3602]