syzbot


INFO: task hung in exfat_sync_fs

Status: upstream: reported on 2023/10/27 20:30
Reported-by: syzbot+0d1cb0a990ed164d3874@syzkaller.appspotmail.com
First crash: 189d, last: 63d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in exfat_sync_fs exfat 415 19h44m 279d 0/26 upstream: reported on 2023/07/29 17:40
linux-5.15 INFO: task hung in exfat_sync_fs 3 173d 269d 0/3 auto-obsoleted due to no activity on 2024/02/20 04:29

Sample crash report:
INFO: task syz-executor.4:21893 blocked for more than 143 seconds.
      Not tainted 6.1.80-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:25144 pid:21893 ppid:10451  flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6693
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x6b9/0xd80 kernel/locking/mutex.c:747
 exfat_sync_fs+0x67/0x100 fs/exfat/super.c:65
 iterate_supers+0x127/0x1e0 fs/super.c:746
 ksys_sync+0xd7/0x1c0 fs/sync.c:104
 __do_sys_sync+0xa/0x10 fs/sync.c:113
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f77c2e7dda9
RSP: 002b:00007f77c19fe0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 00007f77c2fac120 RCX: 00007f77c2e7dda9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f77c2eca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f77c2fac120 R15: 00007ffd289b1228
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8d12aa90 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:516
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8d12b290 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:516
1 lock held by khungtaskd/28:
 #0: ffffffff8d12a8c0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:319 [inline]
 #0: ffffffff8d12a8c0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:760 [inline]
 #0: ffffffff8d12a8c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6494
2 locks held by getty/3315:
 #0: ffff88814b8e4098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2188
3 locks held by kworker/u4:6/3631:
3 locks held by syz-executor.0/17975:
3 locks held by kworker/0:0/21870:
 #0: ffff888012470938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267
 #1: ffffc9000ac67d20 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267
 #2: ffff888043ef4240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x2cd/0x4120 drivers/net/netdevsim/fib.c:1489
2 locks held by syz-executor.4/21893:
 #0: ffff88804216c0e0 (&type->s_umount_key#94){.+.+}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:744
 #1: ffff8880749ea0e0 (&sbi->s_lock#2){+.+.}-{3:3}, at: exfat_sync_fs+0x67/0x100 fs/exfat/super.c:65
2 locks held by syz-executor.2/21982:
 #0: ffff88804216c0e0 (&type->s_umount_key#94){.+.+}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:744
 #1: ffff8880749ea0e0 (&sbi->s_lock#2){+.+.}-{3:3}, at: exfat_sync_fs+0x67/0x100 fs/exfat/super.c:65
2 locks held by syz-executor.0/22098:
 #0: ffff88804216c0e0 (&type->s_umount_key#94){.+.+}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:744
 #1: ffff8880749ea0e0 (&sbi->s_lock#2){+.+.}-{3:3}, at: exfat_sync_fs+0x67/0x100 fs/exfat/super.c:65
2 locks held by syz-executor.4/22181:
 #0: ffff88804216c0e0 (&type->s_umount_key#94){.+.+}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:744
 #1: ffff8880749ea0e0 (&sbi->s_lock#2){+.+.}-{3:3}, at: exfat_sync_fs+0x67/0x100 fs/exfat/super.c:65
2 locks held by syz-executor.2/22278:
 #0: ffff88804216c0e0 (&type->s_umount_key#94){.+.+}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:744
 #1: ffff8880749ea0e0 (&sbi->s_lock#2){+.+.}-{3:3}, at: exfat_sync_fs+0x67/0x100 fs/exfat/super.c:65
2 locks held by syz-executor.0/22275:
 #0: ffff88804216c0e0 (&type->s_umount_key#94){.+.+}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:744
 #1: ffff8880749ea0e0 (&sbi->s_lock#2){+.+.}-{3:3}, at: exfat_sync_fs+0x67/0x100 fs/exfat/super.c:65
2 locks held by syz-executor.4/22367:
 #0: ffff88804216c0e0 (&type->s_umount_key#94){.+.+}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:744
 #1: ffff8880749ea0e0 (&sbi->s_lock#2){+.+.}-{3:3}, at: exfat_sync_fs+0x67/0x100 fs/exfat/super.c:65
2 locks held by syz-executor.2/22476:
 #0: ffff88804216c0e0 (&type->s_umount_key#94){.+.+}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:744
 #1: ffff8880749ea0e0 (&sbi->s_lock#2){+.+.}-{3:3}, at: exfat_sync_fs+0x67/0x100 fs/exfat/super.c:65
2 locks held by syz-executor.0/22481:
 #0: ffff88804216c0e0 (&type->s_umount_key#94){.+.+}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:744
 #1: ffff8880749ea0e0 (&sbi->s_lock#2){+.+.}-{3:3}, at: exfat_sync_fs+0x67/0x100 fs/exfat/super.c:65

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

NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.80-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1b0/0x3f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
 watchdog+0xf88/0xfd0 kernel/hung_task.c:377
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 10091 Comm: kworker/u4:5 Not tainted 6.1.80-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Workqueue: bond3 bond_3ad_state_machine_handler
RIP: 0010:__lock_acquire+0x90/0x1f80
Code: c1 e8 03 80 3c 10 00 74 12 4c 89 f7 e8 a9 a0 77 00 48 ba 00 00 00 00 00 fc ff df 48 c7 c0 20 01 35 90 49 39 06 75 03 45 31 ff <89> 5c 24 3c 83 fd 01 77 2e 89 e8 49 8d 5c c6 08 48 89 d8 48 c1 e8
RSP: 0018:ffffc90003fbfa20 EFLAGS: 00000083
RAX: ffffffff90350120 RBX: 0000000000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff8880368a3138
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff88801b2c0000 R14: ffff8880368a3138 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c000864000 CR3: 000000000ce8e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
 process_one_work+0x7bf/0x11d0 kernel/workqueue.c:2267
 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/01 15:02 linux-6.1.y a3eb3a74aa8c 83acf9e0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in exfat_sync_fs
2024/02/28 14:02 linux-6.1.y 81e1dc2f7001 55d6f11d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in exfat_sync_fs
2024/02/27 20:10 linux-6.1.y 81e1dc2f7001 d367cbe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in exfat_sync_fs
2024/02/23 19:37 linux-6.1.y 81e1dc2f7001 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in exfat_sync_fs
2024/02/23 13:58 linux-6.1.y 81e1dc2f7001 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in exfat_sync_fs
2024/02/22 00:06 linux-6.1.y 8b4118fabd6e 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in exfat_sync_fs
2024/02/20 04:29 linux-6.1.y 8b4118fabd6e 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in exfat_sync_fs
2024/02/19 16:08 linux-6.1.y 8b4118fabd6e 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in exfat_sync_fs
2023/11/22 18:58 linux-6.1.y 69e434a1cb21 03e12510 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in exfat_sync_fs
2023/11/20 19:51 linux-6.1.y 69e434a1cb21 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in exfat_sync_fs
2023/11/13 22:26 linux-6.1.y fb2635ac69ab cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in exfat_sync_fs
2023/11/12 04:22 linux-6.1.y fb2635ac69ab 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in exfat_sync_fs
2023/10/27 22:36 linux-6.1.y 32c9cdbe383c 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in exfat_sync_fs
2023/10/27 20:29 linux-6.1.y 32c9cdbe383c 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in exfat_sync_fs
* Struck through repros no longer work on HEAD.