syzbot


INFO: task hung in gfs2_make_fs_ro

Status: upstream: reported C repro on 2025/03/29 04:14
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+8f48570bf43c4e7d5cb3@syzkaller.appspotmail.com
First crash: 117d, last: 29d
Bug presence (3)
Date Name Commit Repro Result
2025/05/26 linux-5.15.y (ToT) 98f47d0e9b8c C [report] INFO: task hung in gfs2_make_fs_ro
2025/03/31 upstream (ToT) 4e82c87058f4 C [report] unregister_netdevice: waiting for DEV to become free
2025/05/26 upstream (ToT) 0ff41df1cb26 C Didn't crash
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in gfs2_make_fs_ro gfs2 1 1 1481d 1481d 0/29 auto-closed as invalid on 2021/10/02 10:38
upstream INFO: task hung in gfs2_make_fs_ro (2) gfs2 1 1 1352d 1352d 0/29 closed as invalid on 2022/02/08 09:40
upstream INFO: task hung in gfs2_make_fs_ro (3) gfs2 1 6 992d 1001d 0/29 auto-obsoleted due to no activity on 2023/02/14 04:47
Last patch testing requests (7)
Created Duration User Patch Repo Result
2025/06/24 21:24 12m retest repro linux-5.15.y report log
2025/06/24 21:24 13m retest repro linux-5.15.y report log
2025/04/13 16:36 20m retest repro linux-5.15.y OK log
2025/04/13 16:36 12m retest repro linux-5.15.y report log
2025/04/13 16:36 1h05m retest repro linux-5.15.y report log
2025/04/13 16:36 23m retest repro linux-5.15.y report log
2025/04/13 16:36 15m retest repro linux-5.15.y OK log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2025/05/14 12:39 4h17m bisect fix linux-5.15.y OK (0) job log log

Sample crash report:
INFO: task syz-executor290:4526 blocked for more than 143 seconds.
      Not tainted 5.15.179-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor290 state:D
 stack:23712 pid: 4526 ppid:  4191 flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5029 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6375
 schedule+0x11b/0x1f0 kernel/sched/core.c:6458
 schedule_timeout+0xac/0x300 kernel/time/timer.c:1890
 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:666
 gfs2_make_fs_ro+0x14d/0x5f0 fs/gfs2/super.c:533
 signal_our_withdraw fs/gfs2/util.c:166 [inline]
 gfs2_withdraw+0x5fb/0x14e0 fs/gfs2/util.c:343
 gfs2_metatype_check_ii+0x75/0x90 fs/gfs2/util.c:520
 gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
 gfs2_quota_init+0xe06/0x1110 fs/gfs2/quota.c:1406
 gfs2_make_fs_rw+0x436/0x5b0 fs/gfs2/super.c:155
 gfs2_fill_super+0x23e8/0x2750 fs/gfs2/ops_fstype.c:1276
 get_tree_bdev+0x3fe/0x620 fs/super.c:1325
 gfs2_get_tree+0x50/0x210 fs/gfs2/ops_fstype.c:1332
 vfs_get_tree+0x88/0x270 fs/super.c:1530
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3012
 do_mount fs/namespace.c:3355 [inline]
 __do_sys_mount fs/namespace.c:3563 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3540
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f0ff4aec25a
RSP: 002b:00007fff89bfb1a8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fff89bfb1c0 RCX: 00007f0ff4aec25a
RDX: 0000200000000400 RSI: 0000200000012500 RDI: 00007fff89bfb1c0
RBP: 0000200000012500 R08: 00007fff89bfb200 R09: 00000000000125b5
R10: 0000000000000000 R11: 0000000000000282 R12: 0000200000000400
R13: 00007fff89bfb200 R14: 0000000000000003 R15: 0000000000000000
 </TASK>
INFO: task gfs2_quotad:4529 blocked for more than 144 seconds.
      Not tainted 5.15.179-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:gfs2_quotad     state:D stack:25944 pid: 4529 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5029 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6375
 schedule+0x11b/0x1f0 kernel/sched/core.c:6458
 bit_wait+0xe/0xc0 kernel/sched/wait_bit.c:199
 __wait_on_bit+0xb9/0x180 kernel/sched/wait_bit.c:49
 out_of_line_wait_on_bit+0x1d0/0x250 kernel/sched/wait_bit.c:64
 wait_on_bit include/linux/wait_bit.h:76 [inline]
 __gfs2_glock_dq+0x699/0x9e0 fs/gfs2/glock.c:1588
 gfs2_glock_dq fs/gfs2/glock.c:1652 [inline]
 gfs2_glock_dq_uninit+0x51/0x110 fs/gfs2/glock.c:1672
 gfs2_statfs_sync+0x7d5/0x860 fs/gfs2/super.c:310
 quotad_check_timeo fs/gfs2/quota.c:1519 [inline]
 gfs2_quotad+0x3a8/0x900 fs/gfs2/quota.c:1581
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffffffff8cb1f4e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by klogd/3534:
 #0: ffff8880b8f3a318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:475
 #1: ffff8880b8f27848 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x53d/0x810 kernel/sched/psi.c:891
