syzbot


INFO: task hung in write_cache_pages

Status: auto-closed as invalid on 2019/02/22 13:49
First crash: 2458d, last: 2403d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in write_cache_pages fs mm 65 2169d 2540d 0/28 closed as dup on 2017/12/12 16:30
upstream INFO: task hung in write_cache_pages (2) mm fs C done 36 562d 632d 22/28 fixed on 2023/06/08 14:41
android-49 INFO: task hung in write_cache_pages syz 17 2410d 2050d 0/3 public: reported syz repro on 2019/04/14 09:28
upstream INFO: task hung in write_cache_pages (3) gfs2 C done done 10 321d 446d 25/28 fixed on 2024/02/21 18:23
linux-5.15 INFO: task hung in write_cache_pages 1 561d 561d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:07
linux-5.15 INFO: task hung in write_cache_pages (2) 1 2h15m 2h14m 0/3 upstream: reported on 2024/11/23 22:08

Sample crash report:
Buffer I/O error on dev loop0, logical block 10, lost async page write
INFO: task syz-executor4:8605 blocked for more than 120 seconds.
      Not tainted 4.4.120-gd63fdf6 #28
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor4   D ffff8800a837f020 26280  8605   3855 0x00000004
 ffff8800a837f020 ffff8800b0b17a00 ffff8800a837efd8 ffffffff815c40d1
 ffff8800b0b17a00 dffffc0000000000 ffff8801db31fdb8 ffff8801db31fde0
 ffff8801db31f4d8 ffff8801d4bd4800 ffff8800a72cb000 ffff8800a837f860
Call Trace:
 [<ffffffff8376582a>] schedule+0x7a/0x1b0 kernel/sched/core.c:3353
 [<ffffffff83770b40>] schedule_timeout+0x3a0/0x970 kernel/time/timer.c:1515
 [<ffffffff837637be>] io_schedule_timeout+0x1be/0x390 kernel/sched/core.c:4935
 [<ffffffff83766aeb>] io_schedule include/linux/sched.h:447 [inline]
 [<ffffffff83766aeb>] bit_wait_io+0x1b/0xc0 kernel/sched/wait.c:595
 [<ffffffff8376662f>] __wait_on_bit_lock+0x8f/0x140 kernel/sched/wait.c:434
 [<ffffffff8141ddad>] __lock_page+0x18d/0x1f0 mm/filemap.c:888
 [<ffffffff8143cedd>] lock_page include/linux/pagemap.h:458 [inline]
 [<ffffffff8143cedd>] write_cache_pages+0x73d/0xf70 mm/page-writeback.c:2217
 [<ffffffff8143d7ea>] generic_writepages+0xda/0x150 mm/page-writeback.c:2336
 [<ffffffff8144334d>] do_writepages+0xed/0x1c0 mm/page-writeback.c:2350
 [<ffffffff814235e3>] __filemap_fdatawrite_range+0x1b3/0x250 mm/filemap.c:347
 [<ffffffff81423899>] filemap_write_and_wait_range+0x59/0xb0 mm/filemap.c:535
 [<ffffffff815d0286>] blkdev_fsync+0x66/0xb0 fs/block_dev.c:355
 [<ffffffff815bd30a>] vfs_fsync_range+0x10a/0x250 fs/sync.c:195
 [<ffffffff815d19a8>] generic_write_sync include/linux/fs.h:2497 [inline]
 [<ffffffff815d19a8>] blkdev_write_iter+0x398/0x490 fs/block_dev.c:1658
 [<ffffffff8151cd27>] vfs_iter_write+0x1c7/0x2d0 fs/read_write.c:364
 [<ffffffff815b862a>] iter_file_splice_write+0x58a/0xae0 fs/splice.c:1024
 [<ffffffff815b5005>] do_splice_from fs/splice.c:1128 [inline]
 [<ffffffff815b5005>] direct_splice_actor+0x125/0x180 fs/splice.c:1294
 [<ffffffff815b6312>] splice_direct_to_actor+0x2d2/0x830 fs/splice.c:1247
 [<ffffffff815b6a17>] do_splice_direct+0x1a7/0x270 fs/splice.c:1337
 [<ffffffff81520e5c>] do_sendfile+0x54c/0xd30 fs/read_write.c:1227
 [<ffffffff81522eb3>] SYSC_sendfile64 fs/read_write.c:1282 [inline]
 [<ffffffff81522eb3>] SyS_sendfile64+0xc3/0x150 fs/read_write.c:1274
 [<ffffffff8377395f>] entry_SYSCALL_64_fastpath+0x1c/0x98
no locks held by syz-executor4/8605.
Sending NMI to all CPUs:
NMI backtrace for cpu 0
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.120-gd63fdf6 #28
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffffffff84217840 task.stack: ffffffff84200000
RIP: 0010:[<ffffffff810d0536>]  [<ffffffff810d0536>] native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:49
RSP: 0018:ffffffff84207dc0  EFLAGS: 00000246
RAX: 0000000000000007 RBX: ffffffff847ddc08 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffff8421810c
RBP: ffffffff84207dc0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: fffffbfff070889c R14: ffffffff847ebf78 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8ea2277000 CR3: 00000000ae178000 CR4: 0000000000160670
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffffffff84207df8 ffffffff81027e85 ffffffff84208000 ffffffff847ddc08
 fffffbfff070889c ffffffff847ebf78 0000000000000000 ffffffff84207e08
 ffffffff810293fa ffffffff84207e20 ffffffff81221468 dffffc0000000000
