syzbot


INFO: task hung in gfs2_gl_hash_clear (2)

Status: auto-closed as invalid on 2022/09/04 20:20
Subsystems: gfs2
[Documentation on labels]
First crash: 718d, last: 718d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in gfs2_gl_hash_clear gfs2 156 1297d 1302d 0/26 auto-closed as invalid on 2021/02/02 22:47
linux-5.15 INFO: task hung in gfs2_gl_hash_clear origin:lts-only C inconclusive 1143 25m 298d 0/3 upstream: reported C repro on 2023/08/01 02:35
linux-6.1 INFO: task hung in gfs2_gl_hash_clear missing-backport origin:lts-only C done 1301 27m 285d 0/3 upstream: reported C repro on 2023/08/13 12:57
linux-4.19 INFO: task hung in gfs2_gl_hash_clear gfs2 1 507d 507d 0/1 upstream: reported on 2023/01/04 01:01
upstream INFO: task can't die in gfs2_gl_hash_clear (2) gfs2 3 1129d 1223d 0/26 auto-closed as invalid on 2021/07/21 03:15
upstream INFO: task hung in gfs2_gl_hash_clear (3) gfs2 C error done 80 154d 542d 26/26 fixed on 2024/01/30 15:47

Sample crash report:
INFO: task syz-executor.1:7605 blocked for more than 143 seconds.
      Not tainted 5.19.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1  state:D stack:26080 pid: 7605 ppid:  3643 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5116 [inline]
 __schedule+0xa00/0x4b30 kernel/sched/core.c:6428
 schedule+0xd2/0x1f0 kernel/sched/core.c:6500
 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1935
 gfs2_gl_hash_clear+0x243/0x270 fs/gfs2/glock.c:2242
 gfs2_fill_super+0x2101/0x28a0 fs/gfs2/ops_fstype.c:1302
 get_tree_bdev+0x440/0x760 fs/super.c:1292
 gfs2_get_tree+0x4a/0x270 fs/gfs2/ops_fstype.c:1325
 vfs_get_tree+0x89/0x2f0 fs/super.c:1497
 do_new_mount fs/namespace.c:3040 [inline]
 path_mount+0x1320/0x1fa0 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7fc61c28a63a
RSP: 002b:00007fc61d30df88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00007fc61c28a63a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fc61d30dfe0
RBP: 00007fc61d30e020 R08: 00007fc61d30e020 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000020000000
R13: 0000000020000100 R14: 00007fc61d30dfe0 R15: 0000000020047a20
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/28:
 #0: ffffffff8bd866e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6491
1 lock held by hwrng/752:
 #0: ffffffff8c832908 (reading_mutex){+.+.}-{3:3}, at: hwrng_fillfn+0x141/0x370 drivers/char/hw_random/core.c:503
1 lock held by klogd/2966:
2 locks held by getty/3293:
 #0: ffff888026197098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
 #1: ffffc90002cd62e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xe50/0x13c0 drivers/tty/n_tty.c:2124
1 lock held by syz-executor.1/7605:
 #0: ffff88807843a0e0 (&type->s_umount_key#58/1){+.+.}-{3:3}, at: alloc_super+0x1dd/0xa80 fs/super.c:228

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

NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 5.19.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __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:111
 nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
 watchdog+0xc22/0xf90 kernel/hung_task.c:378
 kthread+0x2e9/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 2966 Comm: klogd Not tainted 5.19.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:compaction_capture mm/page_alloc.c:890 [inline]
