R13: 00000000004c7ca0 R14: 00000000004e4d08 R15: 0000000000000005 CPU: 1 PID: 15905 Comm: syz-executor.3 Not tainted 4.14.158-syzkaller #0 ====================================================== WARNING: possible circular locking dependency detected 4.14.158-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.5/15895 is trying to acquire lock: (console_owner){-.-.}, at: [] console_trylock_spinning kernel/printk/printk.c:1658 [inline] (console_owner){-.-.}, at: [] vprintk_emit kernel/printk/printk.c:1922 [inline] (console_owner){-.-.}, at: [] vprintk_emit+0x2f1/0x600 kernel/printk/printk.c:1888 but task is already holding lock: (&(&port->lock)->rlock){-.-.}, at: [] pty_write+0xe0/0x1d0 drivers/tty/pty.c:120 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&(&port->lock)->rlock){-.-.}: lock_acquire+0x16f/0x430 kernel/locking/lockdep.c:3994 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x95/0xcd kernel/locking/spinlock.c:160 tty_port_tty_get+0x22/0x90 drivers/tty/tty_port.c:287 tty_port_default_wakeup+0x16/0x40 drivers/tty/tty_port.c:46 tty_port_tty_wakeup+0x57/0x70 drivers/tty/tty_port.c:389 uart_write_wakeup+0x46/0x70 drivers/tty/serial/serial_core.c:116 serial8250_tx_chars+0x40d/0xa10 drivers/tty/serial/8250/8250_port.c:1810 serial8250_handle_irq.part.0+0x206/0x250 drivers/tty/serial/8250/8250_port.c:1883 serial8250_handle_irq drivers/tty/serial/8250/8250_port.c:1869 [inline] serial8250_default_handle_irq+0xa1/0x120 drivers/tty/serial/8250/8250_port.c:1899 serial8250_interrupt+0xe9/0x1a0 drivers/tty/serial/8250/8250_core.c:129 __handle_irq_event_percpu+0x125/0x7f0 kernel/irq/handle.c:147 handle_irq_event_percpu+0x65/0x130 kernel/irq/handle.c:187 handle_irq_event+0xa7/0x134 kernel/irq/handle.c:204 handle_edge_irq+0x22b/0x840 kernel/irq/chip.c:770 generic_handle_irq_desc include/linux/irqdesc.h:159 [inline] handle_irq+0x39/0x50 arch/x86/kernel/irq_64.c:87 do_IRQ+0x99/0x1d0 arch/x86/kernel/irq.c:230 ret_from_intr+0x0/0x1e arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irqrestore+0x95/0xe0 kernel/locking/spinlock.c:192 spin_unlock_irqrestore include/linux/spinlock.h:372 [inline] uart_write+0x29a/0x4f0 drivers/tty/serial/serial_core.c:625 process_output_block drivers/tty/n_tty.c:595 [inline] n_tty_write+0x38b/0xee0 drivers/tty/n_tty.c:2333 do_tty_write drivers/tty/tty_io.c:959 [inline] tty_write+0x3f6/0x700 drivers/tty/tty_io.c:1043 redirected_tty_write+0xa3/0xb0 drivers/tty/tty_io.c:1064 __vfs_write+0x105/0x6b0 fs/read_write.c:480 vfs_write+0x198/0x500 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xfd/0x230 fs/read_write.c:582 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 -> #1 (&port_lock_key){-.-.}: lock_acquire+0x16f/0x430 kernel/locking/lockdep.c:3994 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x95/0xcd kernel/locking/spinlock.c:160 serial8250_console_write+0x709/0x930 drivers/tty/serial/8250/8250_port.c:3232 univ8250_console_write+0x5f/0x70 drivers/tty/serial/8250/8250_core.c:597 call_console_drivers kernel/printk/printk.c:1725 [inline] console_unlock+0x9ba/0xed0 kernel/printk/printk.c:2397 vprintk_emit kernel/printk/printk.c:1923 [inline] vprintk_emit+0x1f9/0x600 kernel/printk/printk.c:1888 vprintk_default+0x28/0x30 kernel/printk/printk.c:1963 vprintk_func+0x5d/0x159 kernel/printk/printk_safe.c:401 printk+0x9e/0xbc kernel/printk/printk.c:1996 register_console+0x614/0x9e0 kernel/printk/printk.c:2716 univ8250_console_init+0x33/0x3f drivers/tty/serial/8250/8250_core.c:692 console_init+0x4d/0x5d kernel/printk/printk.c:2797 start_kernel+0x43c/0x6fd init/main.c:634 x86_64_start_reservations+0x29/0x2b arch/x86/kernel/head64.c:399 x86_64_start_kernel+0x77/0x7b arch/x86/kernel/head64.c:380 secondary_startup_64+0xa5/0xb0 arch/x86/kernel/head_64.S:240 -> #0 (console_owner){-.-.}: check_prev_add kernel/locking/lockdep.c:1901 [inline] check_prevs_add kernel/locking/lockdep.c:2018 [inline] validate_chain kernel/locking/lockdep.c:2460 [inline] __lock_acquire+0x2cb3/0x4620 kernel/locking/lockdep.c:3487 lock_acquire+0x16f/0x430 kernel/locking/lockdep.c:3994 console_trylock_spinning kernel/printk/printk.c:1679 [inline] vprintk_emit kernel/printk/printk.c:1922 [inline] vprintk_emit+0x32e/0x600 kernel/printk/printk.c:1888 vprintk_default+0x28/0x30 kernel/printk/printk.c:1963 vprintk_func+0x5d/0x159 kernel/printk/printk_safe.c:401 printk+0x9e/0xbc kernel/printk/printk.c:1996 fail_dump lib/fault-inject.c:44 [inline] should_fail.cold+0xe4/0x159 lib/fault-inject.c:149 should_failslab+0xdb/0x130 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x71/0x7a0 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] tty_buffer_alloc drivers/tty/tty_buffer.c:169 [inline] __tty_buffer_request_room+0x1a4/0x500 drivers/tty/tty_buffer.c:267 tty_insert_flip_string_fixed_flag+0x8a/0x1c0 drivers/tty/tty_buffer.c:312 tty_insert_flip_string include/linux/tty_flip.h:37 [inline] pty_write+0x113/0x1d0 drivers/tty/pty.c:122 n_hdlc_send_frames+0x238/0x3e0 drivers/tty/n_hdlc.c:404 n_hdlc_tty_write+0x4ca/0x5b0 drivers/tty/n_hdlc.c:714 do_tty_write drivers/tty/tty_io.c:959 [inline] tty_write+0x3f6/0x700 drivers/tty/tty_io.c:1043 __vfs_write+0x105/0x6b0 fs/read_write.c:480 vfs_write+0x198/0x500 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xfd/0x230 fs/read_write.c:582 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 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 *** 3 locks held by syz-executor.5/15895: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376 #1: (&tty->atomic_write_lock){+.+.}, at: [] tty_write_lock+0x20/0x60 drivers/tty/tty_io.c:885 #2: (&(&port->lock)->rlock){-.-.}, at: [] pty_write+0xe0/0x1d0 drivers/tty/pty.c:120 stack backtrace: CPU: 0 PID: 15895 Comm: syz-executor.5 Not tainted 4.14.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x142/0x197 lib/dump_stack.c:58 print_circular_bug.isra.0.cold+0x1cc/0x28f kernel/locking/lockdep.c:1258 check_prev_add kernel/locking/lockdep.c:1901 [inline] check_prevs_add kernel/locking/lockdep.c:2018 [inline] validate_chain kernel/locking/lockdep.c:2460 [inline] __lock_acquire+0x2cb3/0x4620 kernel/locking/lockdep.c:3487 lock_acquire+0x16f/0x430 kernel/locking/lockdep.c:3994 console_trylock_spinning kernel/printk/printk.c:1679 [inline] vprintk_emit kernel/printk/printk.c:1922 [inline] vprintk_emit+0x32e/0x600 kernel/printk/printk.c:1888 vprintk_default+0x28/0x30 kernel/printk/printk.c:1963 vprintk_func+0x5d/0x159 kernel/printk/printk_safe.c:401 printk+0x9e/0xbc kernel/printk/printk.c:1996 fail_dump lib/fault-inject.c:44 [inline] should_fail.cold+0xe4/0x159 lib/fault-inject.c:149 should_failslab+0xdb/0x130 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x71/0x7a0 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] tty_buffer_alloc drivers/tty/tty_buffer.c:169 [inline] __tty_buffer_request_room+0x1a4/0x500 drivers/tty/tty_buffer.c:267 tty_insert_flip_string_fixed_flag+0x8a/0x1c0 drivers/tty/tty_buffer.c:312 tty_insert_flip_string include/linux/tty_flip.h:37 [inline] pty_write+0x113/0x1d0 drivers/tty/pty.c:122 n_hdlc_send_frames+0x238/0x3e0 drivers/tty/n_hdlc.c:404 n_hdlc_tty_write+0x4ca/0x5b0 drivers/tty/n_hdlc.c:714 do_tty_write drivers/tty/tty_io.c:959 [inline] tty_write+0x3f6/0x700 drivers/tty/tty_io.c:1043 __vfs_write+0x105/0x6b0 fs/read_write.c:480 vfs_write+0x198/0x500 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xfd/0x230 fs/read_write.c:582 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a909 RSP: 002b:00007fb13a4cdc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fb13a4cdc90 RCX: 000000000045a909 RDX: 00000000fffffe00 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb13a4ce6d4 R13: 00000000004c7ca0 R14: 00000000004e4d08 R15: 0000000000000005 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x142/0x197 lib/dump_stack.c:58 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10f/0x159 lib/fault-inject.c:149 should_failslab+0xdb/0x130 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x2f0/0x7a0 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] n_hdlc_alloc drivers/tty/n_hdlc.c:857 [inline] n_hdlc_tty_open+0x261/0x4c9 drivers/tty/n_hdlc.c:342 tty_ldisc_open.isra.0+0x73/0xb0 drivers/tty/tty_ldisc.c:474 tty_set_ldisc+0x29a/0x610 drivers/tty/tty_ldisc.c:599 tiocsetd drivers/tty/tty_io.c:2351 [inline] tty_ioctl+0x95b/0x1320 drivers/tty/tty_io.c:2595 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x7ae/0x1060 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a909 RSP: 002b:00007f0fe8348c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f0fe8348c90 RCX: 000000000045a909 RDX: 0000000020000000 RSI: 0000000000005423 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f0fe83496d4 R13: 00000000004c5daa R14: 00000000004dc0c8 R15: 0000000000000005 kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (ffff88809fac6b20): kobject_uevent_env FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 0 PID: 15925 Comm: syz-executor.5 Not tainted 4.14.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x142/0x197 lib/dump_stack.c:58 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10f/0x159 lib/fault-inject.c:149 should_failslab+0xdb/0x130 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x71/0x7a0 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] tty_buffer_alloc drivers/tty/tty_buffer.c:169 [inline] __tty_buffer_request_room+0x1a4/0x500 drivers/tty/tty_buffer.c:267 tty_insert_flip_string_fixed_flag+0x8a/0x1c0 drivers/tty/tty_buffer.c:312 tty_insert_flip_string include/linux/tty_flip.h:37 [inline] pty_write+0x113/0x1d0 drivers/tty/pty.c:122 n_hdlc_send_frames+0x238/0x3e0 drivers/tty/n_hdlc.c:404 n_hdlc_tty_write+0x4ca/0x5b0 drivers/tty/n_hdlc.c:714 do_tty_write drivers/tty/tty_io.c:959 [inline] tty_write+0x3f6/0x700 drivers/tty/tty_io.c:1043 __vfs_write+0x105/0x6b0 fs/read_write.c:480 vfs_write+0x198/0x500 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xfd/0x230 fs/read_write.c:582 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a909 RSP: 002b:00007fb13a4cdc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fb13a4cdc90 RCX: 000000000045a909 RDX: 00000000fffffe00 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb13a4ce6d4 R13: 00000000004c7ca0 R14: 00000000004e4d08 R15: 0000000000000005 kobject: 'loop0' (ffff88809fac6b20): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (ffff8880a40e4da0): kobject_uevent_env kobject: 'loop2' (ffff8880a40e4da0): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop3' (ffff8880a413ce20): kobject_uevent_env kobject: 'loop3' (ffff8880a413ce20): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop4' (ffff8880a4176ea0): kobject_uevent_env kobject: 'loop4' (ffff8880a4176ea0): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop3' (ffff8880a413ce20): kobject_uevent_env kobject: 'loop3' (ffff8880a413ce20): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 15975 Comm: syz-executor.5 Not tainted 4.14.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x142/0x197 lib/dump_stack.c:58 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10f/0x159 lib/fault-inject.c:149 should_failslab+0xdb/0x130 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x71/0x7a0 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] tty_buffer_alloc drivers/tty/tty_buffer.c:169 [inline] __tty_buffer_request_room+0x1a4/0x500 drivers/tty/tty_buffer.c:267 tty_insert_flip_string_fixed_flag+0x8a/0x1c0 drivers/tty/tty_buffer.c:312 tty_insert_flip_string include/linux/tty_flip.h:37 [inline] pty_write+0x113/0x1d0 drivers/tty/pty.c:122 n_hdlc_send_frames+0x238/0x3e0 drivers/tty/n_hdlc.c:404 n_hdlc_tty_write+0x4ca/0x5b0 drivers/tty/n_hdlc.c:714 do_tty_write drivers/tty/tty_io.c:959 [inline] tty_write+0x3f6/0x700 drivers/tty/tty_io.c:1043 __vfs_write+0x105/0x6b0 fs/read_write.c:480 vfs_write+0x198/0x500 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xfd/0x230 fs/read_write.c:582 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a909 RSP: 002b:00007fb13a4cdc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fb13a4cdc90 RCX: 000000000045a909 RDX: 00000000fffffe00 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb13a4ce6d4 R13: 00000000004c7ca0 R14: 00000000004e4d08 R15: 0000000000000005 kobject: 'loop0' (ffff88809fac6b20): kobject_uevent_env kobject: 'loop0' (ffff88809fac6b20): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (ffff8880a40e4da0): kobject_uevent_env kobject: 'loop2' (ffff8880a40e4da0): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop4' (ffff8880a4176ea0): kobject_uevent_env kobject: 'loop4' (ffff8880a4176ea0): fill_kobj_path: path = '/devices/virtual/block/loop4' kauditd_printk_skb: 6 callbacks suppressed audit: type=1326 audit(1576448154.097:383): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=16009 comm="syz-executor.4" exe="/root/syz-executor.4" sig=31 arch=c000003e syscall=228 compat=0 ip=0x45d74a code=0xffff0000 audit: type=1804 audit(1576448154.157:384): pid=16013 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir174318430/syzkaller.kgvYmL/134/bus" dev="sda1" ino=16773 res=1 audit: type=1804 audit(1576448154.167:385): pid=16013 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="ToMToU" comm="syz-executor.4" name="/root/syzkaller-testdir174318430/syzkaller.kgvYmL/134/bus" dev="sda1" ino=16773 res=1 kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' audit: type=1804 audit(1576448154.167:386): pid=16013 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="ToMToU" comm="syz-executor.4" name="/root/syzkaller-testdir174318430/syzkaller.kgvYmL/134/bus" dev="sda1" ino=16773 res=1 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 16020 Comm: syz-executor.5 Not tainted 4.14.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x142/0x197 lib/dump_stack.c:58 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10f/0x159 lib/fault-inject.c:149 should_failslab+0xdb/0x130 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x71/0x7a0 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] tty_buffer_alloc drivers/tty/tty_buffer.c:169 [inline] __tty_buffer_request_room+0x1a4/0x500 drivers/tty/tty_buffer.c:267 tty_insert_flip_string_fixed_flag+0x8a/0x1c0 drivers/tty/tty_buffer.c:312 tty_insert_flip_string include/linux/tty_flip.h:37 [inline] pty_write+0x113/0x1d0 drivers/tty/pty.c:122 n_hdlc_send_frames+0x238/0x3e0 drivers/tty/n_hdlc.c:404 n_hdlc_tty_write+0x4ca/0x5b0 drivers/tty/n_hdlc.c:714 do_tty_write drivers/tty/tty_io.c:959 [inline] tty_write+0x3f6/0x700 drivers/tty/tty_io.c:1043 __vfs_write+0x105/0x6b0 fs/read_write.c:480 vfs_write+0x198/0x500 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xfd/0x230 fs/read_write.c:582 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a909 RSP: 002b:00007fb13a4cdc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fb13a4cdc90 RCX: 000000000045a909 RDX: 00000000fffffe00 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb13a4ce6d4 R13: 00000000004c7ca0 R14: 00000000004e4d08 R15: 0000000000000005 kobject: 'loop2' (ffff8880a40e4da0): kobject_uevent_env kobject: 'loop2' (ffff8880a40e4da0): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (ffff88809fac6b20): kobject_uevent_env kobject: 'loop0' (ffff88809fac6b20): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop4' (ffff8880a4176ea0): kobject_uevent_env kobject: 'loop4' (ffff8880a4176ea0): fill_kobj_path: path = '/devices/virtual/block/loop4' audit: type=1326 audit(1576448155.237:387): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=16050 comm="syz-executor.4" exe="/root/syz-executor.4" sig=31 arch=c000003e syscall=228 compat=0 ip=0x45d74a code=0xffff0000 kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' audit: type=1804 audit(1576448155.297:388): pid=16056 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir174318430/syzkaller.kgvYmL/135/bus" dev="sda1" ino=16691 res=1 kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' audit: type=1804 audit(1576448155.307:389): pid=16056 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="ToMToU" comm="syz-executor.4" name="/root/syzkaller-testdir174318430/syzkaller.kgvYmL/135/bus" dev="sda1" ino=16691 res=1 kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (ffff88809fac6b20): kobject_uevent_env kobject: 'loop0' (ffff88809fac6b20): fill_kobj_path: path = '/devices/virtual/block/loop0' audit: type=1804 audit(1576448155.307:390): pid=16056 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="ToMToU" comm="syz-executor.4" name="/root/syzkaller-testdir174318430/syzkaller.kgvYmL/135/bus" dev="sda1" ino=16691 res=1 kobject: 'loop2' (ffff8880a40e4da0): kobject_uevent_env kobject: 'loop2' (ffff8880a40e4da0): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop4' (ffff8880a4176ea0): kobject_uevent_env kobject: 'loop4' (ffff8880a4176ea0): fill_kobj_path: path = '/devices/virtual/block/loop4' audit: type=1326 audit(1576448156.277:391): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=16103 comm="syz-executor.4" exe="/root/syz-executor.4" sig=31 arch=c000003e syscall=228 compat=0 ip=0x45d74a code=0xffff0000 kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' audit: type=1804 audit(1576448156.437:392): pid=16110 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir174318430/syzkaller.kgvYmL/136/bus" dev="sda1" ino=16786 res=1 kobject: 'loop0' (ffff88809fac6b20): kobject_uevent_env kobject: 'loop0' (ffff88809fac6b20): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (ffff8880a40e4da0): kobject_uevent_env kobject: 'loop2' (ffff8880a40e4da0): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop4' (ffff8880a4176ea0): kobject_uevent_env kobject: 'loop4' (ffff8880a4176ea0): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop0' (ffff88809fac6b20): kobject_uevent_env kobject: 'loop0' (ffff88809fac6b20): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (ffff8880a40e4da0): kobject_uevent_env kobject: 'loop2' (ffff8880a40e4da0): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'vcs31' (ffff888057bfebd0): kobject_add_internal: parent: 'vc', set: 'devices' kobject: 'vcs31' (ffff888057bfebd0): kobject_uevent_env kobject: 'vcs31' (ffff888057bfebd0): fill_kobj_path: path = '/devices/virtual/vc/vcs31' kobject: 'vcsa31' (ffff888094fcaa10): kobject_add_internal: parent: 'vc', set: 'devices' kobject: 'vcsa31' (ffff888094fcaa10): kobject_uevent_env kobject: 'vcsa31' (ffff888094fcaa10): fill_kobj_path: path = '/devices/virtual/vc/vcsa31' kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop2' (ffff8880a40e4da0): kobject_uevent_env kobject: 'loop2' (ffff8880a40e4da0): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (ffff88809fac6b20): kobject_uevent_env kobject: 'loop0' (ffff88809fac6b20): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop4' (ffff8880a4176ea0): kobject_uevent_env kobject: 'loop4' (ffff8880a4176ea0): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (ffff88809fac6b20): kobject_uevent_env kobject: 'loop0' (ffff88809fac6b20): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (ffff8880a40e4da0): kobject_uevent_env kobject: 'loop2' (ffff8880a40e4da0): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop4' (ffff8880a4176ea0): kobject_uevent_env kobject: 'loop4' (ffff8880a4176ea0): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kauditd_printk_skb: 10 callbacks suppressed audit: type=1326 audit(1576448159.597:403): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=16272 comm="syz-executor.4" exe="/root/syz-executor.4" sig=31 arch=c000003e syscall=228 compat=0 ip=0x45d74a code=0xffff0000 kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' audit: type=1804 audit(1576448159.657:404): pid=16280 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir174318430/syzkaller.kgvYmL/139/bus" dev="sda1" ino=17051 res=1 kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env audit: type=1804 audit(1576448159.747:405): pid=16280 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="ToMToU" comm="syz-executor.4" name="/root/syzkaller-testdir174318430/syzkaller.kgvYmL/139/bus" dev="sda1" ino=17051 res=1 kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' audit: type=1804 audit(1576448159.757:406): pid=16280 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="ToMToU" comm="syz-executor.4" name="/root/syzkaller-testdir174318430/syzkaller.kgvYmL/139/bus" dev="sda1" ino=17051 res=1 kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop0' (ffff88809fac6b20): kobject_uevent_env kobject: 'loop0' (ffff88809fac6b20): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (ffff8880a40e4da0): kobject_uevent_env kobject: 'loop2' (ffff8880a40e4da0): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop3' (ffff8880a413ce20): kobject_uevent_env kobject: 'loop3' (ffff8880a413ce20): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop4' (ffff8880a4176ea0): kobject_uevent_env kobject: 'loop4' (ffff8880a4176ea0): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env audit: type=1326 audit(1576448160.857:407): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=16350 comm="syz-executor.4" exe="/root/syz-executor.4" sig=31 arch=c000003e syscall=228 compat=0 ip=0x45d74a code=0xffff0000 kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (ffff88809fac6b20): kobject_uevent_env audit: type=1804 audit(1576448160.937:408): pid=16358 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir174318430/syzkaller.kgvYmL/140/bus" dev="sda1" ino=17186 res=1 kobject: 'loop0' (ffff88809fac6b20): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop1' (ffff8880a40a84a0): kobject_uevent_env kobject: 'loop1' (ffff8880a40a84a0): fill_kobj_path: path = '/devices/virtual/block/loop1' audit: type=1804 audit(1576448160.947:409): pid=16358 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="ToMToU" comm="syz-executor.4" name="/root/syzkaller-testdir174318430/syzkaller.kgvYmL/140/bus" dev="sda1" ino=17186 res=1 kobject: 'loop2' (ffff8880a40e4da0): kobject_uevent_env kobject: 'loop2' (ffff8880a40e4da0): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop3' (ffff8880a413ce20): kobject_uevent_env kobject: 'loop3' (ffff8880a413ce20): fill_kobj_path: path = '/devices/virtual/block/loop3' audit: type=1804 audit(1576448160.957:410): pid=16358 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="ToMToU" comm="syz-executor.4" name="/root/syzkaller-testdir174318430/syzkaller.kgvYmL/140/bus" dev="sda1" ino=17186 res=1 kobject: 'loop5' (ffff8880a41c4f20): kobject_uevent_env kobject: 'loop5' (ffff8880a41c4f20): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop3' (ffff8880a413ce20): kobject_uevent_env kobject: 'loop3' (ffff8880a413ce20): fill_kobj_path: path = '/devices/virtual/block/loop3'