INFO: task hung in md_allow_write

Status: upstream: reported on 2026/09/28 01:14
Reported-by: syzbot+94ba501116de66c3a13f@syzkaller.appspotmail.com
First crash: 4d18h, last: 4d18h

Sample crash report:
INFO: task syz.6.1710:10726 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.1710      state:D stack:27280 pid:10726 ppid:8099   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5246 [inline]
 __schedule+0x107f/0x4030 kernel/sched/core.c:6563
 schedule+0xb9/0x180 kernel/sched/core.c:6639
 md_allow_write+0x3a2/0x4d0 drivers/md/md.c:8812
 raid1_reshape+0x47a/0x15f0 drivers/md/raid1.c:3276
 chunk_size_store+0x2a1/0x430 drivers/md/md.c:4297
 md_attr_store+0x183/0x220 drivers/md/md.c:5633
 kernfs_fop_write_iter+0x3a0/0x520 fs/kernfs/file.c:352
 call_write_iter include/linux/fs.h:2271 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x482/0x9a0 fs/read_write.c:584
 ksys_write+0x14d/0x260 fs/read_write.c:637
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f715bd9e159
RSP: 002b:00007f715cca2028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f715c025fa0 RCX: 00007f715bd9e159
RDX: 0000000000000005 RSI: 0000200000000400 RDI: 0000000000000007
RBP: 00007f715be3506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f715c026038 R14: 00007f715c025fa0 R15: 00007fffc88996e8
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8cb2e170 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x33/0xef0 kernel/rcu/tasks.h:517
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8cb2e990 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x33/0xef0 kernel/rcu/tasks.h:517
1 lock held by khungtaskd/27:
 #0: 
ffffffff8cb2d7e0
 (rcu_read_lock){....}-{1:2}
, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
, at: rcu_read_lock include/linux/rcupdate.h:791 [inline]
, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6529
5 locks held by kworker/u4:3/47:
 #0: ffff8880b8e3acd8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x98/0x130 kernel/sched/core.c:546
 #1: ffff8880b8e27888 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x400/0x740 kernel/sched/psi.c:999
 #2: ffff8880b8e28458 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x123/0x270 kernel/time/timer.c:999
 #3: 
ffffffff96f0c8a0 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0x68/0x4f0 lib/debugobjects.c:747
 #4: ffffffff8c9df488 (text_mutex){+.+.}-{3:3}, at: arch_jump_label_transform_apply+0xe/0x20 arch/x86/kernel/jump_label.c:145
3 locks held by udevd/3640:
1 lock held by dhcpcd/3935:
2 locks held by getty/4026:
 #0: ffff88814d61e098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc9000327b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x41e/0x1360 drivers/tty/n_tty.c:2198
7 locks held by kworker/0:13/4613:
5 locks held by syz.6.1710/10726:
 #0: 
ffff88805551c868
 (
&f->f_pos_lock
){+.+.}-{3:3}
, at: __fdget_pos+0x2ae/0x360 fs/file.c:1038
 #1: ffff888079906460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x270/0x9a0 fs/read_write.c:580
 #2: ffff888056502c88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1d8/0x520 fs/kernfs/file.c:343
 #3: 
ffff88801da612c0 (kn->active#83){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:80 [inline]
ffff88801da612c0 (kn->active#83){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x232/0x520 fs/kernfs/file.c:344
 #4: ffff888074ab42d0 (&mddev->reconfig_mutex){+.+.}-{3:3}, at: mddev_lock drivers/md/md.h:577 [inline]
 #4: ffff888074ab42d0 (&mddev->reconfig_mutex){+.+.}-{3:3}, at: chunk_size_store+0xb6/0x430 drivers/md/md.c:4287

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

NMI backtrace for cpu 1
CPU: 1 PID: 27 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+0x188/0x24e lib/dump_stack.c:106
 nmi_cpu_backtrace+0x3e6/0x460 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1d4/0x450 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
 watchdog+0xf0e/0xf50 kernel/hung_task.c:377
 kthread+0x29d/0x330 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4502 Comm: udevd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:io_serial_in+0x73/0xb0 drivers/tty/serial/8250/8250_port.c:461
Code: e8 02 a4 fa fc 44 89 f9 d3 e3 49 83 c6 40 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 a3 e8 4b fd 41 03 1e 89 da ec <0f> b6 c0 5b 41 5c 41 5e 41 5f c3 44 89 f9 80 e1 07 38 c1 7c aa 4c
RSP: 0018:ffffc9000501f658 EFLAGS: 00000002
RAX: 1ffffffff2df3a60 RBX: 00000000000003fd RCX: 0000000000000000
RDX: 00000000000003fd RSI: 0000000000000000 RDI: 0000000000000020
RBP: ffffc9000501f830 R08: ffff8880234f0237 R09: 1ffff1100469e046
R10: dffffc0000000000 R11: ffffed100469e047 R12: dffffc0000000000
R13: ffffffff96c58e00 R14: ffffffff96f9d600 R15: 0000000000000000
FS:  00007fb73b172880(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6f1c7ef2f8 CR3: 00000000576b2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 serial_in drivers/tty/serial/8250/8250.h:117 [inline]
 serial_lsr_in drivers/tty/serial/8250/8250.h:139 [inline]
 wait_for_lsr drivers/tty/serial/8250/8250_port.c:2101 [inline]
 fifo_wait_for_lsr drivers/tty/serial/8250/8250_port.c:3372 [inline]
 serial8250_console_fifo_write drivers/tty/serial/8250/8250_port.c:3394 [inline]
 serial8250_console_write+0xf25/0x18b0 drivers/tty/serial/8250/8250_port.c:3479
 call_console_driver kernel/printk/printk.c:1977 [inline]
 console_emit_next_record+0x795/0xb50 kernel/printk/printk.c:2777
 console_flush_all kernel/printk/printk.c:-1 [inline]
 console_unlock+0x223/0x630 kernel/printk/printk.c:2906
 vprintk_emit+0x4b3/0x6a0 kernel/printk/printk.c:2303
 _printk+0xda/0x130 kernel/printk/printk.c:2328
 __dynamic_pr_debug+0x196/0x240 lib/dynamic_debug.c:875
 inotify_handle_inode_event+0x4d6/0x4e0 fs/notify/inotify/inotify_fsnotify.c:77
 inotify_ignored_and_remove_idr+0x25/0x70 fs/notify/inotify/inotify_user.c:527
 __do_sys_inotify_rm_watch fs/notify/inotify/inotify_user.c:805 [inline]
 __se_sys_inotify_rm_watch+0x14d/0x200 fs/notify/inotify/inotify_user.c:782
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fb73ab21a07
Code: 73 01 c3 48 8b 0d f1 f3 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 ff 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d c1 f3 0c 00 f7 d8 64 89 01 48
RSP: 002b:00007ffe93d903b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ff
RAX: ffffffffffffffda RBX: 000055bc823663b0 RCX: 00007fb73ab21a07
RDX: 0000000000000007 RSI: 0000000000000b82 RDI: 0000000000000007
RBP: 0000000000000b82 R08: 00000000000001e0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe93d903c0
R13: 0000000003938700 R14: 000055bc4c337100 R15: 000055bc4c337140
 </TASK>
wireguard: wg0: Sending keepalive packet to peer 43 ([::1]:20002/0%0)
wireguard: wg0: Sending keepalive packet to peer 55 ([::1]:20002/0%0)

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/28 01:13 linux-6.1.y 1a8763b93150 a3c7249d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in md_allow_write
* Struck through repros no longer work on HEAD.