INFO: task hung in __block_write_begin_int

Status: upstream: reported on 2026/09/18 17:26
Reported-by: syzbot+793622d02cbc96afdd51@syzkaller.appspotmail.com
First crash: 11d, last: 11d
▶ ▼ Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in __block_write_begin_int fs 1 1 3109d 3109d 0/29 closed as invalid on 2018/03/27 11:14
linux-6.1 INFO: task hung in __block_write_begin_int 1 1 12d 12d 0/3 upstream: reported on 2026/09/17 10:59

Sample crash report:
INFO: task syz.6.3161:15419 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.3161      state:D stack:25832 pid:15419 ppid:9033   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x15ae/0x4660 kernel/sched/core.c:6701
 schedule+0xbd/0x170 kernel/sched/core.c:6775
 io_schedule+0x80/0xd0 kernel/sched/core.c:9024
 bit_wait_io+0x11/0xd0 kernel/sched/wait_bit.c:209
 __wait_on_bit+0x9f/0x2c0 kernel/sched/wait_bit.c:49
 out_of_line_wait_on_bit+0x13c/0x190 kernel/sched/wait_bit.c:64
 wait_on_bit_io include/linux/wait_bit.h:101 [inline]
 __wait_on_buffer fs/buffer.c:123 [inline]
 wait_on_buffer include/linux/buffer_head.h:373 [inline]
 __block_write_begin_int+0x182f/0x1b00 fs/buffer.c:2161
 iomap_write_begin+0xa0b/0x1e30 fs/iomap/buffered-io.c:812
 iomap_write_iter fs/iomap/buffered-io.c:949 [inline]
 iomap_file_buffered_write+0x3d6/0xda0 fs/iomap/buffered-io.c:1008
 blkdev_buffered_write block/fops.c:634 [inline]
 blkdev_write_iter+0x3e2/0x5a0 block/fops.c:690
 call_write_iter include/linux/fs.h:2018 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x474/0x9a0 fs/read_write.c:584
 ksys_pwrite64 fs/read_write.c:699 [inline]
 __do_sys_pwrite64 fs/read_write.c:709 [inline]
 __se_sys_pwrite64 fs/read_write.c:706 [inline]
 __x64_sys_pwrite64+0x198/0x220 fs/read_write.c:706
 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:0x7f976bb9e159
RSP: 002b:00007f976c9e7028 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00007f976be25fa0 RCX: 00007f976bb9e159
RDX: 0000000000000010 RSI: 0000200000005000 RDI: 0000000000000006
RBP: 00007f976bc3506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000001000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f976be26038 R14: 00007f976be25fa0 R15: 00007ffcc9dfa998
 </TASK>
INFO: task syz.6.3161:15428 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.3161      state:D stack:26664 pid:15428 ppid:9033   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x15ae/0x4660 kernel/sched/core.c:6701
 schedule+0xbd/0x170 kernel/sched/core.c:6775
 io_schedule+0x80/0xd0 kernel/sched/core.c:9024
 bit_wait_io+0x11/0xd0 kernel/sched/wait_bit.c:209
 __wait_on_bit+0x9f/0x2c0 kernel/sched/wait_bit.c:49
 out_of_line_wait_on_bit+0x13c/0x190 kernel/sched/wait_bit.c:64
 wait_on_bit_io include/linux/wait_bit.h:101 [inline]
 __wait_on_buffer fs/buffer.c:123 [inline]
 wait_on_buffer include/linux/buffer_head.h:373 [inline]
 __block_write_begin_int+0x182f/0x1b00 fs/buffer.c:2161
 iomap_write_begin+0xa0b/0x1e30 fs/iomap/buffered-io.c:812
 iomap_write_iter fs/iomap/buffered-io.c:949 [inline]
 iomap_file_buffered_write+0x3d6/0xda0 fs/iomap/buffered-io.c:1008
 blkdev_buffered_write block/fops.c:634 [inline]
 blkdev_write_iter+0x3e2/0x5a0 block/fops.c:690
 call_write_iter include/linux/fs.h:2018 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x474/0x9a0 fs/read_write.c:584
 ksys_pwrite64 fs/read_write.c:699 [inline]
 __do_sys_pwrite64 fs/read_write.c:709 [inline]
 __se_sys_pwrite64 fs/read_write.c:706 [inline]
 __x64_sys_pwrite64+0x198/0x220 fs/read_write.c:706
 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:0x7f976bb9e159
RSP: 002b:00007f976c9c6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00007f976be26090 RCX: 00007f976bb9e159
RDX: 0000000000000010 RSI: 0000200000005000 RDI: 0000000000000006
RBP: 00007f976bc3506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f976be26128 R14: 00007f976be26090 R15: 00007ffcc9dfa998
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/29:
 #0: ffffffff8d1320e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 #0: ffffffff8d1320e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
 #0: ffffffff8d1320e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6635
2 locks held by getty/5528:
 #0: ffff88802d48f0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc9000327b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x428/0x1370 drivers/tty/n_tty.c:2217
3 locks held by kworker/u5:5/5783:
 #0: ffff88802c4ff938 ((wq_completion)hci3){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #0: ffff88802c4ff938 ((wq_completion)hci3){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #1: ffffc900047bfd00 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #1: ffffc900047bfd00 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #2: ffff8880475c0e70 (&hdev->req_lock){+.+.}-{3:3}, at: hci_cmd_sync_work+0x1cc/0x380 net/bluetooth/hci_sync.c:332
2 locks held by kworker/0:5/5843:
 #0: ffff888017c72d38 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #0: ffff888017c72d38 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #1: ffffc90002e47d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #1: ffffc90002e47d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
5 locks held by kworker/u4:61/13991:
 #0: ffff88801a25d138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #0: ffff88801a25d138 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #1: ffffc90003867d00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #1: ffffc90003867d00 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #2: ffffffff8e3c3950 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x140/0xb00 net/core/net_namespace.c:610
 #3: ffff88807afc1468 (&wg->device_update_lock){+.+.}-{3:3}, at: wg_destruct+0x116/0x310 drivers/net/wireguard/device.c:250
 #4: ffffffff8d137ab8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline]
 #4: ffffffff8d137ab8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x306/0x880 kernel/rcu/tree_exp.h:1004
1 lock held by syz.6.3161/15419:
 #0: ffff888076f7ab40 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:814 [inline]
 #0: ffff888076f7ab40 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: blkdev_write_iter+0x3ce/0x5a0 block/fops.c:689
1 lock held by syz.6.3161/15428:
 #0: ffff888076f7ab40 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:814 [inline]
 #0: ffff888076f7ab40 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: blkdev_write_iter+0x3ce/0x5a0 block/fops.c:689
3 locks held by dhcpcd-run-hook/18665:

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

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 07/24/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>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/18 17:26 linux-6.6.y 79643295eba1 853b104b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in __block_write_begin_int
* Struck through repros no longer work on HEAD.