syzbot


INFO: task hung in truncate_inode_pages_final

Status: upstream: reported C repro on 2023/10/25 05:01
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+84ce17c50fe335d1f70c@syzkaller.appspotmail.com
First crash: 630d, last: 6d00h
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2023/10/25 upstream (ToT) 4f82870119a4 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
upstream INFO: task hung in truncate_inode_pages_final ntfs3 1 C 9 476d 695d 0/29 auto-obsoleted due to no activity on 2024/07/05 07:04
linux-5.15 INFO: task hung in truncate_inode_pages_final origin:upstream 1 C error 8 12h07m 300d 0/3 upstream: reported C repro on 2024/09/19 16:08
upstream INFO: task hung in truncate_inode_pages_final (2) bcachefs squashfs 1 C 4 3d15h 1d06h 0/29 upstream: reported C repro on 2025/07/15 13:09
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2024/08/14 23:36 1m bisect fix linux-6.1.y error job log
2024/07/06 01:05 3h28m bisect fix linux-6.1.y OK (0) job log log
2024/05/27 10:09 2h26m bisect fix linux-6.1.y OK (0) job log log
2024/04/22 02:56 2h13m bisect fix linux-6.1.y OK (0) job log log
2024/03/21 04:47 2h46m bisect fix linux-6.1.y OK (0) job log log
2024/02/20 00:55 2h31m bisect fix linux-6.1.y OK (0) job log log
2024/01/10 00:17 2h49m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
INFO: task syz-executor:4411 blocked for more than 143 seconds.
      Not tainted 6.1.143-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:0     pid:4411  ppid:1      flags:0x00000001
Call trace:
 __switch_to+0x2f4/0x568 arch/arm64/kernel/process.c:555
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0xdd4/0x1b2c kernel/sched/core.c:6561
 schedule+0xc4/0x170 kernel/sched/core.c:6637
 io_schedule+0x84/0x154 kernel/sched/core.c:8797
 folio_wait_bit_common+0x56c/0x9c4 mm/filemap.c:1324
 __folio_lock mm/filemap.c:1687 [inline]
 folio_lock include/linux/pagemap.h:974 [inline]
 __filemap_get_folio+0x4ec/0xab0 mm/filemap.c:1959
 truncate_inode_pages_range+0x34c/0xd20 mm/truncate.c:377
 truncate_inode_pages mm/truncate.c:451 [inline]
 truncate_inode_pages_final+0x8c/0xbc mm/truncate.c:486
 evict+0x3d4/0x810 fs/inode.c:707
 dispose_list fs/inode.c:738 [inline]
 evict_inodes+0x64c/0x6e4 fs/inode.c:792
 generic_shutdown_super+0x9c/0x324 fs/super.c:480
 kill_block_super+0x70/0xdc fs/super.c:1470
 deactivate_locked_super+0xac/0x124 fs/super.c:332
 deactivate_super+0xe8/0x108 fs/super.c:363
 cleanup_mnt+0x37c/0x404 fs/namespace.c:1182
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1189
 task_work_run+0x1ec/0x270 kernel/task_work.c:203
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 do_notify_resume+0x1f70/0x2b0c arch/arm64/kernel/signal.c:1137
 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
 el0_svc+0x98/0x138 arch/arm64/kernel/entry-common.c:638
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffff800015287770 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x40/0xbb4 kernel/rcu/tasks.h:517
1 lock held by rcu_tasks_trace/13:
 #0: ffff800015287f90 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x40/0xbb4 kernel/rcu/tasks.h:517
3 locks held by kworker/1:1/24:
 #0: ffff0000c0020938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x6b4/0x13a8 kernel/workqueue.c:2265
 #1: ffff80001c957c20 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x6f8/0x13a8 kernel/workqueue.c:2267
 #2: ffff0000d4a0d240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x1c8/0x263c drivers/net/netdevsim/fib.c:1491
