syzbot


INFO: task hung in release_metapage

Status: upstream: reported C repro on 2024/06/28 06:33
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+132b6f3a657830b63905@syzkaller.appspotmail.com
First crash: 146d, last: 3d17h
Bug presence (2)
Date Name Commit Repro Result
2024/11/10 linux-5.15.y (ToT) 3c17fc483905 C [report] INFO: task hung in release_metapage
2024/11/10 upstream (ToT) de2f378f2b77 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 release_metapage 43 94d 142d 0/3 auto-obsoleted due to no activity on 2024/10/28 12:02
upstream INFO: task hung in release_metapage jfs 125 105d 152d 0/28 auto-obsoleted due to no activity on 2024/10/17 00:22
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/11/16 22:20 1m fix candidate upstream error job log

Sample crash report:
INFO: task syz-executor261:4036 blocked for more than 143 seconds.
      Not tainted 5.15.171-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor261 state:D stack:    0 pid: 4036 ppid:  4035 flags:0x00000005
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]
 release_metapage+0x144/0x918 fs/jfs/jfs_metapage.c:736
 discard_metapage fs/jfs/jfs_metapage.h:88 [inline]
 __get_metapage+0xb38/0x1128 fs/jfs/jfs_metapage.c:645
 jfs_readdir+0x2028/0x385c fs/jfs/jfs_dtree.c:3316
 iterate_dir+0x1f4/0x4ec
 __do_sys_getdents64 fs/readdir.c:369 [inline]
 __se_sys_getdents64 fs/readdir.c:354 [inline]
 __arm64_sys_getdents64+0x1c4/0x4c4 fs/readdir.c:354
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 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: ffff800014ca22e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:311
2 locks held by getty/3783:
 #0: ffff0000d4084098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x40/0x50 drivers/tty/tty_ldsem.c:340
 #1: ffff80001d63b2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1204 drivers/tty/n_tty.c:2158
2 locks held by syz-executor261/4036:
 #0: ffff0000dc062370 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x128/0x170 fs/file.c:1057
 #1: ffff0000e1cd33c0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: iterate_dir+0x124/0x4ec fs/readdir.c:57

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


Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/09 09:00 linux-5.15.y 3c17fc483905 6b856513 .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 release_metapage
2024/10/09 03:58 linux-5.15.y 3a5928702e71 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in release_metapage
2024/08/02 14:06 linux-5.15.y 7e89efd3ae1c 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in release_metapage
2024/08/01 20:11 linux-5.15.y 7e89efd3ae1c 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in release_metapage
2024/07/01 07:05 linux-5.15.y 4878aadf2d15 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in release_metapage
2024/06/30 18:12 linux-5.15.y 4878aadf2d15 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in release_metapage
2024/06/28 18:52 linux-5.15.y 4878aadf2d15 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in release_metapage
2024/06/28 06:33 linux-5.15.y 4878aadf2d15 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in release_metapage
2024/11/18 01:12 linux-5.15.y 0a51d2d4527b cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in release_metapage
2024/11/09 06:12 linux-5.15.y 3c17fc483905 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in release_metapage
2024/08/02 13:39 linux-5.15.y 7e89efd3ae1c 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in release_metapage
2024/07/02 15:04 linux-5.15.y 4878aadf2d15 07f0a0a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in release_metapage
2024/06/28 20:46 linux-5.15.y 4878aadf2d15 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in release_metapage
* Struck through repros no longer work on HEAD.