syzbot


INFO: task hung in ext4_stop_mmpd

Status: auto-obsoleted due to no activity on 2023/09/02 02:03
Reported-by: syzbot+85ac912baa40299f3ce7@syzkaller.appspotmail.com
First crash: 375d, last: 337d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task can't die in ext4_stop_mmpd ext4 C inconclusive error 22 543d 918d 0/26 auto-obsoleted due to no activity on 2023/04/21 15:51
upstream INFO: task can't die in p9_fd_close C done 58 732d 1339d 0/26 closed as dup on 2022/08/26 12:44

Sample crash report:
INFO: task syz-executor.1:13967 blocked for more than 145 seconds.
      Not tainted 5.15.113-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1  state:D stack:25920 pid:13967 ppid:  8812 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5026 [inline]
 __schedule+0x12c4/0x4590 kernel/sched/core.c:6372
 schedule+0x11b/0x1f0 kernel/sched/core.c:6455
 schedule_timeout+0xac/0x300 kernel/time/timer.c:1860
 do_wait_for_common+0x2d9/0x480 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+0x178/0x580 kernel/kthread.c:649
 ext4_stop_mmpd+0x43/0xb0 fs/ext4/mmp.c:263
 ext4_fill_super+0x6b1a/0x9f60 fs/ext4/super.c:5078
 mount_bdev+0x26d/0x3a0 fs/super.c:1378
 legacy_get_tree+0xeb/0x180 fs/fs_context.c:610
 vfs_get_tree+0x88/0x270 fs/super.c:1508
 do_new_mount+0x28b/0xad0 fs/namespace.c:2994
 do_mount fs/namespace.c:3337 [inline]
 __do_sys_mount fs/namespace.c:3545 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3522
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f32571eb69a
RSP: 002b:00007f325575bf88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00000000000004c0 RCX: 00007f32571eb69a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f325575bfe0
RBP: 00007f325575c020 R08: 00007f325575c020 R09: 0000000000218002
R10: 0000000000218002 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 00007f325575bfe0 R15: 0000000020000240
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/u4:0/9:
1 lock held by khungtaskd/27:
 #0: ffffffff8c91c560 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
4 locks held by kworker/u4:6/1241:
1 lock held by udevd/2964:
2 locks held by getty/3270:
 #0: ffff88814b308098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
 #1: ffffc90002bb32e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1da0 drivers/tty/n_tty.c:2147
1 lock held by syz-executor.5/3548:
3 locks held by kworker/u4:8/3754:
2 locks held by kworker/1:14/12103:
 #0: ffff888011c66538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2280
 #1: ffffc900046cfd20 ((work_completion)(&rew.rew_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2282
3 locks held by kworker/1:19/12106:
 #0: ffff888011c64d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2280
 #1: ffffc90004767d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2282
 #2: ffffffff8c920aa8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline]
 #2: ffffffff8c920aa8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x280/0x740 kernel/rcu/tree_exp.h:842
1 lock held by syz-executor.1/13967:
 #0: ffff88807817c0e0 (&type->s_umount_key#28/1){+.+.}-{3:3}, at: alloc_super+0x210/0x940 fs/super.c:229
2 locks held by syz-executor.1/14122:
4 locks held by syz-executor.3/15217:
 #0: ffff888078a20460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377
 #1: ffff8880372b35c8 (&type->i_mutex_dir_key#4/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:822 [inline]
 #1: ffff8880372b35c8 (&type->i_mutex_dir_key#4/1){+.+.}-{3:3}, at: filename_create+0x256/0x530 fs/namei.c:3765
 #2: ffff8880771beea8 (&dquot->dq_lock){+.+.}-{3:3}, at: dquot_acquire+0x64/0x680 fs/quota/dquot.c:432
 #3: ffff888078a20208 (&s->s_dquot.dqio_sem){++++}-{3:3}, at: v2_read_dquot+0x4a/0x100 fs/quota/quota_v2.c:332
2 locks held by syz-executor.3/15228:
 #0: ffff888078a20460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377
 #1: ffff8880372b35c8 (&type->i_mutex_dir_key#4/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:822 [inline]
 #1: ffff8880372b35c8 (&type->i_mutex_dir_key#4/1){+.+.}-{3:3}, at: filename_create+0x256/0x530 fs/namei.c:3765
5 locks held by syz-executor.2/15222:

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

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.113-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/16/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
 watchdog+0xe72/0xeb0 kernel/hung_task.c:295
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 3548 Comm: syz-executor.5 Not tainted 5.15.113-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/16/2023
RIP: 0010:ext4_invalidatepage+0x1ce/0x370 fs/ext4/inode.c:3249
Code: c1 e8 03 42 80 3c 28 00 74 08 48 89 ef e8 5a 41 ac ff 48 8b 5d 00 bd 00 00 01 00 be 00 00 01 00 48 21 de 31 ff e8 a2 e9 62 ff <48> 21 dd 75 35 e8 b8 e5 62 ff 4c 89 ff 44 89 e6 44 89 f2 5b 41 5c
RSP: 0018:ffffc90002e1f988 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000011 RCX: ffff88807b6f8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000010000 R08: ffffffff821d038e R09: ffffed1003ad2258
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000001000 R15: ffffea00022bed00
FS:  0000555556d6c400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd7a92be718 CR3: 000000001e87d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_invalidatepage mm/truncate.c:157 [inline]
 truncate_cleanup_page+0x179/0x440 mm/truncate.c:176
 truncate_inode_pages_range+0x2e7/0x1290 mm/truncate.c:325
 ext4_evict_inode+0x2ae/0x1100 fs/ext4/inode.c:224
 evict+0x2a4/0x620 fs/inode.c:587
 do_unlinkat+0x502/0x940 fs/namei.c:4284
 __do_sys_unlink fs/namei.c:4325 [inline]
 __se_sys_unlink fs/namei.c:4323 [inline]
 __x64_sys_unlink+0x45/0x50 fs/namei.c:4323
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f49d4ce2ad7
Code: 73 01 c3 48 c7 c1 b8 ff ff ff 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 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc00035618 EFLAGS: 00000206 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f49d4ce2ad7
RDX: 00007ffc00035650 RSI: 00007ffc00035650 RDI: 00007ffc000356e0
RBP: 00007ffc000356e0 R08: 0000000000000001 R09: 00007ffc000354b0
R10: 0000555556d6d853 R11: 0000000000000206 R12: 00007f49d4d3dcdc
R13: 00007ffc000367a0 R14: 0000555556d6d810 R15: 00007ffc000367e0
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/25 02:03 linux-5.15.y 1fe619a7d252 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2023/05/24 15:55 linux-5.15.y 9d6bde853685 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2023/05/19 15:37 linux-5.15.y 9d6bde853685 96689200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in ext4_stop_mmpd
2023/04/17 18:21 linux-5.15.y 4fdad925aa1a c6ec7083 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in ext4_stop_mmpd
* Struck through repros no longer work on HEAD.