Buffer I/O error on dev loop0, logical block 0, lost async page write Buffer I/O error on dev loop0, logical block 16, async page read INFO: task syz-executor1:32747 blocked for more than 120 seconds. Not tainted 4.16.0+ #288 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor1 D21344 32747 4532 0x20020006 Call Trace: context_switch kernel/sched/core.c:2848 [inline] __schedule+0x8fb/0x1ef0 kernel/sched/core.c:3490 schedule+0xf5/0x430 kernel/sched/core.c:3549 io_schedule+0x1c/0x70 kernel/sched/core.c:5169 wait_on_page_bit_common mm/filemap.c:1099 [inline] __lock_page+0x574/0x720 mm/filemap.c:1272 lock_page include/linux/pagemap.h:483 [inline] write_cache_pages+0xb33/0x14b0 mm/page-writeback.c:2206 generic_writepages+0xe9/0x150 mm/page-writeback.c:2325 blkdev_writepages+0x1d/0x30 fs/block_dev.c:1954 do_writepages+0xff/0x170 mm/page-writeback.c:2340 __filemap_fdatawrite_range+0x32f/0x460 mm/filemap.c:444 file_write_and_wait_range+0x8a/0x100 mm/filemap.c:752 blkdev_fsync+0x67/0xb0 fs/block_dev.c:623 vfs_fsync_range+0x110/0x260 fs/sync.c:201 generic_write_sync include/linux/fs.h:2680 [inline] blkdev_write_iter+0x2e6/0x3e0 fs/block_dev.c:1910 call_write_iter include/linux/fs.h:1782 [inline] do_iter_readv_writev+0x55c/0x830 fs/read_write.c:680 do_iter_write+0x154/0x540 fs/read_write.c:959 vfs_iter_write+0x77/0xb0 fs/read_write.c:972 iter_file_splice_write+0x7db/0xf30 fs/splice.c:749 do_splice_from fs/splice.c:851 [inline] direct_splice_actor+0x125/0x180 fs/splice.c:1018 splice_direct_to_actor+0x2c1/0x820 fs/splice.c:973 do_splice_direct+0x29b/0x3c0 fs/splice.c:1061 do_sendfile+0x5c9/0xe80 fs/read_write.c:1440 C_SYSC_sendfile fs/read_write.c:1516 [inline] compat_SyS_sendfile+0xea/0x1a0 fs/read_write.c:1505 do_syscall_32_irqs_on arch/x86/entry/common.c:330 [inline] do_fast_syscall_32+0x3ec/0xf9f arch/x86/entry/common.c:392 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f07c99 RSP: 002b:00000000f5f030ac EFLAGS: 00000282 ORIG_RAX: 00000000000000bb RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 0000000000000014 RDX: 00000000200ddff8 RSI: 0000000002000001 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Showing all locks held in the system: 3 locks held by kworker/u4:2/29: #0: 00000000dfb559a1 ((wq_completion)"writeback"){+.+.}, at: __write_once_size include/linux/compiler.h:215 [inline] #0: 00000000dfb559a1 ((wq_completion)"writeback"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 00000000dfb559a1 ((wq_completion)"writeback"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: 00000000dfb559a1 ((wq_completion)"writeback"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:57 [inline] #0: 00000000dfb559a1 ((wq_completion)"writeback"){+.+.}, at: set_work_data kernel/workqueue.c:619 [inline] #0: 00000000dfb559a1 ((wq_completion)"writeback"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:646 [inline] #0: 00000000dfb559a1 ((wq_completion)"writeback"){+.+.}, at: process_one_work+0xb83/0x1c40 kernel/workqueue.c:2084 #1: 0000000065355a24 ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0xbd9/0x1c40 kernel/workqueue.c:2088 #2: 0000000032431a77 (&type->s_umount_key#35){++++}, at: trylock_super+0x20/0x100 fs/super.c:395 2 locks held by khungtaskd/877: #0: 00000000eb6d142b (rcu_read_lock){....}, at: check_hung_uninterruptible_tasks kernel/hung_task.c:175 [inline] #0: 00000000eb6d142b (rcu_read_lock){....}, at: watchdog+0x1d6/0xd70 kernel/hung_task.c:249 #1: 00000000a535ee3c (tasklist_lock){.+.+}, at: debug_show_all_locks+0xd3/0x3d0 kernel/locking/lockdep.c:4470 1 lock held by rsyslogd/4363: #0: 0000000011ac1e00 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x165/0x1a0 fs/file.c:766 2 locks held by getty/4454: #0: 00000000b21c9e0a (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000f5048924 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x2ef/0x1a40 drivers/tty/n_tty.c:2131 2 locks held by getty/4455: #0: 0000000020b6a590 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000ceb9752f (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x2ef/0x1a40 drivers/tty/n_tty.c:2131 2 locks held by getty/4456: #0: 000000006aae3085 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000539fab74 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x2ef/0x1a40 drivers/tty/n_tty.c:2131 2 locks held by getty/4457: #0: 000000006fa238b5 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000fab9f60d (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x2ef/0x1a40 drivers/tty/n_tty.c:2131 2 locks held by getty/4458: #0: 0000000025b3451c (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000df0448b5 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x2ef/0x1a40 drivers/tty/n_tty.c:2131 2 locks held by getty/4459: #0: 000000001cf5e1da (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000b5c03d30 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x2ef/0x1a40 drivers/tty/n_tty.c:2131 2 locks held by getty/14954: #0: 00000000e290495e (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000008590620d (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x2ef/0x1a40 drivers/tty/n_tty.c:2131 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 877 Comm: khungtaskd Not tainted 4.16.0+ #288 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+0x1a7/0x27d lib/dump_stack.c:53 nmi_cpu_backtrace+0x1e0/0x220 lib/nmi_backtrace.c:103 nmi_trigger_cpumask_backtrace+0x123/0x180 lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_all_cpu_backtrace include/linux/nmi.h:138 [inline] check_hung_task kernel/hung_task.c:132 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:190 [inline] watchdog+0x969/0xd70 kernel/hung_task.c:249 kthread+0x33c/0x400 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:411 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.16.0+ #288 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:lock_release+0x496/0xa40 kernel/locking/lockdep.c:3941 RSP: 0018:ffff8801db107a68 EFLAGS: 00000806 RAX: dffffc0000000000 RBX: ffff8801d9eb6340 RCX: 1ffff1003b3d6d75 RDX: 1ffff1003b3d6d76 RSI: 0000000000000001 RDI: ffff8801d9eb6bb4 RBP: ffff8801db107b98 R08: 0000000000000000 R09: 1ffff1003b620f56 R10: ffff8801db107a80 R11: 0000000000000000 R12: 0000000000000000 R13: ffff8801d9eb6340 R14: ffff8801db107ab0 R15: 1ffff1003b620f52 FS: 0000000000000000(0000) GS:ffff8801db100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2592412140 CR3: 00000001ccd0a000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: seqcount_lockdep_reader_access include/linux/seqlock.h:82 [inline] read_seqcount_begin include/linux/seqlock.h:164 [inline] ktime_get+0x144/0x3a0 kernel/time/timekeeping.c:762 tick_nohz_irq_enter kernel/time/tick-sched.c:1124 [inline] tick_irq_enter+0x9e/0x390 kernel/time/tick-sched.c:1145 irq_enter+0xb6/0xd0 kernel/softirq.c:346 scheduler_ipi+0x317/0xa40 kernel/sched/core.c:1768 smp_reschedule_interrupt+0xe6/0x650 arch/x86/kernel/smp.c:277 reschedule_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:886 RIP: 0010:native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:54 RSP: 0018:ffff8801d9ecfcb0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff02 RAX: dffffc0000000000 RBX: 1ffff1003b3d9f99 RCX: 0000000000000000 RDX: 1ffffffff10a2558 RSI: 0000000000000001 RDI: ffffffff88512ac0 RBP: ffff8801d9ecfcb0 R08: ffffed003b6246c3 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 R13: ffff8801d9ecfd68 R14: ffffffff88eccfa0 R15: 0000000000000000 arch_safe_halt arch/x86/include/asm/paravirt.h:94 [inline] default_idle+0xbf/0x430 arch/x86/kernel/process.c:354 arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:345 default_idle_call+0x36/0x90 kernel/sched/idle.c:93 cpuidle_idle_call kernel/sched/idle.c:151 [inline] do_idle+0x24a/0x3b0 kernel/sched/idle.c:241 cpu_startup_entry+0x104/0x120 kernel/sched/idle.c:346 start_secondary+0x40a/0x590 arch/x86/kernel/smpboot.c:267 secondary_startup_64+0xa5/0xb0 arch/x86/kernel/head_64.S:242 Code: 85 f9 02 00 00 4d 89 f1 48 b8 00 00 00 00 00 fc ff df 49 c1 e9 03 41 c6 04 01 f8 65 48 8b 1c 25 c0 ed 01 00 48 8d bb 74 08 00 00 <48> b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 14 02