syzbot


INFO: task hung in truncate_inode_pages_final

Status: upstream: reported C repro on 2024/09/19 16:08
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+4ac9d9eefe9d7c7e2858@syzkaller.appspotmail.com
First crash: 352d, last: 15d
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2025/07/10 upstream (ToT) bc9ff192a6c9 C [report] INFO: task hung in truncate_inode_pages_final
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: task hung in truncate_inode_pages_final origin:upstream 1 C error 19 5d17h 682d 0/3 upstream: reported C repro on 2023/10/25 05:01
upstream INFO: task hung in truncate_inode_pages_final ntfs3 1 C 9 528d 747d 0/29 auto-obsoleted due to no activity on 2024/07/05 07:04
upstream INFO: task hung in truncate_inode_pages_final (2) arm 1 C 24 1d14h 53d 0/29 upstream: reported C repro on 2025/07/15 13:09
Last patch testing requests (3)
Created Duration User Patch Repo Result
2025/05/29 22:13 19m retest repro linux-5.15.y report log
2025/03/16 08:05 20m retest repro linux-5.15.y report log
2025/01/04 19:46 18m retest repro linux-5.15.y report log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2025/05/11 19:33 23m fix candidate upstream error job log
2024/12/16 00:59 8m fix candidate upstream error job log
2024/10/26 18:52 5m bisect fix linux-5.15.y error job log

Sample crash report:
INFO: task syz-executor:4153 blocked for more than 143 seconds.
      Not tainted 5.15.189-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:    0 pid: 4153 ppid:     1 flags:0x00000001
Call trace:
 __switch_to+0x2f4/0x558 arch/arm64/kernel/process.c:521
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0xe00/0x1c0c kernel/sched/core.c:6376
 schedule+0x11c/0x1c8 kernel/sched/core.c:6459
 io_schedule+0x84/0x160 kernel/sched/core.c:8484
 wait_on_page_bit_common+0x61c/0xa74 mm/filemap.c:1356
 __lock_page+0x8c/0xa8 mm/filemap.c:1648
 lock_page include/linux/pagemap.h:625 [inline]
 truncate_inode_pages_range+0x714/0x9b8 mm/truncate.c:394
 truncate_inode_pages mm/truncate.c:425 [inline]
 truncate_inode_pages_final+0x90/0xcc mm/truncate.c:464
 evict+0x3d4/0x810 fs/inode.c:649
 dispose_list fs/inode.c:680 [inline]
 evict_inodes+0x64c/0x6e4 fs/inode.c:734
 generic_shutdown_super+0x9c/0x2f0 fs/super.c:454
 kill_block_super+0x70/0xdc fs/super.c:1427
 deactivate_locked_super+0xb8/0x13c fs/super.c:335
 deactivate_super+0xf8/0x118 fs/super.c:366
 cleanup_mnt+0x3a4/0x458 fs/namespace.c:1139
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1146
 task_work_run+0x12c/0x1e0 kernel/task_work.c:188
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 do_notify_resume+0x24b4/0x3128 arch/arm64/kernel/signal.c:949
 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
 el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609
 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffff800014341360 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:311
2 locks held by getty/3820:
 #0: ffff0000d41ca098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x40/0x50 drivers/tty/tty_ldsem.c:340
 #1: ffff80001bd5b2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x2f0/0xf6c drivers/tty/n_tty.c:2158
1 lock held by syz-executor/4153:
 #0: ffff0000d7c660e0 (&type->s_umount_key#52){+.+.}-{3:3}, at: deactivate_super+0xf0/0x118 fs/super.c:365
1 lock held by syz-executor/4176:
 #0: ffff0000d74b20e0 (&type->s_umount_key#52){+.+.}-{3:3}, at: deactivate_super+0xf0/0x118 fs/super.c:365
1 lock held by syz-executor/4206:
 #0: ffff0000edd860e0 (&type->s_umount_key#52){+.+.}-{3:3}, at: deactivate_super+0xf0/0x118 fs/super.c:365
1 lock held by syz-executor/4227:
 #0: ffff0000d9bae0e0 (&type->s_umount_key#52){+.+.}-{3:3}, at: deactivate_super+0xf0/0x118 fs/super.c:365
1 lock held by syz-executor/4249:
 #0: ffff0000ce78c0e0 (&type->s_umount_key#52){+.+.}-{3:3}, at: deactivate_super+0xf0/0x118 fs/super.c:365
1 lock held by syz-executor/4286:
 #0: ffff0000ca6cc0e0 (&type->s_umount_key#52){+.+.}-{3:3}, at: deactivate_super+0xf0/0x118 fs/super.c:365
1 lock held by syz-executor/4317:
 #0: ffff0000f0c8a0e0 (&type->s_umount_key#52){+.+.}-{3:3}, at: deactivate_super+0xf0/0x118 fs/super.c:365
1 lock held by syz-executor/4348:
 #0: ffff0000ef4c00e0 (&type->s_umount_key#52){+.+.}-{3:3}, at: deactivate_super+0xf0/0x118 fs/super.c:365

=============================================


Crashes (19):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/05 21:22 linux-5.15.y c79648372d02 37880f40 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/09 18:56 linux-5.15.y 3dea0e7f549e f4e5e155 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2024/09/19 16:07 linux-5.15.y 3a5928702e71 c673ca06 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/08/22 08:36 linux-5.15.y c79648372d02 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/08/06 22:28 linux-5.15.y c79648372d02 9a42d6b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/08/04 23:32 linux-5.15.y c79648372d02 f5bcc8dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/31 12:18 linux-5.15.y c79648372d02 f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/28 14:18 linux-5.15.y c79648372d02 6654ea9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/23 12:21 linux-5.15.y c79648372d02 e1dd4f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/23 04:01 linux-5.15.y c79648372d02 e1dd4f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/22 14:26 linux-5.15.y c79648372d02 8e9d1dc1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/18 01:22 linux-5.15.y c79648372d02 0d1223f1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/16 20:23 linux-5.15.y 89950c454265 44f8051e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/16 07:30 linux-5.15.y 89950c454265 124ec9cc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/10 17:08 linux-5.15.y 2f693b607545 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/10 15:05 linux-5.15.y 2f693b607545 956bd956 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/10 15:05 linux-5.15.y 2f693b607545 956bd956 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/09 08:20 linux-5.15.y 3dea0e7f549e f4e5e155 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/09 08:20 linux-5.15.y 3dea0e7f549e f4e5e155 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in truncate_inode_pages_final
* Struck through repros no longer work on HEAD.