INFO: task hung in gfs2_make_fs_ro (2)

Status: closed as invalid on 2022/02/08 09:40
First crash: 391d, last: 391d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in gfs2_make_fs_ro 1 520d 520d 0/24 auto-closed as invalid on 2021/10/02 10:38

Sample crash report:
INFO: task syz-executor.4:16909 blocked for more than 143 seconds.
      Not tainted 5.15.0-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:25944 pid:16909 ppid:  6536 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:4969 [inline]
 __schedule+0xa9a/0x4940 kernel/sched/core.c:6250
 schedule+0xd2/0x260 kernel/sched/core.c:6323
 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1857
 do_wait_for_common kernel/sched/completion.c:85 [inline]
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common kernel/sched/completion.c:117 [inline]
 wait_for_completion+0x174/0x270 kernel/sched/completion.c:138
 kthread_stop+0x17a/0x710 kernel/kthread.c:648
 gfs2_make_fs_ro+0x118/0x610 fs/gfs2/super.c:528
 signal_our_withdraw fs/gfs2/util.c:166 [inline]
 gfs2_withdraw.cold+0x495/0xf44 fs/gfs2/util.c:343
 gfs2_meta_check_ii+0x68/0xa0 fs/gfs2/util.c:501
 gfs2_metatype_check_i fs/gfs2/util.h:126 [inline]
 gfs2_metatype_check_i fs/gfs2/util.h:116 [inline]
 gfs2_quota_init+0xca3/0xf70 fs/gfs2/quota.c:1387
 gfs2_make_fs_rw+0x470/0x640 fs/gfs2/super.c:153
 gfs2_fill_super+0x2376/0x28a0 fs/gfs2/ops_fstype.c:1271
 get_tree_bdev+0x440/0x760 fs/super.c:1295
 gfs2_get_tree+0x4a/0x270 fs/gfs2/ops_fstype.c:1327
 vfs_get_tree+0x89/0x2f0 fs/super.c:1500
 do_new_mount fs/namespace.c:2988 [inline]
 path_mount+0x1320/0x1fa0 fs/namespace.c:3318
 do_mount fs/namespace.c:3331 [inline]
 __do_sys_mount fs/namespace.c:3539 [inline]
 __se_sys_mount fs/namespace.c:3516 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3516
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
RIP: 0033:0x7f65a019f01a
RSP: 002b:00007f659d712fa8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00007f65a019f01a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f659d713000
RBP: 00007f659d713040 R08: 00007f659d713040 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000020000000
R13: 0000000020000100 R14: 00007f659d713000 R15: 0000000020047a20
INFO: task gfs2_quotad:16954 blocked for more than 143 seconds.
      Not tainted 5.15.0-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:gfs2_quotad     state:D stack:27856 pid:16954 ppid:     2 flags:0x00004000
Call Trace:
 context_switch kernel/sched/core.c:4969 [inline]
 __schedule+0xa9a/0x4940 kernel/sched/core.c:6250
 schedule+0xd2/0x260 kernel/sched/core.c:6323
 bit_wait+0x12/0xd0 kernel/sched/wait_bit.c:199
 __wait_on_bit+0x60/0x190 kernel/sched/wait_bit.c:49
 out_of_line_wait_on_bit+0xd5/0x110 kernel/sched/wait_bit.c:64
 wait_on_bit include/linux/wait_bit.h:76 [inline]
 wait_on_bit include/linux/wait_bit.h:71 [inline]
 __gfs2_glock_dq+0x73a/0xa90 fs/gfs2/glock.c:1637
 gfs2_glock_dq fs/gfs2/glock.c:1701 [inline]
 gfs2_glock_dq_uninit+0x45/0x160 fs/gfs2/glock.c:1721
 gfs2_statfs_sync+0x3c7/0x540 fs/gfs2/super.c:306
 gfs2_quotad+0x5d1/0x830 fs/gfs2/quota.c:1557
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffffffff8b983a20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458
1 lock held by in:imklog/6213:
2 locks held by agetty/6218:
 #0: ffff888015d6c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252
 #1: ffffc900029f82e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2113
