syzbot


INFO: task hung in block_invalidate_folio

Status: upstream: reported on 2026/03/16 23:48
Reported-by: syzbot+ae6451f2388fdaa56124@syzkaller.appspotmail.com
First crash: 3d17h, last: 3d17h
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: task hung in block_invalidate_folio (2) 1 2 13d 34d 0/3 upstream: reported on 2026/02/14 00:20
upstream INFO: task hung in block_invalidate_folio (2) gfs2 1 C error 145 3d04h 221d 0/29 upstream: reported C repro on 2025/08/11 03:13
upstream INFO: task hung in block_invalidate_folio gfs2 1 2 438d 449d 0/29 auto-obsoleted due to no activity on 2025/03/07 11:30
linux-6.1 INFO: task hung in block_invalidate_folio 1 syz error 1 308d 308d 0/3 auto-obsoleted due to no activity on 2025/08/24 15:41

Sample crash report:
INFO: task kworker/0:1H:1059 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:1H    state:D stack:27088 pid:1059  ppid:2      flags:0x00004000
Workqueue: glock_workqueue glock_work_func
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0x1553/0x45a0 kernel/sched/core.c:6700
 schedule+0xbd/0x170 kernel/sched/core.c:6774
 io_schedule+0x80/0xd0 kernel/sched/core.c:9023
 bit_wait_io+0x11/0xd0 kernel/sched/wait_bit.c:209
 __wait_on_bit_lock+0xdc/0x580 kernel/sched/wait_bit.c:90
 out_of_line_wait_on_bit_lock+0x13c/0x190 kernel/sched/wait_bit.c:117
 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline]
 __lock_buffer fs/buffer.c:71 [inline]
 lock_buffer include/linux/buffer_head.h:385 [inline]
 discard_buffer fs/buffer.c:1564 [inline]
 block_invalidate_folio+0x389/0x9b0 fs/buffer.c:1621
 folio_invalidate mm/truncate.c:158 [inline]
 truncate_cleanup_folio+0x220/0x5c0 mm/truncate.c:178
 truncate_inode_pages_range+0x28a/0xfb0 mm/truncate.c:392
 do_xmote+0x779/0x12b0 fs/gfs2/glock.c:764
 glock_work_func+0x29e/0x4c0 fs/gfs2/glock.c:1119
 process_one_work kernel/workqueue.c:2653 [inline]
 process_scheduled_works+0xa5d/0x15d0 kernel/workqueue.c:2730
 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2811
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
INFO: task syz-executor:5765 blocked for more than 144 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:22192 pid:5765  ppid:1      flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0x1553/0x45a0 kernel/sched/core.c:6700
 schedule+0xbd/0x170 kernel/sched/core.c:6774
 schedule_timeout+0xc1/0x2d0 kernel/time/timer.c:2144
 do_wait_for_common kernel/sched/completion.c:95 [inline]
 __wait_for_common kernel/sched/completion.c:116 [inline]
 wait_for_common kernel/sched/completion.c:127 [inline]
 wait_for_completion+0x2cb/0x5b0 kernel/sched/completion.c:148
 __flush_work+0x913/0xaa0 kernel/workqueue.c:3471
 flush_work kernel/workqueue.c:3492 [inline]
 flush_delayed_work+0x131/0x180 kernel/workqueue.c:3616
 gfs2_clear_rgrpd+0xd7/0x680 fs/gfs2/rgrp.c:731
 gfs2_put_super+0x8ab/0x930 fs/gfs2/super.c:647
 generic_shutdown_super+0x134/0x2b0 fs/super.c:693
 kill_block_super+0x44/0x90 fs/super.c:1660
 deactivate_locked_super+0x97/0x100 fs/super.c:481
 cleanup_mnt+0x43b/0x4d0 fs/namespace.c:1259
 task_work_run+0x1d4/0x260 kernel/task_work.c:245
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177
 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
 do_syscall_64+0x61/0xa0 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fc315f9d9d7
RSP: 002b:00007ffcd3e59608 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007fc316032050 RCX: 00007fc315f9d9d7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffcd3e596c0
RBP: 00007ffcd3e596c0 R08: 00007ffcd3e5a6c0 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffcd3e5a750
R13: 00007fc316032050 R14: 000000000002685a R15: 00007ffcd3e5a790
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/29:
 #0: ffffffff8d132060 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 #0: ffffffff8d132060 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
 #0: ffffffff8d132060 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6633