RIP: 0010:__free_one_page+0x16b/0x1200 mm/page_alloc.c:1042
Code: 0f 87 91 01 00 00 44 89 f0 48 8b 4c 24 10 45 89 f5 49 89 de 48 6b c0 68 49 bf 00 00 00 00 00 fc ff df 4c 8d a4 01 a0 01 00 00 <48> 8b 04 24 48 c1 e8 03 4c 01 f8 48 89 44 24 30 48 83 3c 24 00 0f
RSP: 0018:ffffc90002d1f5d0 EFLAGS: 00000096
RAX: 0000000000000138 RBX: 000000000015e508 RCX: ffff88823fff7e00
RDX: 1ffffffff1b76e45 RSI: 000000000015e508 RDI: ffffffff8dbb7228
RBP: ffffea0005794200 R08: 0000000000140000 R09: 0000000000000000
R10: ffffea0005794200 R11: 0000000000000001 R12: ffff88823fff80d8
R13: 0000000000000003 R14: 000000000015e508 R15: dffffc0000000000
FS:  00007fa7fbe7b800(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e5026147d8 CR3: 000000007e04c000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 free_pcppages_bulk+0x311/0x690 mm/page_alloc.c:1524
 free_unref_page_commit+0x5fb/0x900 mm/page_alloc.c:3425
 free_unref_page+0x270/0x6a0 mm/page_alloc.c:3458
 __unfreeze_partials+0x17c/0x1a0 mm/slub.c:2521
 qlink_free mm/kasan/quarantine.c:168 [inline]
 qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:187
 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:294
 __kasan_slab_alloc+0xa2/0xc0 mm/kasan/common.c:446
 kasan_slab_alloc include/linux/kasan.h:224 [inline]
 slab_post_alloc_hook mm/slab.h:750 [inline]
 slab_alloc_node mm/slub.c:3214 [inline]
 kmem_cache_alloc_node+0x255/0x3f0 mm/slub.c:3264
 __alloc_skb+0x215/0x340 net/core/skbuff.c:414
 alloc_skb include/linux/skbuff.h:1426 [inline]
 alloc_skb_with_frags+0x93/0x730 net/core/skbuff.c:5992
 sock_alloc_send_pskb+0x793/0x920 net/core/sock.c:2662
 unix_dgram_sendmsg+0x425/0x1ad0 net/unix/af_unix.c:1895
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:734
 __sys_sendto+0x21a/0x320 net/socket.c:2119
 __do_sys_sendto net/socket.c:2131 [inline]
 __se_sys_sendto net/socket.c:2127 [inline]
 __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2127
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7fa7fc0170ac
Code: 89 02 48 c7 c0 ff ff ff ff eb b8 0f 1f 00 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 19 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 64 c3 0f 1f 00 55 48 83 ec 20 48 89 54 24 10
RSP: 002b:00007fffb7f78f08 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa7fc0170ac
RDX: 0000000000000055 RSI: 000055672b597ed0 RDI: 0000000000000003
RBP: 000055672b591910 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000004000 R11: 0000000000000246 R12: 0000000000000014
R13: 0000000000000001 R14: 00007fa7fc19277d R15: 00007fffb7f79018
 </TASK>
----------------
Code disassembly (best guess):
   0:	0f 87 91 01 00 00    	ja     0x197
   6:	44 89 f0             	mov    %r14d,%eax
   9:	48 8b 4c 24 10       	mov    0x10(%rsp),%rcx
   e:	45 89 f5             	mov    %r14d,%r13d
  11:	49 89 de             	mov    %rbx,%r14
  14:	48 6b c0 68          	imul   $0x68,%rax,%rax
  18:	49 bf 00 00 00 00 00 	movabs $0xdffffc0000000000,%r15
  1f:	fc ff df
  22:	4c 8d a4 01 a0 01 00 	lea    0x1a0(%rcx,%rax,1),%r12
  29:	00
* 2a:	48 8b 04 24          	mov    (%rsp),%rax <-- trapping instruction
  2e:	48 c1 e8 03          	shr    $0x3,%rax
  32:	4c 01 f8             	add    %r15,%rax
  35:	48 89 44 24 30       	mov    %rax,0x30(%rsp)
  3a:	48 83 3c 24 00       	cmpq   $0x0,(%rsp)
  3f:	0f                   	.byte 0xf

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/06 20:15 upstream f2906aa86338 c8857892 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in gfs2_gl_hash_clear
* Struck through repros no longer work on HEAD.