bisecting cause commit starting from 0ad39cb3d70fb4324d127aeceee7f63e3f71605c building syzkaller on e0e534c6c2485161cf80d4ab7f7658c85fabc83f testing commit 0ad39cb3d70fb4324d127aeceee7f63e3f71605c with gcc (GCC) 8.1.0 run #0: crashed: possible deadlock in console_unlock run #1: crashed: possible deadlock in vprintk_emit run #2: crashed: possible deadlock in console_unlock run #3: crashed: possible deadlock in console_unlock run #4: crashed: possible deadlock in console_unlock run #5: crashed: possible deadlock in console_unlock run #6: crashed: possible deadlock in console_unlock run #7: crashed: possible deadlock in vprintk_emit run #8: crashed: possible deadlock in vprintk_emit run #9: crashed: possible deadlock in console_unlock testing release v4.17 testing commit 29dcea88779c856c7dc92040a0c01233263101d4 with gcc (GCC) 8.1.0 all runs: OK # git bisect start 0ad39cb3d70fb4324d127aeceee7f63e3f71605c 29dcea88779c856c7dc92040a0c01233263101d4 Bisecting: 1980 revisions left to test after this (roughly 11 steps) [07c4dd3435aa387d3b58f4e941dc516513f14507] Merge tag 'usb-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb testing commit 07c4dd3435aa387d3b58f4e941dc516513f14507 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 07c4dd3435aa387d3b58f4e941dc516513f14507 Bisecting: 990 revisions left to test after this (roughly 10 steps) [8ad63122f9f22dde172b98fe9c75818831e57f4b] drm/amd/display: Add harvest IP support for Vega20 testing commit 8ad63122f9f22dde172b98fe9c75818831e57f4b with gcc (GCC) 8.1.0 all runs: OK # git bisect good 8ad63122f9f22dde172b98fe9c75818831e57f4b Bisecting: 455 revisions left to test after this (roughly 9 steps) [135c5504a600ff9b06e321694fbcac78a9530cd4] Merge tag 'drm-next-2018-06-06-1' of git://anongit.freedesktop.org/drm/drm testing commit 135c5504a600ff9b06e321694fbcac78a9530cd4 with gcc (GCC) 8.1.0 run #0: crashed: possible deadlock in console_unlock run #1: crashed: possible deadlock in console_unlock run #2: crashed: possible deadlock in console_unlock run #3: crashed: possible deadlock in console_unlock run #4: crashed: possible deadlock in console_unlock run #5: crashed: possible deadlock in console_unlock run #6: crashed: possible deadlock in console_unlock run #7: crashed: possible deadlock in console_unlock run #8: crashed: possible deadlock in console_unlock run #9: crashed: possible deadlock in vprintk_emit # git bisect bad 135c5504a600ff9b06e321694fbcac78a9530cd4 Bisecting: 222 revisions left to test after this (roughly 8 steps) [dd41fb8547c2422f3a3a75e7226525e8bba9381c] Merge branch 'drm-next-4.18' of git://people.freedesktop.org/~agd5f/linux into drm-next testing commit dd41fb8547c2422f3a3a75e7226525e8bba9381c with gcc (GCC) 8.1.0 all runs: OK # git bisect good dd41fb8547c2422f3a3a75e7226525e8bba9381c Bisecting: 113 revisions left to test after this (roughly 7 steps) [ec064d3c6b40697fd72f4b1eeabbf293b7947a04] Merge tag 'driver-core-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core testing commit ec064d3c6b40697fd72f4b1eeabbf293b7947a04 with gcc (GCC) 8.1.0 all runs: OK # git bisect good ec064d3c6b40697fd72f4b1eeabbf293b7947a04 Bisecting: 56 revisions left to test after this (roughly 6 steps) [a22e48cf317d22a4326dc19e906e6b5f4f92e94e] Merge tag 'tty-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty testing commit a22e48cf317d22a4326dc19e906e6b5f4f92e94e with gcc (GCC) 8.1.0 run #0: crashed: possible deadlock in console_unlock run #1: crashed: possible deadlock in console_unlock run #2: crashed: possible deadlock in console_unlock run #3: crashed: possible deadlock in console_unlock run #4: crashed: possible deadlock in console_unlock run #5: crashed: possible deadlock in console_unlock run #6: crashed: possible deadlock in vprintk_emit run #7: crashed: possible deadlock in console_unlock run #8: crashed: possible deadlock in console_unlock run #9: crashed: possible deadlock in console_unlock # git bisect bad a22e48cf317d22a4326dc19e906e6b5f4f92e94e Bisecting: 28 revisions left to test after this (roughly 5 steps) [4a7e625ce50412a7711efa0f2ef0b96ce3826759] tty: pl011: Avoid spuriously stuck-off interrupts testing commit 4a7e625ce50412a7711efa0f2ef0b96ce3826759 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 4a7e625ce50412a7711efa0f2ef0b96ce3826759 Bisecting: 14 revisions left to test after this (roughly 4 steps) [9594b5be7ec110ed11acec58fa94f3f293668c85] tty/serial: atmel: use port->name as name in request_irq() testing commit 9594b5be7ec110ed11acec58fa94f3f293668c85 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 9594b5be7ec110ed11acec58fa94f3f293668c85 Bisecting: 7 revisions left to test after this (roughly 3 steps) [d76c74387e1c978b6c5524a146ab0f3f72206f98] serial: 8250_dw: Fix runtime PM handling testing commit d76c74387e1c978b6c5524a146ab0f3f72206f98 with gcc (GCC) 8.1.0 all runs: OK # git bisect good d76c74387e1c978b6c5524a146ab0f3f72206f98 Bisecting: 3 revisions left to test after this (roughly 2 steps) [e66003f55d7dda8ded886fa1f6f5f2741242eeb8] tty: fix typo in ASYNCB_FOURPORT comment testing commit e66003f55d7dda8ded886fa1f6f5f2741242eeb8 with gcc (GCC) 8.1.0 run #0: crashed: possible deadlock in console_unlock run #1: crashed: possible deadlock in vprintk_emit run #2: crashed: possible deadlock in console_unlock run #3: crashed: possible deadlock in console_unlock run #4: crashed: possible deadlock in vprintk_emit run #5: crashed: possible deadlock in console_unlock run #6: crashed: possible deadlock in console_unlock run #7: crashed: possible deadlock in console_unlock run #8: crashed: possible deadlock in vprintk_emit run #9: crashed: possible deadlock in console_unlock # git bisect bad e66003f55d7dda8ded886fa1f6f5f2741242eeb8 Bisecting: 1 revision left to test after this (roughly 1 step) [b6da31b2c07c46f2dcad1d86caa835227a16d9ff] tty: Fix data race in tty_insert_flip_string_fixed_flag testing commit b6da31b2c07c46f2dcad1d86caa835227a16d9ff with gcc (GCC) 8.1.0 run #0: crashed: possible deadlock in console_unlock run #1: crashed: possible deadlock in console_unlock run #2: crashed: possible deadlock in console_unlock run #3: crashed: possible deadlock in console_unlock run #4: crashed: possible deadlock in vprintk_emit run #5: crashed: possible deadlock in console_unlock run #6: crashed: possible deadlock in console_unlock run #7: crashed: possible deadlock in console_unlock run #8: crashed: possible deadlock in console_unlock run #9: crashed: possible deadlock in console_unlock # git bisect bad b6da31b2c07c46f2dcad1d86caa835227a16d9ff Bisecting: 0 revisions left to test after this (roughly 0 steps) [638a6f4ebeba82ad098fdfa4449011074d3e2673] tty: serial: msm_geni_serial: Fix TX infinite loop testing commit 638a6f4ebeba82ad098fdfa4449011074d3e2673 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 638a6f4ebeba82ad098fdfa4449011074d3e2673 b6da31b2c07c46f2dcad1d86caa835227a16d9ff is the first bad commit commit b6da31b2c07c46f2dcad1d86caa835227a16d9ff Author: DaeRyong Jeong Date: Tue May 1 00:27:04 2018 +0900 tty: Fix data race in tty_insert_flip_string_fixed_flag Unlike normal serials, in pty layer, there is no guarantee that multiple threads don't insert input characters at the same time. If it is happened, tty_insert_flip_string_fixed_flag can be executed concurrently. This can lead slab out-of-bounds write in tty_insert_flip_string_fixed_flag. Call sequences are as follows. CPU0 CPU1 n_tty_ioctl_helper n_tty_ioctl_helper __start_tty tty_send_xchar tty_wakeup pty_write n_hdlc_tty_wakeup tty_insert_flip_string n_hdlc_send_frames tty_insert_flip_string_fixed_flag pty_write tty_insert_flip_string tty_insert_flip_string_fixed_flag To fix the race, acquire port->lock in pty_write() before it inserts input characters to tty buffer. It prevents multiple threads from inserting input characters concurrently. The crash log is as follows: BUG: KASAN: slab-out-of-bounds in tty_insert_flip_string_fixed_flag+0xb5/ 0x130 drivers/tty/tty_buffer.c:316 at addr ffff880114fcc121 Write of size 1792 by task syz-executor0/30017 CPU: 1 PID: 30017 Comm: syz-executor0 Not tainted 4.8.0 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.8.2-0-g33fbe13 by qemu-project.org 04/01/2014 0000000000000000 ffff88011638f888 ffffffff81694cc3 ffff88007d802140 ffff880114fcb300 ffff880114fcc300 ffff880114fcb300 ffff88011638f8b0 ffffffff8130075c ffff88011638f940 ffff88007d802140 ffff880194fcc121 Call Trace: __dump_stack lib/dump_stack.c:15 [inline] dump_stack+0xb3/0x110 lib/dump_stack.c:51 kasan_object_err+0x1c/0x70 mm/kasan/report.c:156 print_address_description mm/kasan/report.c:194 [inline] kasan_report_error+0x1f7/0x4e0 mm/kasan/report.c:283 kasan_report+0x36/0x40 mm/kasan/report.c:303 check_memory_region_inline mm/kasan/kasan.c:292 [inline] check_memory_region+0x13e/0x1a0 mm/kasan/kasan.c:299 memcpy+0x37/0x50 mm/kasan/kasan.c:335 tty_insert_flip_string_fixed_flag+0xb5/0x130 drivers/tty/tty_buffer.c:316 tty_insert_flip_string include/linux/tty_flip.h:35 [inline] pty_write+0x7f/0xc0 drivers/tty/pty.c:115 n_hdlc_send_frames+0x1d4/0x3b0 drivers/tty/n_hdlc.c:419 n_hdlc_tty_wakeup+0x73/0xa0 drivers/tty/n_hdlc.c:496 tty_wakeup+0x92/0xb0 drivers/tty/tty_io.c:601 __start_tty.part.26+0x66/0x70 drivers/tty/tty_io.c:1018 __start_tty+0x34/0x40 drivers/tty/tty_io.c:1013 n_tty_ioctl_helper+0x146/0x1e0 drivers/tty/tty_ioctl.c:1138 n_hdlc_tty_ioctl+0xb3/0x2b0 drivers/tty/n_hdlc.c:794 tty_ioctl+0xa85/0x16d0 drivers/tty/tty_io.c:2992 vfs_ioctl fs/ioctl.c:43 [inline] do_vfs_ioctl+0x13e/0xba0 fs/ioctl.c:679 SYSC_ioctl fs/ioctl.c:694 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:685 entry_SYSCALL_64_fastpath+0x1f/0xbd Signed-off-by: DaeRyong Jeong Signed-off-by: Greg Kroah-Hartman :040000 040000 f05f38bf40a62a8555e15f3c2a9ab6a01fca19fe 8972675be62c0612095063e67d5dbd3b0b96624b M drivers revisions tested: 14, total time: 3h16m36.043491849s (build: 1h13m39.899808638s, test: 1h59m6.656236442s) first bad commit: b6da31b2c07c46f2dcad1d86caa835227a16d9ff tty: Fix data race in tty_insert_flip_string_fixed_flag cc: ["gregkh@linuxfoundation.org" "jslaby@suse.com" "linux-kernel@vger.kernel.org" "threeearcat@gmail.com"] crash: possible deadlock in console_unlock 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