Call Trace:
 [<ffffffff81027e85>] arch_safe_halt arch/x86/include/asm/paravirt.h:117 [inline]
 [<ffffffff81027e85>] default_idle+0x55/0x3c0 arch/x86/kernel/process.c:290
 [<ffffffff810293fa>] arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:281
 [<ffffffff81221468>] default_idle_call+0x48/0x70 kernel/sched/idle.c:93
 [<ffffffff81221b6d>] cpuidle_idle_call kernel/sched/idle.c:157 [inline]
 [<ffffffff81221b6d>] cpu_idle_loop kernel/sched/idle.c:253 [inline]
 [<ffffffff81221b6d>] cpu_startup_entry+0x5fd/0x8f0 kernel/sched/idle.c:301
 [<ffffffff837608b9>] rest_init+0x189/0x190 init/main.c:410
 [<ffffffff84822811>] start_kernel+0x6b9/0x6ee init/main.c:682
 [<ffffffff84821312>] x86_64_start_reservations+0x2a/0x2c arch/x86/kernel/head64.c:196
 [<ffffffff84821454>] x86_64_start_kernel+0x140/0x163 arch/x86/kernel/head64.c:185
Code: 00 00 00 00 00 55 48 89 e5 fa 5d c3 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 fb 5d c3 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 fb f4 <5d> c3 0f 1f 84 00 00 00 00 00 55 48 89 e5 f4 5d c3 66 0f 1f 84 
NMI backtrace for cpu 1
CPU: 1 PID: 485 Comm: khungtaskd Not tainted 4.4.120-gd63fdf6 #28
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8800bb36e000 task.stack: ffff8800bb130000
RIP: 0010:[<ffffffff810c3e67>]  [<ffffffff810c3e67>] native_apic_mem_write arch/x86/include/asm/apic.h:94 [inline]
RIP: 0010:[<ffffffff810c3e67>]  [<ffffffff810c3e67>] __default_send_IPI_dest_field arch/x86/include/asm/ipi.h:119 [inline]
RIP: 0010:[<ffffffff810c3e67>]  [<ffffffff810c3e67>] _flat_send_IPI_mask arch/x86/kernel/apic/apic_flat_64.c:61 [inline]
RIP: 0010:[<ffffffff810c3e67>]  [<ffffffff810c3e67>] flat_send_IPI_mask+0xf7/0x1a0 arch/x86/kernel/apic/apic_flat_64.c:69
RSP: 0018:ffff8800bb137cb8  EFLAGS: 00000046
RAX: 0000000003000000 RBX: 0000000000000c00 RCX: 0000000000000000
RDX: 0000000000000c00 RSI: 0000000000000000 RDI: ffffffffff5fb300
RBP: ffff8800bb137ce0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000246
R13: 0000000000000003 R14: ffffffff8426f420 R15: 0000000000000002
FS:  0000000000000000(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000002375000 CR3: 00000000b0b80000 CR4: 0000000000160670
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffffffff8426f420 ffffffff847efb00 fffffbfff08fda14 dffffc0000000000
 ffff8801db31bca0 ffff8800bb137d00 ffffffff810b999b ffffffff839f63c0
 0000000000000003 ffff8800bb137d60 ffffffff81d0eff4 0000000000000000
Call Trace:
 [<ffffffff810b999b>] nmi_raise_cpu_backtrace+0x5b/0x70 arch/x86/kernel/apic/hw_nmi.c:33
 [<ffffffff81d0eff4>] nmi_trigger_all_cpu_backtrace+0x4a4/0x550 lib/nmi_backtrace.c:85
 [<ffffffff810b9a34>] arch_trigger_all_cpu_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 [<ffffffff81368c9a>] trigger_all_cpu_backtrace include/linux/nmi.h:44 [inline]
 [<ffffffff81368c9a>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff81368c9a>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff81368c9a>] watchdog+0x6fa/0xae0 kernel/hung_task.c:238
 [<ffffffff81190788>] kthread+0x268/0x300 kernel/kthread.c:211
 [<ffffffff83773d85>] ret_from_fork+0x55/0x80 arch/x86/entry/entry_64.S:506
Code: b3 5f ff f6 c4 10 75 e1 44 89 e8 c1 e0 18 89 04 25 10 b3 5f ff 44 89 fa 09 da 80 cf 04 41 83 ff 02 0f 44 d3 89 14 25 00 b3 5f ff <41> f7 c4 00 02 00 00 74 1a e8 6b 2f 17 00 4c 89 e7 57 9d 0f 1f 

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/24 02:13 https://android.googlesource.com/kernel/common android-4.4 d63fdf61a4dc 2e9d9054 .config console log report ci-android-44-kasan-gce
2018/03/08 09:41 https://android.googlesource.com/kernel/common android-4.4 d63fdf61a4dc d50edb7e .config console log report ci-android-44-kasan-gce
2018/03/04 04:07 https://android.googlesource.com/kernel/common android-4.4 855ea747806b 2c6f473e .config console log report ci-android-44-kasan-gce
2018/04/26 23:52 https://android.googlesource.com/kernel/common android-4.4 bd23e3af1765 73417389 .config console log report ci-android-44-kasan-gce-386
2018/04/06 16:48 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 4f1152d4 .config console log report ci-android-44-kasan-gce-386
2018/04/03 05:34 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 676bd07e .config console log report ci-android-44-kasan-gce-386
2018/04/02 00:35 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 dc889257 .config console log report ci-android-44-kasan-gce-386
2018/04/01 18:41 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 dc889257 .config console log report ci-android-44-kasan-gce-386
2018/03/07 04:16 https://android.googlesource.com/kernel/common android-4.4 d63fdf61a4dc c8a18476 .config console log report ci-android-44-kasan-gce-386
2018/03/02 21:49 https://android.googlesource.com/kernel/common android-4.4 855ea747806b 2c6f473e .config console log report ci-android-44-kasan-gce-386
* Struck through repros no longer work on HEAD.