Warning: Permanently added '10.128.10.17' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 47.838484][ T3598] FAULT_INJECTION: forcing a failure. [ 47.838484][ T3598] name failslab, interval 1, probability 0, space 0, times 1 [ 47.838580][ T3598] [ 47.838584][ T3598] ====================================================== [ 47.838587][ T3598] WARNING: possible circular locking dependency detected [ 47.838591][ T3598] 5.16.0-rc8-syzkaller #0 Not tainted [ 47.838597][ T3598] ------------------------------------------------------ [ 47.838600][ T3598] syz-executor210/3598 is trying to acquire lock: [ 47.838606][ T3598] ffffffff8ba92e80 (console_owner){....}-{0:0}, at: console_unlock+0x303/0xb70 [ 47.838649][ T3598] [ 47.838649][ T3598] but task is already holding lock: [ 47.838652][ T3598] ffff88807e175158 (&port->lock){-.-.}-{2:2}, at: pty_write+0xea/0x1e0 [ 47.838678][ T3598] [ 47.838678][ T3598] which lock already depends on the new lock. [ 47.838678][ T3598] [ 47.838681][ T3598] [ 47.838681][ T3598] the existing dependency chain (in reverse order) is: [ 47.838684][ T3598] [ 47.838684][ T3598] -> #2 (&port->lock){-.-.}-{2:2}: [ 47.838699][ T3598] _raw_spin_lock_irqsave+0x39/0x50 [ 47.838718][ T3598] tty_port_tty_get+0x1f/0x100 [ 47.838728][ T3598] tty_port_default_wakeup+0x11/0x40 [ 47.838739][ T3598] serial8250_tx_chars+0x4f3/0xad0 [ 47.838752][ T3598] serial8250_handle_irq.part.0+0x328/0x3d0 [ 47.838765][ T3598] serial8250_default_handle_irq+0xb2/0x220 [ 47.838778][ T3598] serial8250_interrupt+0xfd/0x200 [ 47.838788][ T3598] __handle_irq_event_percpu+0x303/0x8f0 [ 47.838803][ T3598] handle_irq_event+0x102/0x280 [ 47.838816][ T3598] handle_edge_irq+0x25f/0xd00 [ 47.838828][ T3598] __common_interrupt+0x9d/0x210 [ 47.838843][ T3598] common_interrupt+0xa4/0xc0 [ 47.838854][ T3598] asm_common_interrupt+0x1e/0x40 [ 47.838868][ T3598] _raw_spin_unlock_irqrestore+0x38/0x70 [ 47.838881][ T3598] uart_write+0x30d/0x570 [ 47.838894][ T3598] n_tty_write+0x410/0xfd0 [ 47.838907][ T3598] file_tty_write.constprop.0+0x526/0x910 [ 47.838919][ T3598] redirected_tty_write+0xa1/0xc0 [ 47.838931][ T3598] new_sync_write+0x429/0x660 [ 47.838943][ T3598] vfs_write+0x7cd/0xae0 [ 47.838953][ T3598] ksys_write+0x12d/0x250 [ 47.838963][ T3598] do_syscall_64+0x35/0xb0 [ 47.838973][ T3598] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 47.838988][ T3598] [ 47.838988][ T3598] -> #1 (&port_lock_key){-.-.}-{2:2}: [ 47.839002][ T3598] _raw_spin_lock_irqsave+0x39/0x50 [ 47.839015][ T3598] serial8250_console_write+0x91a/0xb70 [ 47.839027][ T3598] console_unlock+0x7a9/0xb70 [ 47.839039][ T3598] vprintk_emit+0x198/0x4f0 [ 47.839051][ T3598] vprintk+0x80/0x90 [ 47.839062][ T3598] _printk+0xba/0xed [ 47.839075][ T3598] register_console+0x55f/0x780 [ 47.839087][ T3598] univ8250_console_init+0x3a/0x46 [ 47.839099][ T3598] console_init+0x3c1/0x58d [ 47.839111][ T3598] start_kernel+0x30b/0x49b [ 47.839123][ T3598] secondary_startup_64_no_verify+0xb0/0xbb [ 47.839137][ T3598] [ 47.839137][ T3598] -> #0 (console_owner){....}-{0:0}: [ 47.839151][ T3598] __lock_acquire+0x2a2c/0x5470 [ 47.839164][ T3598] lock_acquire+0x1ab/0x510 [ 47.839176][ T3598] console_unlock+0x356/0xb70 [ 47.839187][ T3598] vprintk_emit+0x198/0x4f0 [ 47.839199][ T3598] vprintk+0x80/0x90 [ 47.839211][ T3598] _printk+0xba/0xed [ 47.839222][ T3598] should_fail+0x472/0x5a0 [ 47.839235][ T3598] should_failslab+0x5/0x10 [ 47.839249][ T3598] __kmalloc+0x72/0x340 [ 47.839260][ T3598] tty_buffer_alloc+0x23f/0x2a0 [ 47.839273][ T3598] __tty_buffer_request_room+0x156/0x2a0 [ 47.839287][ T3598] tty_insert_flip_string_fixed_flag+0x93/0x250 [ 47.839302][ T3598] pty_write+0x11c/0x1e0 [ 47.839312][ T3598] n_tty_write+0x410/0xfd0 [ 47.839324][ T3598] file_tty_write.constprop.0+0x526/0x910 [ 47.839336][ T3598] new_sync_write+0x429/0x660 [ 47.839346][ T3598] vfs_write+0x7cd/0xae0 [ 47.839356][ T3598] ksys_write+0x12d/0x250 [ 47.839366][ T3598] do_syscall_64+0x35/0xb0 [ 47.839376][ T3598] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 47.839390][ T3598] [ 47.839390][ T3598] other info that might help us debug this: [ 47.839390][ T3598] [ 47.839393][ T3598] Chain exists of: [ 47.839393][ T3598] console_owner --> &port_lock_key --> &port->lock [ 47.839393][ T3598] [ 47.839408][ T3598] Possible unsafe locking scenario: [ 47.839408][ T3598] [ 47.839411][ T3598] CPU0 CPU1 [ 47.839413][ T3598] ---- ---- [ 47.839416][ T3598] lock(&port->lock); [ 47.839421][ T3598] lock(&port_lock_key); [ 47.839428][ T3598] lock(&port->lock); [ 47.839435][ T3598] lock(console_owner); [ 47.839441][ T3598] [ 47.839441][ T3598] *** DEADLOCK *** [ 47.839441][ T3598] [ 47.839442][ T3598] 6 locks held by syz-executor210/3598: [ 47.839449][ T3598] #0: ffff888142590098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 [ 47.839479][ T3598] #1: ffff888142590130 (&tty->atomic_write_lock){+.+.}-{3:3}, at: file_tty_write.constprop.0+0x29f/0x910 [ 47.839508][ T3598] #2: ffff8881425902e8 (&o_tty->termios_rwsem/1){++++}-{3:3}, at: n_tty_write+0x1bf/0xfd0 [ 47.839546][ T3598] #3: ffffc90001a9c378 (&ldata->output_lock){+.+.}-{3:3}, at: n_tty_write+0x53c/0xfd0 [ 47.839574][ T3598] #4: ffff88807e175158 (&port->lock){-.-.}-{2:2}, at: pty_write+0xea/0x1e0 [ 47.839600][ T3598] #5: ffffffff8bb732c0 (console_lock){+.+.}-{0:0}, at: vprintk+0x80/0x90 [ 47.839627][ T3598] [ 47.839627][ T3598] stack backtrace: [ 47.839631][ T3598] CPU: 1 PID: 3598 Comm: syz-executor210 Not tainted 5.16.0-rc8-syzkaller #0 [ 47.839644][ T3598] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.839651][ T3598] Call Trace: [ 47.839655][ T3598] [ 47.839659][ T3598] dump_stack_lvl+0xcd/0x134 [ 47.839674][ T3598] check_noncircular+0x25f/0x2e0 [ 47.839687][ T3598] ? filter_irq_stacks+0x90/0x90 [ 47.839702][ T3598] ? print_circular_bug+0x1e0/0x1e0 [ 47.839715][ T3598] ? memcpy+0x39/0x60 [ 47.839727][ T3598] ? lockdep_lock+0xc6/0x200 [ 47.839739][ T3598] ? call_rcu_zapped+0xb0/0xb0 [ 47.839752][ T3598] __lock_acquire+0x2a2c/0x5470 [ 47.839768][ T3598] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 47.839784][ T3598] lock_acquire+0x1ab/0x510 [ 47.839797][ T3598] ? console_unlock+0x303/0xb70 [ 47.839811][ T3598] ? lock_release+0x720/0x720 [ 47.839823][ T3598] ? lock_downgrade+0x6e0/0x6e0 [ 47.839836][ T3598] ? do_raw_spin_lock+0x120/0x2b0 [ 47.839850][ T3598] ? rwlock_bug.part.0+0x90/0x90 [ 47.839867][ T3598] console_unlock+0x356/0xb70 [ 47.839880][ T3598] ? console_unlock+0x303/0xb70 [ 47.839893][ T3598] ? devkmsg_read+0x730/0x730 [ 47.839907][ T3598] ? lock_release+0x720/0x720 [ 47.839922][ T3598] ? vprintk+0x80/0x90 [ 47.839936][ T3598] vprintk_emit+0x198/0x4f0 [ 47.839950][ T3598] vprintk+0x80/0x90 [ 47.839963][ T3598] _printk+0xba/0xed [ 47.839975][ T3598] ? record_print_text.cold+0x16/0x16 [ 47.839991][ T3598] ? ___ratelimit+0x222/0x4b0 [ 47.840005][ T3598] should_fail+0x472/0x5a0 [ 47.840018][ T3598] ? tty_buffer_alloc+0x23f/0x2a0 [ 47.840032][ T3598] should_failslab+0x5/0x10 [ 47.840044][ T3598] __kmalloc+0x72/0x340 [ 47.840057][ T3598] tty_buffer_alloc+0x23f/0x2a0 [ 47.840071][ T3598] __tty_buffer_request_room+0x156/0x2a0 [ 47.840087][ T3598] tty_insert_flip_string_fixed_flag+0x93/0x250 [ 47.840106][ T3598] pty_write+0x11c/0x1e0 [ 47.840116][ T3598] ? pty_stop+0x160/0x160 [ 47.840128][ T3598] n_tty_write+0x410/0xfd0 [ 47.840144][ T3598] ? n_tty_receive_char+0x5b0/0x5b0 [ 47.840158][ T3598] ? __init_waitqueue_head+0xd0/0xd0 [ 47.840172][ T3598] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 47.840188][ T3598] ? __phys_addr+0xc4/0x140 [ 47.840201][ T3598] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 47.840216][ T3598] ? __phys_addr_symbol+0x2c/0x70 [ 47.840229][ T3598] ? __sanitizer_cov_trace_cmp8+0x1d/0x70 [ 47.840243][ T3598] ? __check_object_size+0x16e/0x3f0 [ 47.840258][ T3598] file_tty_write.constprop.0+0x526/0x910 [ 47.840271][ T3598] ? n_tty_receive_char+0x5b0/0x5b0 [ 47.840287][ T3598] new_sync_write+0x429/0x660 [ 47.840298][ T3598] ? new_sync_read+0x6e0/0x6e0 [ 47.840310][ T3598] ? x86_pmu_start+0x160/0x270 [ 47.840326][ T3598] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 47.840341][ T3598] ? security_file_permission+0xab/0xd0 [ 47.840359][ T3598] vfs_write+0x7cd/0xae0 [ 47.840371][ T3598] ksys_write+0x12d/0x250 [ 47.840382][ T3598] ? __ia32_sys_read+0xb0/0xb0 [ 47.840394][ T3598] ? syscall_enter_from_user_mode+0x21/0x70 [ 47.840410][ T3598] do_syscall_64+0x35/0xb0 [ 47.840421][ T3598] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 47.840437][ T3598] RIP: 0033:0x7fb32ce28909 [ 47.840447][ T3598] 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 [ 47.840458][ T3598] RSP: 002b:00007ffe087f6f08 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 47.840470][ T3598] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fb32ce28909 [ 47.840478][ T3598] RDX: 0000000000000014 RSI: 0000000020000100 RDI: 0000000000000003 [ 47.840485][ T3598] RBP: 00007ffe087f6f20 R08: 0000000000000001 R09: 0000000000000001 [ 47.840492][ T3598] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006 [ 47.840500][ T3598] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 47.840521][ T3598] [ 48.757245][ T3598] CPU: 1 PID: 3598 Comm: syz-executor210 Not tainted 5.16.0-rc8-syzkaller #0 [ 48.765983][ T3598] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.776111][ T3598] Call Trace: [ 48.779382][ T3598] [ 48.782306][ T3598] dump_stack_lvl+0xcd/0x134 [ 48.786899][ T3598] should_fail.cold+0x5/0xa [ 48.791396][ T3598] ? tty_buffer_alloc+0x23f/0x2a0 [ 48.796407][ T3598] should_failslab+0x5/0x10 [ 48.800902][ T3598] __kmalloc+0x72/0x340 [ 48.805048][ T3598] tty_buffer_alloc+0x23f/0x2a0 [ 48.809896][ T3598] __tty_buffer_request_room+0x156/0x2a0 [ 48.815522][ T3598] tty_insert_flip_string_fixed_flag+0x93/0x250 [ 48.821750][ T3598] pty_write+0x11c/0x1e0 [ 48.825987][ T3598] ? pty_stop+0x160/0x160 [ 48.830410][ T3598] n_tty_write+0x410/0xfd0 [ 48.834825][ T3598] ? n_tty_receive_char+0x5b0/0x5b0 [ 48.840009][ T3598] ? __init_waitqueue_head+0xd0/0xd0 [ 48.845285][ T3598] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 48.851549][ T3598] ? __phys_addr+0xc4/0x140 [ 48.856039][ T3598] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 48.862263][ T3598] ? __phys_addr_symbol+0x2c/0x70 [ 48.867271][ T3598] ? __sanitizer_cov_trace_cmp8+0x1d/0x70 [ 48.872973][ T3598] ? __check_object_size+0x16e/0x3f0 [ 48.878252][ T3598] file_tty_write.constprop.0+0x526/0x910 [ 48.883963][ T3598] ? n_tty_receive_char+0x5b0/0x5b0 [ 48.889158][ T3598] new_sync_write+0x429/0x660 [ 48.893832][ T3598] ? new_sync_read+0x6e0/0x6e0 [ 48.898638][ T3598] ? x86_pmu_start+0x160/0x270 [ 48.903395][ T3598] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 48.909628][ T3598] ? security_file_permission+0xab/0xd0 [ 48.915165][ T3598] vfs_write+0x7cd/0xae0 [ 48.919401][ T3598] ksys_write+0x12d/0x250 [ 48.923717][ T3598] ? __ia32_sys_read+0xb0/0xb0 [ 48.928642][ T3598] ? syscall_enter_from_user_mode+0x21/0x70 [ 48.934524][ T3598] do_syscall_64+0x35/0xb0 [ 48.938925][ T3598] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 48.944805][ T3598] RIP: 0033:0x7fb32ce28909 [ 48.949216][ T3598] 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 [ 48.968900][ T3598] RSP: 002b:00007ffe087f6f08 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 48.977289][ T3598] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fb32ce28909 [ 48.985241][ T3598] RDX: 0000000000000014 RSI: 0000000020000100 RDI: 0000000000000003 [ 48.993189][ T3598] RBP