syzbot


INFO: task hung in ext4_stop_mmpd (3)

Status: upstream: reported C repro on 2025/03/03 17:11
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+13b8de76bda8c4760b9a@syzkaller.appspotmail.com
First crash: 263d, last: 15d
Fix commit to backport (bisect log) :
tree: upstream
commit a7c01fa93aeb03ab76cd3cb2107990dd160498e6
Author: Jason A. Donenfeld <Jason@zx2c4.com>
Date: Mon Jul 11 23:21:23 2022 +0000

  signal: break out of wait loops on kthread_stop()

  
Bug presence (2)
Date Name Commit Repro Result
2025/03/21 linux-5.15.y (ToT) 0c935c049b5c C [report] INFO: task hung in ext4_stop_mmpd
2025/03/21 upstream (ToT) b3ee1e460951 C Didn't crash
Similar bugs (6)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in ext4_stop_mmpd ext4 1 C done done 483 427d 499d 28/29 fixed on 2024/10/28 16:40
linux-5.15 INFO: task hung in ext4_stop_mmpd 1 4 911d 949d 0/3 auto-obsoleted due to no activity on 2023/09/02 02:03
linux-5.15 INFO: task hung in ext4_stop_mmpd (2) 1 39 374d 505d 0/3 auto-obsoleted due to no activity on 2025/01/21 06:29
linux-6.1 INFO: task hung in ext4_stop_mmpd 1 146 401d 505d 0/3 auto-obsoleted due to no activity on 2024/12/25 21:49
upstream INFO: task can't die in ext4_stop_mmpd ext4 1 C inconclusive error 22 1117d 1492d 0/29 auto-obsoleted due to no activity on 2023/04/21 15:51
upstream INFO: task can't die in p9_fd_close 1 C done 58 1307d 1913d 0/29 closed as dup on 2022/08/26 12:44
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/10/19 18:25 17m retest repro linux-5.15.y report log
2025/09/13 05:14 12m retest repro linux-5.15.y report log
2025/09/13 05:14 11m retest repro linux-5.15.y report log
2025/09/13 05:14 12m retest repro linux-5.15.y report log
2025/09/13 05:14 12m retest repro linux-5.15.y report log
2025/08/30 03:31 12m retest repro linux-5.15.y report log
2025/08/30 03:31 12m retest repro linux-5.15.y report log
2025/08/30 03:31 11m retest repro linux-5.15.y report log
2025/08/30 03:31 12m retest repro linux-5.15.y report log
2025/08/30 03:31 12m retest repro linux-5.15.y report log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2025/04/13 01:09 11h27m fix candidate upstream OK (1) job log

Sample crash report:
INFO: task syz.0.19:4381 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.19        state:D stack:25512 pid: 4381 ppid:  4308 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5049 [inline]
 __schedule+0x11bb/0x4390 kernel/sched/core.c:6395
 schedule+0x11b/0x1e0 kernel/sched/core.c:6478
 schedule_timeout+0x97/0x280 kernel/time/timer.c:1890
 do_wait_for_common+0x29a/0x440 kernel/sched/completion.c:85
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common kernel/sched/completion.c:117 [inline]
 wait_for_completion+0x48/0x60 kernel/sched/completion.c:138
 kthread_stop+0x16e/0x540 kernel/kthread.c:666
 ext4_stop_mmpd+0x43/0xb0 fs/ext4/mmp.c:263
 ext4_fill_super+0x660b/0x9a60 fs/ext4/super.c:5088
 mount_bdev+0x287/0x3c0 fs/super.c:1400
 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611
 vfs_get_tree+0x88/0x270 fs/super.c:1530
 do_new_mount+0x24a/0xa40 fs/namespace.c:3034
 do_mount fs/namespace.c:3377 [inline]
 __do_sys_mount fs/namespace.c:3585 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3562
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7ff101718e6a
RSP: 002b:00007ffc5163a3a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffc5163a430 RCX: 00007ff101718e6a
RDX: 0000200000000040 RSI: 0000200000000000 RDI: 00007ffc5163a3f0
RBP: 0000200000000040 R08: 00007ffc5163a430 R09: 0000000002010008
R10: 0000000002010008 R11: 0000000000000246 R12: 0000200000000000
R13: 00007ffc5163a3f0 R14: 0000000000000548 R15: 0000200000000080
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffffffff8c11c760 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by klogd/3549:
 #0: ffff8880b903a358 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:475
 #1: ffff8880b9027888 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x4d6/0x810 kernel/sched/psi.c:891
