syzbot


INFO: task hung in read_cache_folio (4)

Status: auto-obsoleted due to no activity on 2025/05/22 08:15
Subsystems: block
[Documentation on labels]
First crash: 191d, last: 191d
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 block 1 1 757d 757d 0/29 auto-obsoleted due to no activity on 2023/11/03 07:38
upstream INFO: task hung in read_cache_folio (2) block 1 6 430d 622d 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 319d 319d 0/29 auto-obsoleted due to no activity on 2025/01/15 05:53

Sample crash report:
INFO: task udevd:6432 blocked for more than 143 seconds.
      Not tainted 6.14.0-rc3-syzkaller-ge6747d19291c #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:udevd           state:D stack:0     pid:6432  tgid:6432  ppid:6057   task_flags:0x400140 flags:0x0000000d
Call trace:
 __switch_to+0x414/0x788 arch/arm64/kernel/process.c:701 (T)
 context_switch kernel/sched/core.c:5378 [inline]
 __schedule+0x1360/0x257c kernel/sched/core.c:6765
 __schedule_loop kernel/sched/core.c:6842 [inline]
 schedule+0xbc/0x238 kernel/sched/core.c:6857
 io_schedule+0x8c/0x124 kernel/sched/core.c:7690
 folio_wait_bit_common+0x65c/0xb90 mm/filemap.c:1318
 folio_put_wait_locked mm/filemap.c:1482 [inline]
 do_read_cache_folio+0x240/0x5c0 mm/filemap.c:3942
 read_cache_folio+0x68/0x84 mm/filemap.c:3992
 read_mapping_folio include/linux/pagemap.h:1023 [inline]
 read_part_sector+0xcc/0x714 block/partitions/core.c:722
 adfspart_check_POWERTEC+0xa8/0xd98 block/partitions/acorn.c:454
 check_partition block/partitions/core.c:141 [inline]
 blk_add_partitions block/partitions/core.c:589 [inline]
 bdev_disk_changed+0x6ac/0x1208 block/partitions/core.c:693
 blkdev_get_whole+0x21c/0x418 block/bdev.c:706
 bdev_open+0x378/0xbd0 block/bdev.c:915
 blkdev_open+0x2fc/0x43c block/fops.c:652
 do_dentry_open+0xb7c/0x1538 fs/open.c:956
 vfs_open+0x48/0x2d8 fs/open.c:1086
 do_open fs/namei.c:3830 [inline]
 path_openat+0x2308/0x2b1c fs/namei.c:3989
 do_filp_open+0x1e8/0x404 fs/namei.c:4016
 do_sys_openat2+0x124/0x1b8 fs/open.c:1428
 do_sys_open fs/open.c:1443 [inline]
 __do_sys_openat fs/open.c:1459 [inline]
 __se_sys_openat fs/open.c:1454 [inline]
 __arm64_sys_openat+0x1f0/0x240 fs/open.c:1454
 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151
 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744
 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762
 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600

Showing all locks held in the system:
1 lock held by khungtaskd/31:
 #0: ffff80008fda2220 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:336
3 locks held by kworker/u8:4/287:
 #0: ffff0001b37c5798 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2c/0x44 kernel/sched/core.c:598
 #1: ffff0001b37b0408 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2e0/0x5e8 kernel/sched/psi.c:975
 #2: ffff800097988510 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_deactivate+0x74/0x378 lib/debugobjects.c:873
2 locks held by getty/6206:
 #0: ffff0000d2de40a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
 #1: ffff80009bcae2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x41c/0x1228 drivers/tty/n_tty.c:2211
1 lock held by udevd/6432:
 #0: ffff0000ca7194c8 (&disk->open_mutex){+.+.}-{4:4}, at: bdev_open+0xd0/0xbd0 block/bdev.c:903

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


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/21 08:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e6747d19291c 0808a665 .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.