INFO: task hung in blkdev_fsync

Status: upstream: reported on 2026/11/10 03:38
Reported-by: syzbot+b24507fd548ab7f37a22@syzkaller.appspotmail.com
First crash: 17d, last: 17d
▶ ▼ Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-44 INFO: task hung in blkdev_fsync 1 42 3139d 3216d 0/2 auto-closed as invalid on 2019/02/22 13:49
upstream INFO: task hung in blkdev_fsync (2) kasan mm 1 1 1821d 1821d 0/30 closed as invalid on 2022/02/08 09:40
upstream INFO: task hung in blkdev_fsync fs 1 29 3152d 3215d 0/30 closed as dup on 2018/02/14 15:37
android-49 INFO: task hung in blkdev_fsync 1 61 3065d 3215d 0/3 auto-closed as invalid on 2019/02/22 15:27

Sample crash report:
INFO: task syz.0.787:7974 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.787       state:D stack:24200 pid:7974  ppid:5789   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5393 [inline]
 __schedule+0x156f/0x4720 kernel/sched/core.c:6722
 schedule+0xbd/0x170 kernel/sched/core.c:6796
 io_schedule+0x80/0xd0 kernel/sched/core.c:9075
 folio_wait_bit_common+0x886/0xff0 mm/filemap.c:1329
 folio_wait_writeback+0xe2/0x1e0 mm/page-writeback.c:3090
 __filemap_fdatawait_range+0x171/0x3c0 mm/filemap.c:525
 file_write_and_wait_range+0x207/0x280 mm/filemap.c:785
 blkdev_fsync+0x77/0xc0 block/fops.c:529
 generic_write_sync+0x18d/0x200 include/linux/fs.h:2678
 blkdev_write_iter+0x4a9/0x5a0 block/fops.c:695
 do_iter_readv_writev fs/read_write.c:-1 [inline]
 do_iter_write+0x747/0xc50 fs/read_write.c:860
 iter_file_splice_write+0x6b6/0xcf0 fs/splice.c:736
 do_splice_from fs/splice.c:933 [inline]
 direct_splice_actor+0xe8/0x130 fs/splice.c:1142
 splice_direct_to_actor+0x30b/0x8e0 fs/splice.c:1088
 do_splice_direct+0x1d5/0x2f0 fs/splice.c:1194
 do_sendfile+0x52b/0xe80 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64+0x145/0x1a0 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f0e2c5a8f19
RSP: 002b:00007f0e2d49e028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f0e2c825fa0 RCX: 00007f0e2c5a8f19
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004
RBP: 00007f0e2c637f6d R08: 0000000000000000 R09: 0000000000000000
R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0e2c826038 R14: 00007f0e2c825fa0 R15: 00007fff1a0c9958
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/29:
 #0: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 #0: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
 #0: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6669
3 locks held by kworker/u4:4/60:
4 locks held by kworker/u4:6/1148:
 #0: ffff88814005cd38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #0: ffff88814005cd38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #1: ffffc90004527d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #1: ffffc90004527d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #2: ffff8880337fc0e0 (&type->s_umount_key#32){++++}-{3:3}, at: super_trylock_shared+0x20/0xf0 fs/super.c:604
 #3: ffff8880337fec58 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: ext4_writepages_down_read fs/ext4/ext4.h:1770 [inline]
 #3: ffff8880337fec58 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: ext4_writepages+0x1a4/0x350 fs/ext4/inode.c:2821
2 locks held by getty/5541:
 #0: ffff8880333720a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc900032862f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x43a/0x1400 drivers/tty/n_tty.c:2217
3 locks held by syz-executor/5772:
 #0: ffff8880313b3120 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline]
 #0: ffff8880313b3120 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5382 [inline]
 #0: ffff8880313b3120 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x32/0x2f0 mm/memory.c:5442
 #1: ffff8880337fc510 (sb_pagefaults){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1634 [inline]
 #1: ffff8880337fc510 (sb_pagefaults){.+.+}-{0:0}, at: sb_start_pagefault include/linux/fs.h:1738 [inline]
 #1: ffff8880337fc510 (sb_pagefaults){.+.+}-{0:0}, at: ext4_page_mkwrite+0x1e2/0x11a0 fs/ext4/inode.c:6305
 #2: ffff88802e600990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x1f3f/0x2170 fs/jbd2/transaction.c:448
3 locks held by syz.4.790/7995:
 #0: ffff888032cd81a0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline]
 #0: ffff888032cd81a0 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5382 [inline]
 #0: ffff888032cd81a0 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x32/0x2f0 mm/memory.c:5442
 #1: ffff8880337fc510 (sb_pagefaults){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1634 [inline]
 #1: ffff8880337fc510 (sb_pagefaults){.+.+}-{0:0}, at: sb_start_pagefault include/linux/fs.h:1738 [inline]
 #1: ffff8880337fc510 (sb_pagefaults){.+.+}-{0:0}, at: ext4_page_mkwrite+0x1e2/0x11a0 fs/ext4/inode.c:6305
 #2: ffff88802e600990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x1f3f/0x2170 fs/jbd2/transaction.c:448
2 locks held by syz-executor/8003:
 #0: ffff8880337fc418 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:412
 #1: ffff888077643610 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:839 [inline]
 #1: ffff888077643610 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: filename_create+0x20f/0x450 fs/namei.c:3949
3 locks held by syz-executor/8004:
 #0: ffff8880337fc418 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:412
 #1: ffff888077643610 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:839 [inline]
 #1: ffff888077643610 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: filename_create+0x20f/0x450 fs/namei.c:3949
 #2: ffff88802e600990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x1f3f/0x2170 fs/jbd2/transaction.c:448

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

NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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+0xf59/0xfa0 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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 2989 Comm: kworker/u4:8 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Workqueue: bat_events batadv_nc_worker
RIP: 0010:lock_class_cache_is_valid kernel/locking/lockdep.c:952 [inline]
RIP: 0010:__lock_acquire+0x192/0x7eb0 kernel/locking/lockdep.c:5041
Code: 78 00 48 8b bc 24 88 00 00 00 49 b8 00 00 00 00 00 fc ff df 48 8b 1b 48 85 db 0f 84 de 00 00 00 48 81 fb c0 b3 d2 91 0f 93 c0 <48> 81 fb c0 b3 b8 91 0f 82 6d 17 00 00 84 c0 0f 85 bf 00 00 00 48
RSP: 0018:ffffc9000bc9f700 EFLAGS: 00000083
RAX: 1ffff1100f1e6100 RBX: ffffffff91be6970 RCX: 1ffff92001793f04
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888078f30a58
RBP: ffffc9000bc9f948 R08: dffffc0000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff1f1bb4e R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8a2ac926c8 CR3: 000000000df32000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5790
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline]
 _raw_spin_lock_bh+0x36/0x50 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:356 [inline]
 batadv_nc_purge_paths+0xe2/0x3a0 net/batman-adv/network-coding.c:442
 batadv_nc_worker+0x322/0x600 net/batman-adv/network-coding.c:720
 process_one_work kernel/workqueue.c:2657 [inline]
 process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734
 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815
 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/11/10 03:38 linux-6.6.y 5139929c698c 70ec0380 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in blkdev_fsync
* Struck through repros no longer work on HEAD.