2 locks held by getty/3932:
 #0: ffff88802c78a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
 #1: ffffc900026362e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158
3 locks held by kworker/1:3/4193:
 #0: ffff888017470938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283
 #1: ffffc90002edfd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285
 #2: ffffffff8cb23aa8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:322 [inline]
 #2: ffffffff8cb23aa8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x350/0x740 kernel/rcu/tree_exp.h:845
2 locks held by kworker/1:4/4229:
 #0: ffff888017472138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283
 #1: ffffc9000306fd20 ((work_completion)(&rew.rew_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285
1 lock held by syz-executor290/4526:
 #0: ffff8880788420e0 (&type->s_umount_key#50/1){+.+.}-{3:3}, at: alloc_super+0x210/0x940 fs/super.c:229
1 lock held by syz-executor290/4825:
 #0: ffff888147484468 (&lo->lo_mutex){+.+.}-{3:3}, at: __loop_clr_fd+0xa9/0xbe0 drivers/block/loop.c:1365
2 locks held by syz-executor290/4833:
1 lock held by syz-executor290/4834:
1 lock held by syz-executor290/4835:

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

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.179-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2d0 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:212 [inline]
 watchdog+0xe72/0xeb0 kernel/hung_task.c:369
 kthread+0x3f6/0x4f0 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: 4835 Comm: syz-executor290 Not tainted 5.15.179-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:check_preemption_disabled+0x5c/0x110 lib/smp_processor_id.c:19
Code: 25 28 00 00 00 48 3b 44 24 08 0f 85 c7 00 00 00 89 d8 48 83 c4 10 5b 41 5c 41 5e 41 5f c3 48 c7 04 24 00 00 00 00 9c 8f 04 24 <f7> 04 24 00 02 00 00 74 c9 49 89 f6 49 89 ff 65 4c 8b 25 3d 5c c2
RSP: 0000:ffffc9000c05fb08 EFLAGS: 00000046
RAX: 0000000080000000 RBX: 0000000000000001 RCX: ffff888018788000
RDX: 0000000000000000 RSI: ffffffff8ab5fca0 RDI: ffffffff8af9fa80
RBP: ffffc9000c05fbf0 R08: ffffffff817a1205 R09: fffff94000326501
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc9000c05fb80
R13: ffffea0001932800 R14: ffff888024a44000 R15: 0000000000000001
FS:  0000555569c14480(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0fecd9c000 CR3: 000000002a6dd000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 mem_cgroup_charge_statistics mm/memcontrol.c:878 [inline]
 charge_memcg+0x24a/0x340 mm/memcontrol.c:6775
 __mem_cgroup_charge+0x23/0x80 mm/memcontrol.c:6803
 mem_cgroup_charge include/linux/memcontrol.h:700 [inline]
 do_anonymous_page mm/memory.c:3842 [inline]
 handle_pte_fault mm/memory.c:4648 [inline]
 __handle_mm_fault mm/memory.c:4785 [inline]
 handle_mm_fault+0x2f90/0x5960 mm/memory.c:4883
 do_user_addr_fault arch/x86/mm/fault.c:1357 [inline]
 handle_page_fault arch/x86/mm/fault.c:1445 [inline]
 exc_page_fault+0x271/0x700 arch/x86/mm/fault.c:1501
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606
RIP: 0033:0x7f0ff4aaa8e0
Code: 39 4f 08 72 4c 8d 4d ff 85 ed 74 33 66 0f 1f 44 00 00 48 39 f0 72 1b 4d 8b 07 49 89 c1 49 29 f1 47 0f b6 0c 08 45 84 c9 74 08 <45> 88 0c 00 49 8b 47 10 48 83 c0 01 49 89 47 10 83 e9 01 73 d3 41
RSP: 002b:00007fff89bfa830 EFLAGS: 00010202
RAX: 00000000006fd000 RBX: 00007fff89bfa8d0 RCX: 000000000000001e
RDX: 00000000000003ff RSI: 0000000000001000 RDI: 00007fff89bfa970
RBP: 000000000000001f R08: 00007f0fec69f000 R09: 0000000000000001
R10: 0000200000037082 R11: 00000000000125b9 R12: 0000000000000c01
R13: 00007f0ff4b40ca0 R14: 0000000000000017 R15: 00007fff89bfa970
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/30 14:10 linux-5.15.y 0c935c049b5c d3999433 .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 gfs2_make_fs_ro
2025/03/30 11:15 linux-5.15.y 0c935c049b5c d3999433 .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 gfs2_make_fs_ro
2025/03/30 05:31 linux-5.15.y 0c935c049b5c d3999433 .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 gfs2_make_fs_ro
2025/03/30 09:12 linux-5.15.y 0c935c049b5c d3999433 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in gfs2_make_fs_ro
2025/03/30 07:20 linux-5.15.y 0c935c049b5c d3999433 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan INFO: task hung in gfs2_make_fs_ro
2025/03/29 04:14 linux-5.15.y 0c935c049b5c 9a1a9e31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in gfs2_make_fs_ro
* Struck through repros no longer work on HEAD.