2 locks held by agetty/6443:
 #0: ffff88807aa4c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252
 #1: ffffc9000298c2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2113
1 lock held by syz-executor.4/16909:
 #0: ffff8880b0e220e0 (&type->s_umount_key#89/1){+.+.}-{3:3}, at: alloc_super+0x1dd/0xac0 fs/super.c:229


NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x1ae/0x220 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
 watchdog+0xc1d/0xf50 kernel/hung_task.c:295
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 8392 Comm: kworker/1:5 Not tainted 5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events nsim_dev_trap_report_work
RIP: 0010:rol32 include/linux/bitops.h:109 [inline]
RIP: 0010:chacha_permute+0x495/0x6e0 lib/crypto/chacha.c:32
Code: 45 01 e7 44 31 d2 01 f0 44 31 f9 c1 c2 0c 31 c7 89 44 24 0c c1 c1 0c 41 31 dd 89 f8 8b 7c 24 08 41 01 c8 41 c1 c5 08 45 31 c4 <c1> c0 0c 41 c1 c4 08 01 d7 31 fd 41 01 c3 45 01 e7 c1 c5 08 44 31
RSP: 0018:ffffc9001809f9c0 EFLAGS: 00000086
RAX: 00000000c337f390 RBX: 00000000e5cb320a RCX: 000000006142fc09
RDX: 00000000af07845b RSI: 000000006f1ea0b3 RDI: 00000000cb58d50b
RBP: 0000000022039c04 R08: 000000008df62639 R09: 000000006a2bdc54
R10: 00000000a328b89a R11: 0000000030870351 R12: 000000009019cb5c
R13: 00000000ce49e48a R14: 0000000092470dc7 R15: 0000000077b5e8f1
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007facd4da7000 CR3: 000000001a02b000 CR4: 0000000000350ee0
Call Trace:
 chacha_block_generic+0x98/0x250 lib/crypto/chacha.c:83
 chacha20_block include/crypto/chacha.h:36 [inline]
 _extract_crng+0x12f/0x250 drivers/char/random.c:1000
 extract_crng drivers/char/random.c:1016 [inline]
 _get_random_bytes+0x229/0x670 drivers/char/random.c:1538
 nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:772 [inline]
 nsim_dev_trap_report drivers/net/netdevsim/dev.c:802 [inline]
 nsim_dev_trap_report_work+0x72e/0xbc0 drivers/net/netdevsim/dev.c:843
 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298
 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Code disassembly (best guess):
   0:	45 01 e7             	add    %r12d,%r15d
   3:	44 31 d2             	xor    %r10d,%edx
   6:	01 f0                	add    %esi,%eax
   8:	44 31 f9             	xor    %r15d,%ecx
   b:	c1 c2 0c             	rol    $0xc,%edx
   e:	31 c7                	xor    %eax,%edi
  10:	89 44 24 0c          	mov    %eax,0xc(%rsp)
  14:	c1 c1 0c             	rol    $0xc,%ecx
  17:	41 31 dd             	xor    %ebx,%r13d
  1a:	89 f8                	mov    %edi,%eax
  1c:	8b 7c 24 08          	mov    0x8(%rsp),%edi
  20:	41 01 c8             	add    %ecx,%r8d
  23:	41 c1 c5 08          	rol    $0x8,%r13d
  27:	45 31 c4             	xor    %r8d,%r12d
* 2a:	c1 c0 0c             	rol    $0xc,%eax <-- trapping instruction
  2d:	41 c1 c4 08          	rol    $0x8,%r12d
  31:	01 d7                	add    %edx,%edi
  33:	31 fd                	xor    %edi,%ebp
  35:	41 01 c3             	add    %eax,%r11d
  38:	45 01 e7             	add    %r12d,%r15d
  3b:	c1 c5 08             	rol    $0x8,%ebp
  3e:	44                   	rex.R
  3f:	31                   	.byte 0x31

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2021/11/10 09:36 upstream cb690f5238d7 55fa030c .config log report info INFO: task hung in gfs2_make_fs_ro
* Struck through repros no longer work on HEAD.