2 locks held by getty/3951:
 #0: ffff88814d263098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
 #1: ffffc90002d032e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x5ba/0x1a30 drivers/tty/n_tty.c:2158
1 lock held by syz.0.19/4381:
 #0: ffff88807b5900e0 (&type->s_umount_key#28/1){+.+.}-{3:3}, at: alloc_super+0x201/0x950 fs/super.c:229
1 lock held by syz.1.24/4416:
 #0: ffff888021d000e0 (&type->s_umount_key#28/1){+.+.}-{3:3}, at: alloc_super+0x201/0x950 fs/super.c:229
1 lock held by syz.2.25/4439:
 #0: ffff88814cf7c0e0 (&type->s_umount_key#28/1){+.+.}-{3:3}, at: alloc_super+0x201/0x950 fs/super.c:229
1 lock held by syz.3.26/4462:
 #0: ffff8880735380e0 (&type->s_umount_key#28/1){+.+.}-{3:3}, at: alloc_super+0x201/0x950 fs/super.c:229
1 lock held by syz.4.33/4501:
 #0: ffff88805a9f60e0 (&type->s_umount_key#28/1){+.+.}-{3:3}, at: alloc_super+0x201/0x950 fs/super.c:229
1 lock held by syz.5.36/4537:
 #0: ffff88805c9b00e0 (&type->s_umount_key#28/1){+.+.}-{3:3}, at: alloc_super+0x201/0x950 fs/super.c:229
1 lock held by syz.6.39/4568:
 #0: ffff888028c580e0 (&type->s_umount_key#28/1){+.+.}-{3:3}, at: alloc_super+0x201/0x950 fs/super.c:229
1 lock held by syz.7.40/4596:
 #0: ffff888055ee20e0 (&type->s_umount_key#28/1){+.+.}-{3:3}, at: alloc_super+0x201/0x950 fs/super.c:229
1 lock held by syz.8.42/4632:
 #0: ffff8880201e40e0 (&type->s_umount_key#28/1){+.+.}-{3:3}, at: alloc_super+0x201/0x950 fs/super.c:229

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

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x397/0x3d0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x163/0x280 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
 watchdog+0xe0f/0xe50 kernel/hung_task.c:369
 kthread+0x436/0x520 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 3542 Comm: syslogd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:__bfs kernel/locking/lockdep.c:1698 [inline]
