syzbot


INFO: task hung in truncate_inode_pages_final

Status: upstream: reported syz repro on 2024/09/19 16:08
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+4ac9d9eefe9d7c7e2858@syzkaller.appspotmail.com
First crash: 20d, last: 19d
Bug presence (2)
Date Name Commit Repro Result
2024/09/20 linux-5.15.y (ToT) 3a5928702e71 C [report] INFO: task hung in truncate_inode_pages_final
2024/09/20 upstream (ToT) baeb9a7d8b60 C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: task hung in truncate_inode_pages_final origin:upstream C error 6 96d 351d 0/3 upstream: reported C repro on 2023/10/25 05:01
upstream INFO: task hung in truncate_inode_pages_final ntfs3 C 9 197d 415d 0/28 auto-obsoleted due to no activity on 2024/07/05 07:04

Sample crash report:
INFO: task syz-executor:4137 blocked for more than 143 seconds.
      Not tainted 5.15.167-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:    0 pid: 4137 ppid:     1 flags:0x00000009
Call trace:
 __switch_to+0x308/0x5e8 arch/arm64/kernel/process.c:518
 context_switch kernel/sched/core.c:5027 [inline]
 __schedule+0xf10/0x1e48 kernel/sched/core.c:6373
 schedule+0x11c/0x1c8 kernel/sched/core.c:6456
 io_schedule+0x8c/0x194 kernel/sched/core.c:8481
 wait_on_page_bit_common+0x6fc/0xc14 mm/filemap.c:1356
 __lock_page+0x8c/0xa8 mm/filemap.c:1648
 lock_page include/linux/pagemap.h:625 [inline]
 truncate_inode_pages_range+0x888/0xbe0 mm/truncate.c:394
 truncate_inode_pages mm/truncate.c:425 [inline]
 truncate_inode_pages_final+0x94/0xd0 mm/truncate.c:464
 ntfs_evict_big_inode+0x3c/0x430 fs/ntfs/inode.c:2251
 evict+0x418/0x894 fs/inode.c:622
 dispose_list fs/inode.c:655 [inline]
 evict_inodes+0x6b4/0x74c fs/inode.c:705
 generic_shutdown_super+0x9c/0x29c fs/super.c:454
 kill_block_super+0x70/0xdc fs/super.c:1425
 deactivate_locked_super+0xb8/0x13c fs/super.c:335
 deactivate_super+0x108/0x128 fs/super.c:366
 cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1150
 task_work_run+0x130/0x1e4 kernel/task_work.c:188
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
 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+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
 el0t_64_sync_handler+0x84/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: ffff800014c917e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:311
2 locks held by getty/3779:
 #0: ffff0000d4508098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x40/0x50 drivers/tty/tty_ldsem.c:340
 #1: ffff80001d68e2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1204 drivers/tty/n_tty.c:2158
1 lock held by syz-executor/4137:
 #0: ffff0000d51fe0e0 (&type->s_umount_key#50){+.+.}-{3:3}, at: deactivate_super+0x100/0x128 fs/super.c:365
4 locks held by syz.0.3133/13664:

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


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
* Struck through repros no longer work on HEAD.