RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000007bf R14: 0000000000700a88 R15: 0000000000000000 CPU: 0 PID: 5978 Comm: syz-executor Not tainted 4.17.0-rc3-syzkaller #0 ====================================================== WARNING: possible circular locking dependency detected 4.17.0-rc3-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor5/5983 is trying to acquire lock: (ptrval) (console_owner){-...}, at: log_next kernel/printk/printk.c:492 [inline] (ptrval) (console_owner){-...}, at: console_unlock+0x417/0xf60 kernel/printk/printk.c:2382 but task is already holding lock: (ptrval) (&(&port->lock)->rlock){-.-.}, at: pty_write+0xcd/0x1d0 drivers/tty/pty.c:119 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&(&port->lock)->rlock){-.-.}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x96/0xc0 kernel/locking/spinlock.c:152 tty_port_tty_get+0x1b/0x70 drivers/tty/tty_port.c:288 tty_port_default_wakeup+0xa/0x30 drivers/tty/tty_port.c:47 tty_port_tty_wakeup+0x58/0x70 drivers/tty/tty_port.c:390 uart_write_wakeup+0x37/0x50 drivers/tty/serial/serial_core.c:103 serial8250_tx_chars+0x3d4/0x9c0 drivers/tty/serial/8250/8250_port.c:1808 serial8250_handle_irq.part.25+0x157/0x1e0 drivers/tty/serial/8250/8250_port.c:1881 serial8250_handle_irq drivers/tty/serial/8250/8250_port.c:1867 [inline] serial8250_default_handle_irq+0x82/0xe0 drivers/tty/serial/8250/8250_port.c:1897 serial8250_interrupt+0xd8/0x170 drivers/tty/serial/8250/8250_core.c:125 __handle_irq_event_percpu+0x185/0x8e0 kernel/irq/handle.c:149 handle_irq_event_percpu+0x8e/0x190 kernel/irq/handle.c:189 handle_irq_event+0xa2/0x130 kernel/irq/handle.c:206 handle_edge_irq+0x1c1/0x740 kernel/irq/chip.c:791 generic_handle_irq_desc include/linux/irqdesc.h:159 [inline] handle_irq+0x18c/0x2e7 arch/x86/kernel/irq_64.c:77 do_IRQ+0x78/0x190 arch/x86/kernel/irq.c:245 ret_from_intr+0x0/0x1e arch_local_irq_restore arch/x86/include/asm/paravirt.h:783 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irqrestore+0xa1/0xc0 kernel/locking/spinlock.c:184 spin_unlock_irqrestore include/linux/spinlock.h:365 [inline] uart_write+0x33b/0x530 drivers/tty/serial/serial_core.c:591 process_output_block drivers/tty/n_tty.c:579 [inline] n_tty_write+0x565/0x1110 drivers/tty/n_tty.c:2308 do_tty_write drivers/tty/tty_io.c:958 [inline] tty_write+0x346/0x770 drivers/tty/tty_io.c:1042 redirected_tty_write+0x9b/0xb0 drivers/tty/tty_io.c:1063 __vfs_write+0xde/0xd10 fs/read_write.c:485 vfs_write+0x155/0x480 fs/read_write.c:549 ksys_write+0xef/0x240 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x6e/0xb0 fs/read_write.c:607 do_syscall_64+0x17b/0x6e0 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #1 (&port_lock_key){-.-.}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x96/0xc0 kernel/locking/spinlock.c:152 serial8250_console_write+0x781/0x9a0 drivers/tty/serial/8250/8250_port.c:3230 univ8250_console_write+0x4e/0x70 drivers/tty/serial/8250/8250_core.c:590 call_console_drivers kernel/printk/printk.c:1718 [inline] console_unlock+0x864/0xf60 kernel/printk/printk.c:2395 vprintk_emit+0x3a7/0xab0 kernel/printk/printk.c:1907 vprintk_default+0x1a/0x20 kernel/printk/printk.c:1947 vprintk_func+0x22/0x53 kernel/printk/printk_safe.c:379 printk+0x91/0xab kernel/printk/printk.c:1980 register_console+0x5e7/0x9a0 kernel/printk/printk.c:2714 univ8250_console_init+0x1e/0x28 drivers/tty/serial/8250/8250_core.c:685 console_init+0x525/0x797 kernel/printk/printk.c:2798 start_kernel+0x51c/0x7a0 init/main.c:660 x86_64_start_reservations+0x29/0x2b arch/x86/kernel/head64.c:445 x86_64_start_kernel+0x76/0x79 arch/x86/kernel/head64.c:426 secondary_startup_64+0xa5/0xb0 arch/x86/kernel/head_64.S:242 -> #0 (console_owner){-...}: lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 console_lock_spinning_enable kernel/printk/printk.c:1581 [inline] console_unlock+0x479/0xf60 kernel/printk/printk.c:2392 vprintk_emit+0x3a7/0xab0 kernel/printk/printk.c:1907 vprintk_default+0x1a/0x20 kernel/printk/printk.c:1947 vprintk_func+0x22/0x53 kernel/printk/printk_safe.c:379 printk+0x91/0xab kernel/printk/printk.c:1980 fail_dump lib/fault-inject.c:44 [inline] should_fail+0x7e5/0x9e0 lib/fault-inject.c:149 __should_failslab+0xba/0xf0 mm/failslab.c:32 should_failslab+0x9/0x14 mm/slab_common.c:1522 slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x63/0x760 mm/slab.c:3727 kmalloc include/linux/slab.h:517 [inline] tty_buffer_alloc drivers/tty/tty_buffer.c:170 [inline] __tty_buffer_request_room+0x27d/0x7d0 drivers/tty/tty_buffer.c:268 tty_insert_flip_string_fixed_flag+0x78/0x200 drivers/tty/tty_buffer.c:313 tty_insert_flip_string include/linux/tty_flip.h:37 [inline] pty_write+0x100/0x1d0 drivers/tty/pty.c:121 n_tty_write+0x964/0x1110 drivers/tty/n_tty.c:2331 do_tty_write drivers/tty/tty_io.c:958 [inline] tty_write+0x346/0x770 drivers/tty/tty_io.c:1042 do_loop_readv_writev fs/read_write.c:703 [inline] do_iter_write+0x36b/0x550 fs/read_write.c:961 vfs_writev+0x16b/0x320 fs/read_write.c:1004 do_writev+0xf3/0x340 fs/read_write.c:1039 __do_sys_writev fs/read_write.c:1112 [inline] __se_sys_writev fs/read_write.c:1109 [inline] __x64_sys_writev+0x70/0xb0 fs/read_write.c:1109 do_syscall_64+0x17b/0x6e0 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Chain exists of: console_owner --> &port_lock_key --> &(&port->lock)->rlock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&(&port->lock)->rlock); lock(&port_lock_key); lock(&(&port->lock)->rlock); lock(console_owner); *** DEADLOCK *** 6 locks held by syz-executor5/5983: #0: (ptrval) (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:365 #1: (ptrval) (&tty->atomic_write_lock){+.+.}, at: tty_write_lock+0x2c/0x50 drivers/tty/tty_io.c:887 #2: (ptrval) (&tty->termios_rwsem){++++}, at: n_tty_write+0x22b/0x1110 drivers/tty/n_tty.c:2291 #3: (ptrval) (&ldata->output_lock){+.+.}, at: n_tty_write+0x928/0x1110 drivers/tty/n_tty.c:2330 #4: (ptrval) (&(&port->lock)->rlock){-.-.}, at: pty_write+0xcd/0x1d0 drivers/tty/pty.c:119 #5: (ptrval) (console_lock){+.+.}, at: console_trylock_spinning kernel/printk/printk.c:1643 [inline] #5: (ptrval) (console_lock){+.+.}, at: vprintk_emit+0x39a/0xab0 kernel/printk/printk.c:1906 stack backtrace: CPU: 1 PID: 5983 Comm: syz-executor5 Not tainted 4.17.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x162/0x21a lib/dump_stack.c:113 print_circular_bug.isra.36.cold.54+0x1bd/0x27d kernel/locking/lockdep.c:1223 check_prev_add kernel/locking/lockdep.c:1863 [inline] check_prevs_add kernel/locking/lockdep.c:1976 [inline] validate_chain kernel/locking/lockdep.c:2417 [inline] __lock_acquire+0x343e/0x5140 kernel/locking/lockdep.c:3431 lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 console_lock_spinning_enable kernel/printk/printk.c:1581 [inline] console_unlock+0x479/0xf60 kernel/printk/printk.c:2392 vprintk_emit+0x3a7/0xab0 kernel/printk/printk.c:1907 vprintk_default+0x1a/0x20 kernel/printk/printk.c:1947 vprintk_func+0x22/0x53 kernel/printk/printk_safe.c:379 printk+0x91/0xab kernel/printk/printk.c:1980 fail_dump lib/fault-inject.c:44 [inline] should_fail+0x7e5/0x9e0 lib/fault-inject.c:149 __should_failslab+0xba/0xf0 mm/failslab.c:32 should_failslab+0x9/0x14 mm/slab_common.c:1522 slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x63/0x760 mm/slab.c:3727 kmalloc include/linux/slab.h:517 [inline] tty_buffer_alloc drivers/tty/tty_buffer.c:170 [inline] __tty_buffer_request_room+0x27d/0x7d0 drivers/tty/tty_buffer.c:268 tty_insert_flip_string_fixed_flag+0x78/0x200 drivers/tty/tty_buffer.c:313 tty_insert_flip_string include/linux/tty_flip.h:37 [inline] pty_write+0x100/0x1d0 drivers/tty/pty.c:121 n_tty_write+0x964/0x1110 drivers/tty/n_tty.c:2331 do_tty_write drivers/tty/tty_io.c:958 [inline] tty_write+0x346/0x770 drivers/tty/tty_io.c:1042 do_loop_readv_writev fs/read_write.c:703 [inline] do_iter_write+0x36b/0x550 fs/read_write.c:961 vfs_writev+0x16b/0x320 fs/read_write.c:1004 do_writev+0xf3/0x340 fs/read_write.c:1039 __do_sys_writev fs/read_write.c:1112 [inline] __se_sys_writev fs/read_write.c:1109 [inline] __x64_sys_writev+0x70/0xb0 fs/read_write.c:1109 do_syscall_64+0x17b/0x6e0 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b59 RSP: 002b:00007f7244173c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007f72441746d4 RCX: 0000000000455b59 RDX: 0000000000000001 RSI: 0000000020000600 RDI: 0000000000000003 RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000007bf R14: 0000000000700a88 R15: 0000000000000000 FAULT_INJECTION: forcing a failure. name fail_futex, interval 1, probability 0, space 0, times 0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x162/0x21a lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0xd lib/fault-inject.c:149 should_fail_futex kernel/futex.c:306 [inline] get_futex_key+0x2c3/0x1d10 kernel/futex.c:519 futex_wake+0x15c/0x890 kernel/futex.c:1526 do_futex+0x890/0x2620 kernel/futex.c:3531 mm_release+0x3ec/0x540 kernel/fork.c:1202 exit_mm kernel/exit.c:499 [inline] do_exit+0x4b5/0x22f0 kernel/exit.c:852 do_group_exit+0x135/0x3b0 kernel/exit.c:968 get_signal+0x6a9/0x1480 kernel/signal.c:2469 do_signal+0x98/0x2040 arch/x86/kernel/signal.c:810 exit_to_usermode_loop+0x1bf/0x2a0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:265 [inline] do_syscall_64+0x573/0x6e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b59 RSP: 002b:00007f4020685c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: fffffffffffffe00 RBX: 00007f40206866d4 RCX: 0000000000455b59 RDX: 0000000000000001 RSI: 0000000020000600 RDI: 0000000000000003 RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000007bf R14: 0000000000700a88 R15: 0000000000000000 CPU: 1 PID: 5979 Comm: syz-executor1 Not tainted 4.17.0-rc3-syzkaller #0 FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x162/0x21a lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0xd lib/fault-inject.c:149 should_fail_futex kernel/futex.c:306 [inline] get_futex_key+0x2c3/0x1d10 kernel/futex.c:519 futex_wake+0x15c/0x890 kernel/futex.c:1526 do_futex+0x890/0x2620 kernel/futex.c:3531 mm_release+0x3ec/0x540 kernel/fork.c:1202 exit_mm kernel/exit.c:499 [inline] do_exit+0x4b5/0x22f0 kernel/exit.c:852 do_group_exit+0x135/0x3b0 kernel/exit.c:968 get_signal+0x6a9/0x1480 kernel/signal.c:2469 do_signal+0x98/0x2040 arch/x86/kernel/signal.c:810 exit_to_usermode_loop+0x1bf/0x2a0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:265 [inline] do_syscall_64+0x573/0x6e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b59 RSP: 002b:00007f4f3cfeec68 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: fffffffffffffe00 RBX: 00007f4f3cfef6d4 RCX: 0000000000455b59 RDX: 0000000000000001 RSI: 0000000020000600 RDI: 0000000000000003 RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000007bf R14: 0000000000700a88 R15: 0000000000000000 CPU: 0 PID: 5977 Comm: syz-executor4 Not tainted 4.17.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x162/0x21a lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0xd lib/fault-inject.c:149 should_fail_alloc_page mm/page_alloc.c:3082 [inline] prepare_alloc_pages mm/page_alloc.c:4322 [inline] __alloc_pages_nodemask+0x34e/0xd70 mm/page_alloc.c:4358 FAULT_INJECTION: forcing a failure. name fail_futex, interval 1, probability 0, space 0, times 0 alloc_pages_current+0xd6/0x1b0 mm/mempolicy.c:2093 alloc_pages include/linux/gfp.h:492 [inline] __get_free_pages+0xf/0x40 mm/page_alloc.c:4412 tlb_next_batch mm/memory.c:204 [inline] __tlb_remove_page_size+0x26b/0x4d0 mm/memory.c:316 __tlb_remove_page include/asm-generic/tlb.h:150 [inline] zap_pte_range mm/memory.c:1340 [inline] zap_pmd_range mm/memory.c:1441 [inline] zap_pud_range mm/memory.c:1470 [inline] zap_p4d_range mm/memory.c:1491 [inline] unmap_page_range+0xc2c/0x1ff0 mm/memory.c:1512 unmap_single_vma+0x121/0x300 mm/memory.c:1557 unmap_vmas+0xe2/0x190 mm/memory.c:1587 exit_mmap+0x209/0x430 mm/mmap.c:3047 __mmput kernel/fork.c:961 [inline] mmput+0x1f4/0x550 kernel/fork.c:982 exit_mm kernel/exit.c:544 [inline] do_exit+0xd0f/0x22f0 kernel/exit.c:852 do_group_exit+0x135/0x3b0 kernel/exit.c:968 get_signal+0x6a9/0x1480 kernel/signal.c:2469 do_signal+0x98/0x2040 arch/x86/kernel/signal.c:810 exit_to_usermode_loop+0x1bf/0x2a0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:265 [inline] do_syscall_64+0x573/0x6e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b59 RSP: 002b:00007f6347782c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: fffffffffffffe00 RBX: 00007f63477836d4 RCX: 0000000000455b59 RDX: 0000000000000001 RSI: 0000000020000600 RDI: 0000000000000003 RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000007bf R14: 0000000000700a88 R15: 0000000000000000 CPU: 1 PID: 5985 Comm: syz-executor2 Not tainted 4.17.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x162/0x21a lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0xd lib/fault-inject.c:149 should_fail_futex kernel/futex.c:306 [inline] get_futex_key+0x2c3/0x1d10 kernel/futex.c:519 futex_wake+0x15c/0x890 kernel/futex.c:1526 do_futex+0x890/0x2620 kernel/futex.c:3531 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 mm_release+0x3ec/0x540 kernel/fork.c:1202 exit_mm kernel/exit.c:499 [inline] do_exit+0x4b5/0x22f0 kernel/exit.c:852 do_group_exit+0x135/0x3b0 kernel/exit.c:968 get_signal+0x6a9/0x1480 kernel/signal.c:2469 do_signal+0x98/0x2040 arch/x86/kernel/signal.c:810 exit_to_usermode_loop+0x1bf/0x2a0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:265 [inline] do_syscall_64+0x573/0x6e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b59 RSP: 002b:00007f15bba38c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: fffffffffffffe00 RBX: 00007f15bba396d4 RCX: 0000000000455b59 RDX: 0000000000000001 RSI: 0000000020000600 RDI: 0000000000000003 RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000007bf R14: 0000000000700a88 R15: 0000000000000000 CPU: 0 PID: 6002 Comm: syz-executor3 Not tainted 4.17.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x162/0x21a lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0xd lib/fault-inject.c:149 __should_failslab+0xba/0xf0 mm/failslab.c:32 should_failslab+0x9/0x14 mm/slab_common.c:1522 slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x63/0x760 mm/slab.c:3727 kmalloc include/linux/slab.h:517 [inline] tty_buffer_alloc drivers/tty/tty_buffer.c:170 [inline] __tty_buffer_request_room+0x27d/0x7d0 drivers/tty/tty_buffer.c:268 tty_insert_flip_string_fixed_flag+0x78/0x200 drivers/tty/tty_buffer.c:313 tty_insert_flip_string include/linux/tty_flip.h:37 [inline] pty_write+0x100/0x1d0 drivers/tty/pty.c:121 n_tty_write+0x964/0x1110 drivers/tty/n_tty.c:2331 do_tty_write drivers/tty/tty_io.c:958 [inline] tty_write+0x346/0x770 drivers/tty/tty_io.c:1042 do_loop_readv_writev fs/read_write.c:703 [inline] do_iter_write+0x36b/0x550 fs/read_write.c:961 vfs_writev+0x16b/0x320 fs/read_write.c:1004 do_writev+0xf3/0x340 fs/read_write.c:1039 __do_sys_writev fs/read_write.c:1112 [inline] __se_sys_writev fs/read_write.c:1109 [inline] __x64_sys_writev+0x70/0xb0 fs/read_write.c:1109 do_syscall_64+0x17b/0x6e0 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b59 RSP: 002b:00007efee9daec68 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007efee9daf6d4 RCX: 0000000000455b59 RDX: 0000000000000001 RSI: 0000000020000600 RDI: 0000000000000003 RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000007bf R14: 0000000000700a88 R15: 0000000000000000 FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 6003 Comm: syz-executor Not tainted 4.17.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x162/0x21a lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0xd lib/fault-inject.c:149 should_fail_alloc_page mm/page_alloc.c:3082 [inline] prepare_alloc_pages mm/page_alloc.c:4322 [inline] __alloc_pages_nodemask+0x34e/0xd70 mm/page_alloc.c:4358 alloc_pages_current+0xd6/0x1b0 mm/mempolicy.c:2093 alloc_pages include/linux/gfp.h:492 [inline] __get_free_pages+0xf/0x40 mm/page_alloc.c:4412 tlb_next_batch mm/memory.c:204 [inline] __tlb_remove_page_size+0x26b/0x4d0 mm/memory.c:316 __tlb_remove_page include/asm-generic/tlb.h:150 [inline] zap_pte_range mm/memory.c:1340 [inline] zap_pmd_range mm/memory.c:1441 [inline] zap_pud_range mm/memory.c:1470 [inline] zap_p4d_range mm/memory.c:1491 [inline] unmap_page_range+0xc2c/0x1ff0 mm/memory.c:1512 unmap_single_vma+0x121/0x300 mm/memory.c:1557 unmap_vmas+0xe2/0x190 mm/memory.c:1587 exit_mmap+0x209/0x430 mm/mmap.c:3047 __mmput kernel/fork.c:961 [inline] mmput+0x1f4/0x550 kernel/fork.c:982 exit_mm kernel/exit.c:544 [inline] do_exit+0xd0f/0x22f0 kernel/exit.c:852 do_group_exit+0x135/0x3b0 kernel/exit.c:968 get_signal+0x6a9/0x1480 kernel/signal.c:2469 do_signal+0x98/0x2040 arch/x86/kernel/signal.c:810 exit_to_usermode_loop+0x1bf/0x2a0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:265 [inline] do_syscall_64+0x573/0x6e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b59 RSP: 002b:00007f4020685c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: fffffffffffffe00 RBX: 00007f40206866d4 RCX: 0000000000455b59 RDX: 0000000000000001 RSI: 0000000020000600 RDI: 0000000000000003 RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000007bf R14: 0000000000700a88 R15: 0000000000000000 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 6024 Comm: syz-executor4 Not tainted 4.17.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: FAULT_INJECTION: forcing a failure. name fail_futex, interval 1, probability 0, space 0, times 0 __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x162/0x21a lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0xd lib/fault-inject.c:149 __should_failslab+0xba/0xf0 mm/failslab.c:32 should_failslab+0x9/0x14 mm/slab_common.c:1522 slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc mm/slab.c:3378 [inline] kmem_cache_alloc+0x2af/0x760 mm/slab.c:3552 kmem_cache_zalloc include/linux/slab.h:691 [inline] taskstats_tgid_alloc kernel/taskstats.c:573 [inline] taskstats_exit+0x6fd/0x1040 kernel/taskstats.c:606 do_exit+0x47a/0x22f0 kernel/exit.c:850 do_group_exit+0x135/0x3b0 kernel/exit.c:968 get_signal+0x6a9/0x1480 kernel/signal.c:2469 do_signal+0x98/0x2040 arch/x86/kernel/signal.c:810 exit_to_usermode_loop+0x1bf/0x2a0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:265 [inline] do_syscall_64+0x573/0x6e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b59 RSP: 002b:00007f6347782c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: fffffffffffffe00 RBX: 00007f63477836d4 RCX: 0000000000455b59 RDX: 0000000000000001 RSI: 0000000020000600 RDI: 0000000000000003 RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000007bf R14: 0000000000700a88 R15: 0000000000000000 CPU: 0 PID: 6027 Comm: syz-executor5 Not tainted 4.17.0-rc3-syzkaller #0 FAULT_INJECTION: forcing a failure. name fail_futex, interval 1, probability 0, space 0, times 0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x162/0x21a lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0xd lib/fault-inject.c:149 should_fail_futex kernel/futex.c:306 [inline] get_futex_key+0x2c3/0x1d10 kernel/futex.c:519 futex_wake+0x15c/0x890 kernel/futex.c:1526 do_futex+0x890/0x2620 kernel/futex.c:3531 mm_release+0x3ec/0x540 kernel/fork.c:1202 exit_mm kernel/exit.c:499 [inline] do_exit+0x4b5/0x22f0 kernel/exit.c:852 do_group_exit+0x135/0x3b0 kernel/exit.c:968 get_signal+0x6a9/0x1480 kernel/signal.c:2469 do_signal+0x98/0x2040 arch/x86/kernel/signal.c:810 exit_to_usermode_loop+0x1bf/0x2a0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:265 [inline] do_syscall_64+0x573/0x6e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b59 RSP: 002b:00007f7244173c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: fffffffffffffe00 RBX: 00007f72441746d4 RCX: 0000000000455b59 RDX: 0000000000000001 RSI: 0000000020000600 RDI: 0000000000000003 RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000007bf R14: 0000000000700a88 R15: 0000000000000000 CPU: 1 PID: 6030 Comm: syz-executor1 Not tainted 4.17.0-rc3-syzkaller #0 FAULT_INJECTION: forcing a failure. name fail_futex, interval 1, probability 0, space 0, times 0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x162/0x21a lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0xd lib/fault-inject.c:149 should_fail_futex kernel/futex.c:306 [inline] get_futex_key+0x2c3/0x1d10 kernel/futex.c:519 futex_wake+0x15c/0x890 kernel/futex.c:1526 do_futex+0x890/0x2620 kernel/futex.c:3531 mm_release+0x3ec/0x540 kernel/fork.c:1202 exit_mm kernel/exit.c:499 [inline] do_exit+0x4b5/0x22f0 kernel/exit.c:852 do_group_exit+0x135/0x3b0 kernel/exit.c:968 get_signal+0x6a9/0x1480 kernel/signal.c:2469 do_signal+0x98/0x2040 arch/x86/kernel/signal.c:810 exit_to_usermode_loop+0x1bf/0x2a0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:265 [inline] do_syscall_64+0x573/0x6e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b59 RSP: 002b:00007f4f3cfeec68 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: fffffffffffffe00 RBX: 00007f4f3cfef6d4 RCX: 0000000000455b59 RDX: 0000000000000001 RSI: 0000000020000600 RDI: 0000000000000003 RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000007bf R14: 0000000000700a88 R15: 0000000000000000 CPU: 0 PID: 6025 Comm: syz-executor2 Not tainted 4.17.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x162/0x21a lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0xd lib/fault-inject.c:149 should_fail_futex kernel/futex.c:306 [inline] get_futex_key+0x2c3/0x1d10 kernel/futex.c:519 FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 0 futex_wake+0x15c/0x890 kernel/futex.c:1526 do_futex+0x890/0x2620 kernel/futex.c:3531 mm_release+0x3ec/0x540 kernel/fork.c:1202 exit_mm kernel/exit.c:499 [inline] do_exit+0x4b5/0x22f0 kernel/exit.c:852 do_group_exit+0x135/0x3b0 kernel/exit.c:968 get_signal+0x6a9/0x1480 kernel/signal.c:2469 do_signal+0x98/0x2040 arch/x86/kernel/signal.c:810 exit_to_usermode_loop+0x1bf/0x2a0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:265 [inline] do_syscall_64+0x573/0x6e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b59 RSP: 002b:00007f15bba38c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: fffffffffffffe00 RBX: 00007f15bba396d4 RCX: 0000000000455b59 RDX: 0000000000000001 RSI: 0000000020000600 RDI: 0000000000000003 RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000007bf R14: 0000000000700a88 R15: 0000000000000000 CPU: 1 PID: 6032 Comm: syz-executor3 Not tainted 4.17.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x162/0x21a lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0xd lib/fault-inject.c:149 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 should_fail_alloc_page mm/page_alloc.c:3082 [inline] prepare_alloc_pages mm/page_alloc.c:4322 [inline] __alloc_pages_nodemask+0x34e/0xd70 mm/page_alloc.c:4358 alloc_pages_current+0xd6/0x1b0 mm/mempolicy.c:2093 alloc_pages include/linux/gfp.h:492 [inline] __get_free_pages+0xf/0x40 mm/page_alloc.c:4412 tlb_next_batch mm/memory.c:204 [inline] __tlb_remove_page_size+0x26b/0x4d0 mm/memory.c:316 __tlb_remove_page include/asm-generic/tlb.h:150 [inline] zap_pte_range mm/memory.c:1340 [inline] zap_pmd_range mm/memory.c:1441 [inline] zap_pud_range mm/memory.c:1470 [inline] zap_p4d_range mm/memory.c:1491 [inline] unmap_page_range+0xc2c/0x1ff0 mm/memory.c:1512 unmap_single_vma+0x121/0x300 mm/memory.c:1557 unmap_vmas+0xe2/0x190 mm/memory.c:1587 exit_mmap+0x209/0x430 mm/mmap.c:3047 __mmput kernel/fork.c:961 [inline] mmput+0x1f4/0x550 kernel/fork.c:982 exit_mm kernel/exit.c:544 [inline] do_exit+0xd0f/0x22f0 kernel/exit.c:852 do_group_exit+0x135/0x3b0 kernel/exit.c:968 get_signal+0x6a9/0x1480 kernel/signal.c:2469 do_signal+0x98/0x2040 arch/x86/kernel/signal.c:810 exit_to_usermode_loop+0x1bf/0x2a0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:265 [inline] do_syscall_64+0x573/0x6e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b59 RSP: 002b:00007efee9daec68 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: fffffffffffffe00 RBX: 00007efee9daf6d4 RCX: 0000000000455b59 RDX: 0000000000000001 RSI: 0000000020000600 RDI: 0000000000000003 RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000007bf R14: 0000000000700a88 R15: 0000000000000000 CPU: 0 PID: 6049 Comm: syz-executor1 Not tainted 4.17.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x162/0x21a lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0xd lib/fault-inject.c:149 __should_failslab+0xba/0xf0 mm/failslab.c:32 should_failslab+0x9/0x14 mm/slab_common.c:1522 slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x63/0x760 mm/slab.c:3727 kmalloc include/linux/slab.h:517 [inline] tty_buffer_alloc drivers/tty/tty_buffer.c:170 [inline] __tty_buffer_request_room+0x27d/0x7d0 drivers/tty/tty_buffer.c:268 tty_insert_flip_string_fixed_flag+0x78/0x200 drivers/tty/tty_buffer.c:313 tty_insert_flip_string include/linux/tty_flip.h:37 [inline] pty_write+0x100/0x1d0 drivers/tty/pty.c:121 n_tty_write+0x964/0x1110 drivers/tty/n_tty.c:2331 do_tty_write drivers/tty/tty_io.c:958 [inline] tty_write+0x346/0x770 drivers/tty/tty_io.c:1042 do_loop_readv_writev fs/read_write.c:703 [inline] do_iter_write+0x36b/0x550 fs/read_write.c:961 vfs_writev+0x16b/0x320 fs/read_write.c:1004 do_writev+0xf3/0x340 fs/read_write.c:1039 __do_sys_writev fs/read_write.c:1112 [inline] __se_sys_writev fs/read_write.c:1109 [inline] __x64_sys_writev+0x70/0xb0 fs/read_write.c:1109 do_syscall_64+0x17b/0x6e0 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b59 RSP: 002b:00007f4f3cfeec68 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007f4f3cfef6d4 RCX: 0000000000455b59 RDX: 0000000000000001 RSI: 0000000020000600 RDI: 0000000000000003 RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000007bf R14: 0000000000700a88 R15: 0000000000000000 FAULT_INJECTION: forcing a failure. name fail_futex, interval 1, probability 0, space 0, times 0 FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 0 CPU: 0 PID: 6050 Comm: syz-executor5 Not tainted 4.17.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x162/0x21a lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0xd lib/fault-inject.c:149 should_fail_futex kernel/futex.c:306 [inline] get_futex_key+0x2c3/0x1d10 kernel/futex.c:519 futex_wake+0x15c/0x890 kernel/futex.c:1526 do_futex+0x890/0x2620 kernel/futex.c:3531 mm_release+0x3ec/0x540 kernel/fork.c:1202 exit_mm kernel/exit.c:499 [inline] do_exit+0x4b5/0x22f0 kernel/exit.c:852 do_group_exit+0x135/0x3b0 kernel/exit.c:968 get_signal+0x6a9/0x1480 kernel/signal.c:2469 do_signal+0x98/0x2040 arch/x86/kernel/signal.c:810 exit_to_usermode_loop+0x1bf/0x2a0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:265 [inline] do_syscall_64+0x573/0x6e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b59 RSP: 002b:00007f7244173c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: fffffffffffffe00 RBX: 00007f72441746d4 RCX: 0000000000455b59 RDX: 0000000000000001 RSI: 0000000020000600 RDI: 0000000000000003 RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000007bf R14: 0000000000700a88 R15: 0000000000000000 CPU: 1 PID: 6051 Comm: syz-executor Not tainted 4.17.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 0 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x162/0x21a lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0xd lib/fault-inject.c:149 should_fail_alloc_page mm/page_alloc.c:3082 [inline] prepare_alloc_pages mm/page_alloc.c:4322 [inline] __alloc_pages_nodemask+0x34e/0xd70 mm/page_alloc.c:4358 alloc_pages_current+0xd6/0x1b0 mm/mempolicy.c:2093 alloc_pages include/linux/gfp.h:492 [inline] __get_free_pages+0xf/0x40 mm/page_alloc.c:4412 tlb_next_batch mm/memory.c:204 [inline] __tlb_remove_page_size+0x26b/0x4d0 mm/memory.c:316 __tlb_remove_page include/asm-generic/tlb.h:150 [inline] zap_pte_range mm/memory.c:1340 [inline] zap_pmd_range mm/memory.c:1441 [inline] zap_pud_range mm/memory.c:1470 [inline] zap_p4d_range mm/memory.c:1491 [inline] unmap_page_range+0xc2c/0x1ff0 mm/memory.c:1512 unmap_single_vma+0x121/0x300 mm/memory.c:1557 unmap_vmas+0xe2/0x190 mm/memory.c:1587 exit_mmap+0x209/0x430 mm/mmap.c:3047 __mmput kernel/fork.c:961 [inline] mmput+0x1f4/0x550 kernel/fork.c:982 exit_mm kernel/exit.c:544 [inline] do_exit+0xd0f/0x22f0 kernel/exit.c:852 do_group_exit+0x135/0x3b0 kernel/exit.c:968 get_signal+0x6a9/0x1480 kernel/signal.c:2469