RIP: 0010:__bfs_backwards kernel/locking/lockdep.c:1805 [inline]
RIP: 0010:check_irq_usage kernel/locking/lockdep.c:2745 [inline]
RIP: 0010:check_prev_add kernel/locking/lockdep.c:3057 [inline]
RIP: 0010:check_prevs_add kernel/locking/lockdep.c:3172 [inline]
RIP: 0010:validate_chain kernel/locking/lockdep.c:3788 [inline]
RIP: 0010:__lock_acquire+0x308b/0x7c60 kernel/locking/lockdep.c:5012
Code: d7 a4 10 ff c0 25 ff 0f 00 00 89 05 2f d7 a4 10 48 85 db 0f 84 80 05 00 00 4c 8d 73 10 4d 89 f5 49 c1 ed 03 41 80 7c 15 00 00 <74> 12 4c 89 f7 e8 7b 04 60 00 48 ba 00 00 00 00 00 fc ff df 4c 89
RSP: 0018:ffffc90002e0f2c0 EFLAGS: 00000046
RAX: ffffffff92991908 RBX: ffffffff92991908 RCX: dffffc0000000000
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffffffff8f9a6510
RBP: ffffc90002e0f510 R08: dffffc0000000000 R09: ffffc90002e0f460
R10: fffff520005c1e93 R11: 1ffff920005c1e8c R12: ffff88807de20bb0
R13: 1ffffffff2532323 R14: ffffffff92991918 R15: ffffffff8f9a64f0
FS:  00007f211c957c80(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555588d475c8 CR3: 000000007dde2000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623
 do_write_seqcount_begin_nested include/linux/seqlock.h:519 [inline]
 do_write_seqcount_begin include/linux/seqlock.h:545 [inline]
 psi_group_change+0x113/0x1150 kernel/sched/psi.c:710
 psi_enqueue kernel/sched/stats.h:102 [inline]
 enqueue_task+0x26d/0x2b0 kernel/sched/core.c:1992
 activate_task kernel/sched/core.c:2024 [inline]
 ttwu_do_activate+0x1b7/0x370 kernel/sched/core.c:3633
 ttwu_queue kernel/sched/core.c:3842 [inline]
 try_to_wake_up+0x618/0x1050 kernel/sched/core.c:4165
 autoremove_wake_function+0x13/0xf0 kernel/sched/wait.c:416
 __wake_up_common+0x2a4/0x4e0 kernel/sched/wait.c:108
 __wake_up_common_lock kernel/sched/wait.c:138 [inline]
 __wake_up_sync_key+0x10d/0x180 kernel/sched/wait.c:205
 __unix_dgram_recvmsg+0x497/0xd50 net/unix/af_unix.c:2342
 sock_recvmsg_nosec net/socket.c:968 [inline]
 sock_recvmsg net/socket.c:986 [inline]
 sock_read_iter+0x2a2/0x340 net/socket.c:1067
 call_read_iter include/linux/fs.h:2167 [inline]
 new_sync_read fs/read_write.c:404 [inline]
 vfs_read+0x725/0xcf0 fs/read_write.c:485
 ksys_read+0x14d/0x250 fs/read_write.c:623
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f211caa7407
Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff
RSP: 002b:00007ffec04d0070 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f211c957c80 RCX: 00007f211caa7407
RDX: 00000000000000ff RSI: 000055bc6af70950 RDI: 0000000000000000
RBP: 000055bc6af70910 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 000055bc6af70999
R13: 0000000000000000 R14: 000055bc6af70950 R15: 000055bc3bf08d98
 </TASK>

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/06 14:40 linux-5.15.y cc5ec8769306 a6c9c731 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2025/03/05 08:15 linux-5.15.y c16c81c81336 c3901742 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2025/03/05 04:35 linux-5.15.y c16c81c81336 c3901742 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2025/03/05 00:43 linux-5.15.y c16c81c81336 c3901742 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2025/03/04 20:06 linux-5.15.y c16c81c81336 c3901742 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2025/03/04 14:23 linux-5.15.y c16c81c81336 c3901742 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2025/03/04 10:46 linux-5.15.y c16c81c81336 c3901742 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2025/03/04 07:14 linux-5.15.y c16c81c81336 c3901742 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2025/03/04 03:48 linux-5.15.y c16c81c81336 c3901742 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2025/03/04 00:16 linux-5.15.y c16c81c81336 c3901742 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2025/03/03 20:45 linux-5.15.y c16c81c81336 c3901742 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2025/11/06 12:50 linux-5.15.y cc5ec8769306 a6c9c731 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2025/09/26 06:46 linux-5.15.y 43bb85222e53 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2025/07/18 13:12 linux-5.15.y c79648372d02 88248e14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2025/03/03 17:10 linux-5.15.y c16c81c81336 c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
* Struck through repros no longer work on HEAD.