1 lock held by khungtaskd/28:
 #0: ffff800015286e00 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:349
2 locks held by kworker/u4:3/185:
2 locks held by getty/4070:
 #0: ffff0000d88b8098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
 #1: ffff80001ce762f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x2ec/0xf9c drivers/tty/n_tty.c:2198
1 lock held by syz-executor/4411:
 #0: ffff0000e10360e0 (&type->s_umount_key#51){+.+.}-{3:3}, at: deactivate_super+0xe0/0x108 fs/super.c:362
1 lock held by syz-executor/4475:
 #0: ffff0000d936e0e0 (&type->s_umount_key#51){+.+.}-{3:3}, at: deactivate_super+0xe0/0x108 fs/super.c:362
1 lock held by syz-executor/4497:
 #0: ffff0000cd1aa0e0 (&type->s_umount_key#51){+.+.}-{3:3}, at: deactivate_super+0xe0/0x108 fs/super.c:362
1 lock held by syz-executor/4517:
 #0: ffff0000d59740e0 (&type->s_umount_key#51){+.+.}-{3:3}, at: deactivate_super+0xe0/0x108 fs/super.c:362
1 lock held by syz-executor/4544:
 #0: ffff0000d5c160e0 (&type->s_umount_key#51){+.+.}-{3:3}, at: deactivate_super+0xe0/0x108 fs/super.c:362
1 lock held by syz-executor/4575:
 #0: ffff0000dde8c0e0 (&type->s_umount_key#51){+.+.}-{3:3}, at: deactivate_super+0xe0/0x108 fs/super.c:362
1 lock held by syz-executor/4605:
 #0: ffff0000c6e580e0 (&type->s_umount_key#51){+.+.}-{3:3}, at: deactivate_super+0xe0/0x108 fs/super.c:362
1 lock held by syz-executor/4636:
 #0: ffff0000cb10a0e0 (&type->s_umount_key#51){+.+.}-{3:3}, at: deactivate_super+0xe0/0x108 fs/super.c:362
2 locks held by syz.8.32/4701:
 #0: ffff0000d35b4210 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: prepare_bprm_creds fs/exec.c:1500 [inline]
 #0: ffff0000d35b4210 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: bprm_execve+0xb4/0x154c fs/exec.c:1842
 #1: ffff0000e97634a8 (mapping.invalidate_lock#3){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:813 [inline]
 #1: ffff0000e97634a8 (mapping.invalidate_lock#3){.+.+}-{3:3}, at: filemap_update_page mm/filemap.c:2542 [inline]
 #1: ffff0000e97634a8 (mapping.invalidate_lock#3){.+.+}-{3:3}, at: filemap_get_pages mm/filemap.c:2689 [inline]
 #1: ffff0000e97634a8 (mapping.invalidate_lock#3){.+.+}-{3:3}, at: filemap_read+0x684/0x1fd8 mm/filemap.c:2759

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


Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/07 14:28 linux-6.1.y 04d1ccaa9c28 4f67c4ae .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2023/12/11 00:10 linux-6.1.y 6c6a6c7e211c 28b24332 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2023/10/25 07:39 linux-6.1.y 7d24402875c7 17e6d526 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2023/11/19 01:52 linux-6.1.y fb2635ac69ab cb976f63 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2023/11/13 10:16 linux-6.1.y fb2635ac69ab 6d6dbf8a .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/10 18:44 linux-6.1.y dfc486ec9cce 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/08 16:57 linux-6.1.y 04d1ccaa9c28 4d9fdfa4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2025/07/07 10:59 linux-6.1.y 04d1ccaa9c28 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2023/11/01 05:32 linux-6.1.y 32c9cdbe383c 69904c9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in truncate_inode_pages_final
2023/10/25 05:00 linux-6.1.y 7d24402875c7 17e6d526 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in truncate_inode_pages_final
* Struck through repros no longer work on HEAD.