2 locks held by kworker/0:1H/1059:
 #0: ffff8881400ea938 ((wq_completion)glock_workqueue){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2628 [inline]
 #0: ffff8881400ea938 ((wq_completion)glock_workqueue){+.+.}-{0:0}, at: process_scheduled_works+0x96f/0x15d0 kernel/workqueue.c:2730
 #1: ffffc9000447fd00 ((work_completion)(&(&gl->gl_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2628 [inline]
 #1: ffffc9000447fd00 ((work_completion)(&(&gl->gl_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x96f/0x15d0 kernel/workqueue.c:2730
2 locks held by kworker/u4:8/2915:
 #0: ffff888017c71538 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2628 [inline]
 #0: ffff888017c71538 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x96f/0x15d0 kernel/workqueue.c:2730
 #1: ffff8880b8e289c0 (psi_seq){-.-.}-{0:0}, at: psi_sched_switch kernel/sched/stats.h:189 [inline]
 #1: ffff8880b8e289c0 (psi_seq){-.-.}-{0:0}, at: __schedule+0x2176/0x45a0 kernel/sched/core.c:6695
1 lock held by udevd/5137:
 #0: ffff8880b8e3c018 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559
2 locks held by getty/5531:
 #0: ffff88802d4bb0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc9000326e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x433/0x1390 drivers/tty/n_tty.c:2217
1 lock held by syz-executor/5765:
 #0: ffff88801ebb60e0 (&type->s_umount_key#95){+.+.}-{3:3}, at: __super_lock fs/super.c:56 [inline]
 #0: ffff88801ebb60e0 (&type->s_umount_key#95){+.+.}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline]
 #0: ffff88801ebb60e0 (&type->s_umount_key#95){+.+.}-{3:3}, at: deactivate_super+0xa4/0xe0 fs/super.c:513
2 locks held by kworker/u4:17/6274:
1 lock held by syz-executor/7447:

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

NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x3a6/0x3e0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x17a/0x2f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xf3d/0xf80 kernel/hung_task.c:379
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 59 Comm: kworker/u4:4 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
Workqueue: events_unbound nsim_dev_trap_report_work
RIP: 0010:unwind_next_frame+0x646/0x2970 arch/x86/kernel/unwind_orc.c:505
Code: 42 0f b6 04 28 84 c0 0f 85 d0 1c 00 00 4c 89 f8 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 dc 1c 00 00 45 0f b6 76 01 41 83 e6 07 <4c> 89 f7 48 c7 c6 40 07 fa 8c e8 ab e4 4b 00 4d 85 f6 74 10 41 83
RSP: 0018:ffffc900015a74f0 EFLAGS: 00000202
RAX: 0000000000000000 RBX: ffffffff8f0d73d2 RCX: ffff88801c6cda00
RDX: 0000000000000000 RSI: ffffffff813b6761 RDI: ffffffff813b658f
RBP: ffffc900015a7678 R08: ffffc900015a7601 R09: 0000000000000000
R10: ffffc900015a7628 R11: fffff520002b4ed1 R12: ffffc900015a7628
R13: dffffc0000000000 R14: 0000000000000002 R15: ffffffff8f0d73d7
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3a637aa286 CR3: 000000000cf32000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 __unwind_start+0x66a/0x7e0 arch/x86/kernel/unwind_orc.c:760
 unwind_start arch/x86/include/asm/unwind.h:64 [inline]
 arch_stack_walk+0xf8/0x190 arch/x86/kernel/stacktrace.c:24
 stack_trace_save+0xaa/0x100 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:46 [inline]
 kasan_set_track+0x4e/0x70 mm/kasan/common.c:53
 __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:329
 kasan_slab_alloc include/linux/kasan.h:188 [inline]
 slab_post_alloc_hook+0x6e/0x4b0 mm/slab.h:767
 slab_alloc_node mm/slub.c:3495 [inline]
 kmem_cache_alloc_node+0x14c/0x320 mm/slub.c:3540
 __alloc_skb+0x103/0x2c0 net/core/skbuff.c:643
 alloc_skb include/linux/skbuff.h:1316 [inline]
 nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:748 [inline]
 nsim_dev_trap_report drivers/net/netdevsim/dev.c:805 [inline]
 nsim_dev_trap_report_work+0x293/0xb00 drivers/net/netdevsim/dev.c:851
 process_one_work kernel/workqueue.c:2653 [inline]
 process_scheduled_works+0xa5d/0x15d0 kernel/workqueue.c:2730
 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2811
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/03/16 23:47 linux-6.6.y 4fc00fe35d46 0737c18f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in block_invalidate_folio
* Struck through repros no longer work on HEAD.