syzbot


INFO: task hung in exfat_iterate (2)

Status: auto-obsoleted due to no activity on 2023/10/28 06:20
Subsystems: exfat
[Documentation on labels]
First crash: 759d, last: 759d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in exfat_iterate exfat 1 1 883d 883d 0/29 auto-obsoleted due to no activity on 2023/06/25 13:10
upstream INFO: task hung in exfat_iterate (3) exfat 1 1 267d 267d 0/29 auto-obsoleted due to no activity on 2025/03/02 22:12

Sample crash report:
INFO: task syz-executor.5:5895 blocked for more than 143 seconds.
      Not tainted 6.5.0-rc3-syzkaller-00283-g12214540ad87 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:24584 pid:5895  ppid:5049   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0x1873/0x48f0 kernel/sched/core.c:6710
 schedule+0xc3/0x180 kernel/sched/core.c:6786
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845
 __mutex_lock_common+0xe33/0x2530 kernel/locking/mutex.c:679
 __mutex_lock kernel/locking/mutex.c:747 [inline]
 mutex_lock_nested+0x1b/0x20 kernel/locking/mutex.c:799
 exfat_iterate+0x174/0x3380 fs/exfat/dir.c:232
 iterate_dir+0x231/0x5a0
 __do_sys_getdents64 fs/readdir.c:369 [inline]
 __se_sys_getdents64+0x20d/0x4f0 fs/readdir.c:354
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f7d1fa7cb29
RSP: 002b:00007f7d207a30c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007f7d1fb9bf80 RCX: 00007f7d1fa7cb29
RDX: 0000000000000098 RSI: 0000000020000080 RDI: 0000000000000005
RBP: 00007f7d1fac847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f7d1fb9bf80 R15: 00007ffd50256048
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
 #0: ffffffff8d328db0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:522
1 lock held by rcu_tasks_trace/14:
 #0: ffffffff8d329170 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:522
1 lock held by khungtaskd/28:
 #0: ffffffff8d328be0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/4769:
 #0: ffff88814ad9a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1dc0 drivers/tty/n_tty.c:2187
1 lock held by syz-executor.0/5048:
3 locks held by syz-executor.5/5895:
 #0: ffff88807d8239c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x20f/0x2a0 fs/file.c:1046
 #1: ffff8880745f9cb0 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: iterate_dir+0x13e/0x5a0 fs/readdir.c:57
 #2: ffff8880759fa0e0 (&sbi->s_lock){+.+.}-{3:3}, at: exfat_iterate+0x174/0x3380 fs/exfat/dir.c:232
3 locks held by syz-executor.5/5896:
3 locks held by syz-executor.5/8080:
5 locks held by syz-executor.3/8081:
 #0: ffff88803898a0e0 (&type->s_umount_key#48/1){+.+.}-{3:3}, at: alloc_super+0x217/0x920 fs/super.c:228
 #1: ffff8880b993bf98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558
 #2: ffffe8ffffd832c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x3a7/0x770 kernel/sched/psi.c:987
 #3: ffff888025dafea0 (&new_ns->poll){....}-{2:2}, at: __wake_up_common_lock kernel/sched/wait.c:137 [inline]
 #3: ffff888025dafea0 (&new_ns->poll){....}-{2:2}, at: __wake_up+0x101/0x1d0 kernel/sched/wait.c:160
 #4: ffffe8ffffd832c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x3a7/0x770 kernel/sched/psi.c:987
1 lock held by syz-executor.2/8088:
1 lock held by syz-executor.0/8112:

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

NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.5.0-rc3-syzkaller-00283-g12214540ad87 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x187/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xec2/0xf00 kernel/hung_task.c:379
 kthread+0x2b8/0x350 kernel/kthread.c:389
 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296
RIP: 0000:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 6327 Comm: udevd Not tainted 6.5.0-rc3-syzkaller-00283-g12214540ad87 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:tomoyo_inode_getattr+0x4/0x20 security/tomoyo/tomoyo.c:121
Code: 00 00 48 3b 84 24 80 00 00 00 75 11 89 d8 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 64 f3 c3 06 0f 1f 40 00 f3 0f 1e fa <53> 48 89 fb e8 f3 37 93 fd bf 05 00 00 00 48 89 de 31 d2 5b e9 c3
RSP: 0018:ffffc90017e4fc68 EFLAGS: 00000246
RAX: 1ffffffff19916ab RBX: ffffffff8cc8b558 RCX: ffff88808c62d940
RDX: ffff88808c62d940 RSI: 0000000000000000 RDI: ffffc90017e4fd20
RBP: ffffffff8cc8b540 R08: ffffffff83f2b14a R09: 0000000000000000
R10: ffffc90017e4fb00 R11: fffff52002fc9f62 R12: dffffc0000000000
R13: ffffc90017e4fd20 R14: 0000000000000000 R15: ffffc90017e4fd20
FS:  00007f8b96c9bc80(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd67fe4958 CR3: 000000002122b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 security_inode_getattr+0xd3/0x120 security/security.c:2114
 vfs_getattr fs/stat.c:167 [inline]
 vfs_statx+0x18f/0x480 fs/stat.c:242
 vfs_fstatat fs/stat.c:276 [inline]
 __do_sys_newfstatat fs/stat.c:446 [inline]
 __se_sys_newfstatat fs/stat.c:440 [inline]
 __x64_sys_newfstatat+0x14f/0x1d0 fs/stat.c:440
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8b96d715f4
Code: 64 c7 00 09 00 00 00 83 c8 ff c3 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 00 00 00 00 41 89 ca b8 06 01 00 00 0f 05 <45> 31 c0 3d 00 f0 ff ff 76 10 48 8b 15 03 a8 0d 00 f7 d8 41 83 c8
RSP: 002b:00007ffd67fec4e8 EFLAGS: 00000206 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 00007ffd67fec588 RCX: 00007f8b96d715f4
RDX: 00007ffd67fec4f8 RSI: 000055a4acc73840 RDI: 00000000ffffff9c
RBP: 000055a4acc73840 R08: 000055a4acc71f00 R09: 0000000000000140
R10: 0000000000000100 R11: 0000000000000206 R12: 0000000000000005
R13: 00007ffd67fed618 R14: 000055a4acc7b550 R15: 000055a4acc7385c
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/30 06:13 upstream 12214540ad87 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in exfat_iterate
* Struck through repros no longer work on HEAD.