syzbot


INFO: task hung in read_cache_folio

Status: auto-obsoleted due to no activity on 2023/11/03 07:38
Subsystems: block
[Documentation on labels]
First crash: 757d, last: 757d
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: task hung in read_cache_folio origin:lts-only 1 syz 2 12d 18d 0/3 upstream: reported syz repro on 2025/08/13 08:15
upstream INFO: task hung in read_cache_folio (4) block 1 1 191d 191d 0/29 auto-obsoleted due to no activity on 2025/05/22 08:15
upstream INFO: task hung in read_cache_folio (2) block 1 6 429d 621d 0/29 auto-obsoleted due to no activity on 2024/09/26 05:52
upstream INFO: task hung in read_cache_folio (3) block 1 1 318d 318d 0/29 auto-obsoleted due to no activity on 2025/01/15 05:53

Sample crash report:
INFO: task syz-executor.4:14615 blocked for more than 143 seconds.
      Not tainted 6.5.0-rc4-syzkaller-g86d7896480b0 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:0     pid:14615 ppid:6030   flags:0x0000000d
Call trace:
 __switch_to+0x320/0x754 arch/arm64/kernel/process.c:556
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0x1364/0x23b4 kernel/sched/core.c:6710
 schedule+0xc4/0x170 kernel/sched/core.c:6786
 io_schedule+0x8c/0x12c kernel/sched/core.c:9028
 folio_wait_bit_common+0x65c/0xb90 mm/filemap.c:1304
 folio_put_wait_locked mm/filemap.c:1468 [inline]
 do_read_cache_folio+0xa8/0x548 mm/filemap.c:3678
 read_cache_folio+0x68/0x84 mm/filemap.c:3728
 read_mapping_folio include/linux/pagemap.h:782 [inline]
 read_part_sector+0xdc/0x2c8 block/partitions/core.c:717
 adfspart_check_POWERTEC+0xcc/0x6f0 block/partitions/acorn.c:454
 check_partition block/partitions/core.c:138 [inline]
 blk_add_partitions block/partitions/core.c:599 [inline]
 bdev_disk_changed+0x654/0x10b8 block/partitions/core.c:688
 blkdev_get_whole+0x2a4/0x354 block/bdev.c:670
 blkdev_get_by_dev+0x330/0x55c block/bdev.c:812
 blkdev_open+0x124/0x2ac block/fops.c:517
 do_dentry_open+0x710/0x11b8 fs/open.c:914
 vfs_open+0x7c/0x90 fs/open.c:1048
 do_open fs/namei.c:3636 [inline]
 path_openat+0x1f2c/0x27f8 fs/namei.c:3793
 do_filp_open+0x1bc/0x3cc fs/namei.c:3820
 do_sys_openat2+0x124/0x1b8 fs/open.c:1407
 do_sys_open fs/open.c:1422 [inline]
 __do_sys_openat fs/open.c:1438 [inline]
 __se_sys_openat fs/open.c:1433 [inline]
 __arm64_sys_openat+0x1f0/0x240 fs/open.c:1433
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x244 arch/arm64/kernel/syscall.c:139
 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:188
 el0_svc+0x4c/0x160 arch/arm64/kernel/entry-common.c:647
 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:665
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
 #0: ffff80008e271850 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:522
1 lock held by rcu_tasks_trace/14:
 #0: ffff80008e271c10 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:522
1 lock held by khungtaskd/28:
 #0: ffff80008e271680 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:302
3 locks held by kworker/u4:4/623:
2 locks held by getty/5749:
 #0: ffff0000d9802098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
 #1: ffff8000959502f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1214 drivers/tty/n_tty.c:2187
1 lock held by syz-executor.4/14615:
 #0: ffff0000cd38d4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x114/0x55c block/bdev.c:803
1 lock held by syz-executor.4/14699:
 #0: ffff0000cd38d4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x114/0x55c block/bdev.c:803
1 lock held by syz-executor.4/14750:
 #0: ffff0000cd38d4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x114/0x55c block/bdev.c:803

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


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/05 07:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 86d7896480b0 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in read_cache_folio
* Struck through repros no longer work on HEAD.