syzbot


INFO: task hung in truncate_inode_pages_range

Status: upstream: reported C repro on 2023/05/23 07:52
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+feb41121c21e06304e8f@syzkaller.appspotmail.com
First crash: 398d, last: 31d
Bug presence (1)
Date Name Commit Repro Result
2023/05/23 upstream (ToT) ae8373a5add4 C [report] INFO: task hung in truncate_inode_pages_range
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in truncate_inode_pages_range C error 1 997d 1237d 0/1 upstream: reported C repro on 2021/02/03 07:50
android-44 INFO: task hung in truncate_inode_pages_range 7 2252d 2329d 0/2 auto-closed as invalid on 2019/02/22 13:19
upstream INFO: task hung in truncate_inode_pages_range (5) fs mm 1 548d 548d 0/27 auto-obsoleted due to no activity on 2023/04/15 01:38
linux-4.14 INFO: task hung in truncate_inode_pages_range C error 2 669d 1312d 0/1 upstream: reported C repro on 2020/11/19 23:29
android-49 INFO: task hung in truncate_inode_pages_range 86 2170d 2329d 0/3 auto-closed as invalid on 2019/02/22 14:33
upstream INFO: task hung in truncate_inode_pages_range (2) fs mm 10 1669d 1739d 0/27 auto-closed as invalid on 2020/02/27 00:38
upstream INFO: task hung in truncate_inode_pages_range (4) block 1 930d 930d 0/27 closed as invalid on 2022/02/08 09:50
upstream INFO: task hung in truncate_inode_pages_range (3) fs 1 1453d 1453d 0/27 auto-closed as invalid on 2020/08/31 17:47
upstream INFO: task hung in truncate_inode_pages_range (6) squashfs fuse C 1 398d 394d 0/27 auto-obsoleted due to no activity on 2024/02/27 16:22
upstream INFO: task hung in truncate_inode_pages_range exfat 151 2053d 2388d 0/27 closed as dup on 2017/12/12 16:49
android-49 INFO: task hung in truncate_inode_pages_range (2) 1 1779d 1779d 0/3 auto-closed as invalid on 2019/12/08 23:58
Fix bisection attempts (10)
Created Duration User Patch Repo Result
2024/05/24 05:07 2h11m bisect fix linux-6.1.y job log (0) log
2024/04/20 14:17 2h04m bisect fix linux-6.1.y job log (0) log
2024/03/18 10:46 1h58m bisect fix linux-6.1.y job log (0) log
2024/02/14 13:57 2h13m bisect fix linux-6.1.y job log (0) log
2024/01/06 04:23 2h10m bisect fix linux-6.1.y job log (0) log
2023/12/07 02:04 2h10m bisect fix linux-6.1.y job log (0) log
2023/11/06 08:35 2h18m bisect fix linux-6.1.y job log (0) log
2023/10/04 16:45 1h59m bisect fix linux-6.1.y job log (0) log
2023/08/12 22:29 4h28m bisect fix linux-6.1.y job log (0) log
2023/06/22 23:35 1h27m bisect fix linux-6.1.y job log (0) log

Sample crash report:
INFO: task syz-executor230:4270 blocked for more than 143 seconds.
      Not tainted 6.1.29-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor230 state:D stack:0     pid:4270  ppid:4268   flags:0x00000000
Call trace:
 __switch_to+0x320/0x754 arch/arm64/kernel/process.c:553
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0xee4/0x1c98 kernel/sched/core.c:6554
 schedule+0xc4/0x170 kernel/sched/core.c:6630
 io_schedule+0x8c/0x188 kernel/sched/core.c:8774
 folio_wait_bit_common+0x65c/0xb90 mm/filemap.c:1296
 __folio_lock+0x2c/0x3c mm/filemap.c:1659
 folio_lock include/linux/pagemap.h:939 [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:1450
 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+0x2144/0x3470 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:581

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffff800015774ef0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:510
1 lock held by rcu_tasks_trace/13:
 #0: ffff8000157756f0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:510
1 lock held by khungtaskd/28:
 #0: ffff800015774d20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:305
2 locks held by getty/3973:
 #0: ffff0000d644e098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
 #1: ffff80001ca402f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1210 drivers/tty/n_tty.c:2177
1 lock held by syz-executor230/4270:
 #0: ffff0000dd06a0e0 (&type->s_umount_key#40){+.+.}-{3:3}, at: deactivate_super+0xe8/0x110 fs/super.c:362

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


Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/23 10:24 linux-6.1.y fa74641fb6b9 4bce1a3e .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_range
2023/05/23 07:52 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in truncate_inode_pages_range
* Struck through repros no longer work on HEAD.