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: 423d, last: 168d
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 (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in truncate_inode_pages_final ntfs3 C 9 269d 487d 0/28 auto-obsoleted due to no activity on 2024/07/05 07:04
linux-5.15 INFO: task hung in truncate_inode_pages_final origin:lts-only syz error 1 91d 92d 0/3 upstream: reported syz repro on 2024/09/19 16:08
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-executor303:4262 blocked for more than 143 seconds.
      Not tainted 6.1.66-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor303 state:D stack:0     pid:4262  ppid:4260   flags:0x00000004
Call trace:
 __switch_to+0x320/0x754 arch/arm64/kernel/process.c:553
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0xee4/0x1c98 kernel/sched/core.c:6558
 schedule+0xc4/0x170 kernel/sched/core.c:6634
 io_schedule+0x8c/0x188 kernel/sched/core.c:8786
 folio_wait_bit_common+0x65c/0xb90 mm/filemap.c:1296
 __folio_lock+0x2c/0x3c mm/filemap.c:1659
 folio_lock include/linux/pagemap.h:941 [inline]
 truncate_inode_pages_range+0x978/0xf10 mm/truncate.c:423
 truncate_inode_pages mm/truncate.c:452 [inline]
 truncate_inode_pages_final+0x90/0xc0 mm/truncate.c:487
 evict+0x26c/0x68c fs/inode.c:666
 dispose_list fs/inode.c:697 [inline]
 evict_inodes+0x6b4/0x74c fs/inode.c:747
 generic_shutdown_super+0x9c/0x328 fs/super.c:480
 kill_block_super+0x70/0xdc fs/super.c:1459
 deactivate_locked_super+0xac/0x124 fs/super.c:332
 deactivate_super+0xf0/0x110 fs/super.c:363
 cleanup_mnt+0x394/0x41c fs/namespace.c:1186
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193
 task_work_run+0x240/0x2f0 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 do_notify_resume+0x2148/0x3474 arch/arm64/kernel/signal.c:1132
 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+0x9c/0x168 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: ffff8000159f4e70 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:516
1 lock held by rcu_tasks_trace/13:
 #0: ffff8000159f5670 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:516
1 lock held by khungtaskd/28:
 #0: ffff8000159f4ca0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:305
2 locks held by getty/3983:
 #0: ffff0000d5d4a098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
 #1: ffff80001bcc02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1214 drivers/tty/n_tty.c:2188
1 lock held by syz-executor303/4262:
 #0: ffff0000d83d60e0 (&type->s_umount_key#40){+.+.}-{3:3}, at: deactivate_super+0xe8/0x110 fs/super.c:362

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


Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
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.