syzbot


INFO: task hung in exfat_sync_fs (2)

Status: upstream: reported on 2024/05/06 19:33
Reported-by: syzbot+7337af1738f2164a1633@syzkaller.appspotmail.com
First crash: 25d, last: 23d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in exfat_sync_fs exfat 770 4h42m 307d 0/26 upstream: reported on 2023/07/29 17:40
linux-5.15 INFO: task hung in exfat_sync_fs 3 202d 297d 0/3 auto-obsoleted due to no activity on 2024/02/20 04:29
linux-6.1 INFO: task hung in exfat_sync_fs 16 18d 217d 0/3 upstream: reported on 2023/10/27 20:30

Sample crash report:
INFO: task syz-executor.0:5359 blocked for more than 143 seconds.
      Not tainted 5.15.158-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:26624 pid: 5359 ppid:  4637 flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 schedule+0x11b/0x1f0 kernel/sched/core.c:6459
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6518
 __mutex_lock_common+0xe34/0x25a0 kernel/locking/mutex.c:669
 __mutex_lock kernel/locking/mutex.c:729 [inline]
 mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743
 exfat_sync_fs+0x67/0x100 fs/exfat/super.c:64
 iterate_supers+0x127/0x1e0 fs/super.c:705
 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:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fd80ca97d69
RSP: 002b:00007fd80afe90c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 00007fd80cbc6050 RCX: 00007fd80ca97d69
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fd80cae449e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fd80cbc6050 R15: 00007ffe016f2558
 </TASK>
INFO: task syz-executor.0:5360 blocked for more than 143 seconds.
      Not tainted 5.15.158-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:28096 pid: 5360 ppid:  4637 flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 schedule+0x11b/0x1f0 kernel/sched/core.c:6459
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6518
 __mutex_lock_common+0xe34/0x25a0 kernel/locking/mutex.c:669
 __mutex_lock kernel/locking/mutex.c:729 [inline]
 mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743
 exfat_sync_fs+0x67/0x100 fs/exfat/super.c:64
 iterate_supers+0x127/0x1e0 fs/super.c:705
 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:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fd80ca97d69
RSP: 002b:00007fd80afc80c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 00007fd80cbc6120 RCX: 00007fd80ca97d69
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fd80cae449e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fd80cbc6120 R15: 00007ffe016f2558
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/3261:
 #0: ffff88814a9db098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
 #1: ffffc900024b32e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158
3 locks held by syz-executor.1/4427:
3 locks held by syz-executor.3/4483:
3 locks held by syz-executor.2/5114:
2 locks held by syz-executor.0/5359:
 #0: ffff888021d420e0 (&type->s_umount_key#49){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:703
 #1: ffff888021d400e0 (&sbi->s_lock){+.+.}-{3:3}, at: exfat_sync_fs+0x67/0x100 fs/exfat/super.c:64
2 locks held by syz-executor.0/5360:
 #0: ffff888021d420e0 (&type->s_umount_key#49){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:703
 #1: ffff888021d400e0 (&sbi->s_lock){+.+.}-{3:3}, at: exfat_sync_fs+0x67/0x100 fs/exfat/super.c:64

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

NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.158-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
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:210 [inline]
 watchdog+0xe72/0xeb0 kernel/hung_task.c:295
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4594 Comm: kworker/u4:9 Not tainted 5.15.158-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: phy22 ieee80211_iface_work
RIP: 0010:kasan_record_aux_stack+0xad/0x100 mm/kasan/generic.c:347
Code: f0 48 01 fe 48 39 f3 77 03 48 89 de 4c 89 f7 e8 89 19 ff ff 4c 89 f7 48 89 c6 e8 5e dd ff ff 48 85 c0 74 16 48 89 c3 8b 40 08 <89> 43 0c bf 00 08 00 00 e8 86 da ff ff 89 43 08 5b 41 5e c3 48 ff
RSP: 0018:ffffc9000117f348 EFLAGS: 00000282
RAX: 00000000ada00242 RBX: ffff88801f1eb5e0 RCX: 0000000000000060
RDX: 0000000000000000 RSI: ffff88801f1eb580 RDI: ffff888011c41780
RBP: ffffc9000117f450 R08: 0000000000000080 R09: ffffffff8990d8d5
R10: 0000000000000002 R11: ffff888018de9dc0 R12: dffffc0000000000
R13: 1ffff9200022fe74 R14: ffff888011c41780 R15: ffff88801f1eb580
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007febfe1b14c0 CR3: 0000000055de0000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 kvfree_call_rcu+0x118/0x8a0 kernel/rcu/tree.c:3596
 cfg80211_update_known_bss+0x16b/0x9e0
 cfg80211_bss_update+0x187/0x21e0 net/wireless/scan.c:1771
 cfg80211_inform_single_bss_frame_data net/wireless/scan.c:2492 [inline]
 cfg80211_inform_bss_frame_data+0xa13/0x20f0 net/wireless/scan.c:2525
 ieee80211_bss_info_update+0x7a6/0xc80 net/mac80211/scan.c:190
 ieee80211_rx_bss_info net/mac80211/ibss.c:1123 [inline]
 ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1614 [inline]
 ieee80211_ibss_rx_queued_mgmt+0x175e/0x2af0 net/mac80211/ibss.c:1643
 ieee80211_iface_process_skb net/mac80211/iface.c:1441 [inline]
 ieee80211_iface_work+0x78f/0xcc0 net/mac80211/iface.c:1495
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/08 14:02 linux-5.15.y 284087d4f7d5 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in exfat_sync_fs
2024/05/06 19:32 linux-5.15.y 284087d4f7d5 d884b519 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in exfat_sync_fs
* Struck through repros no longer work on HEAD.