syzbot


INFO: task hung in exfat_sync_fs

Status: auto-obsoleted due to no activity on 2024/02/20 04:29
Reported-by: syzbot+b278e9aea1bf67812374@syzkaller.appspotmail.com
First crash: 274d, last: 179d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in exfat_sync_fs exfat 499 22h06m 284d 0/26 upstream: reported on 2023/07/29 17:40
linux-6.1 INFO: task hung in exfat_sync_fs 15 1d00h 194d 0/3 upstream: reported on 2023/10/27 20:30
linux-5.15 INFO: task hung in exfat_sync_fs (2) 2 1d00h 2d18h 0/3 upstream: reported on 2024/05/06 19:33

Sample crash report:
INFO: task syz-executor.0:8054 blocked for more than 143 seconds.
      Not tainted 5.15.138-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:27520 pid: 8054 ppid:  3556 flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5026 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6372
 schedule+0x11b/0x1f0 kernel/sched/core.c:6455
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6514
 __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
 sync_filesystem+0x1bc/0x220 fs/sync.c:66
 fsync_bdev+0x29/0xb0 block/bdev.c:216
 blkdev_flushbuf block/ioctl.c:352 [inline]
 blkdev_common_ioctl+0xd0f/0x2080 block/ioctl.c:477
 blkdev_ioctl+0x286/0x6b0 block/ioctl.c:597
 block_ioctl+0xb1/0xf0 block/fops.c:493
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f6a22c6bae9
RSP: 002b:00007f6a211ed0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f6a22d8af80 RCX: 00007f6a22c6bae9
RDX: 0000000000000000 RSI: 0000000000001261 RDI: 0000000000000003
RBP: 00007f6a22cb747a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f6a22d8af80 R15: 00007ffec85d7778
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffffffff8c91f020 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by kworker/u4:3/504:
1 lock held by klogd/2952:
2 locks held by getty/3269:
 #0: ffff8880243ff098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
 #1: ffffc90002bb32e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158
3 locks held by syz-executor.3/13734:
2 locks held by syz-executor.0/8054:
 #0: ffff8880155da0e0 (&type->s_umount_key#79){++++}-{3:3}, at: get_super+0xfe/0x1f0 fs/super.c:776
 #1: ffff888022c280e0 (&sbi->s_lock){+.+.}-{3:3}, at: exfat_sync_fs+0x67/0x100 fs/exfat/super.c:64
2 locks held by syz-executor.0/8123:
 #0: ffff8880155da0e0 (&type->s_umount_key#79){++++}-{3:3}, at: get_super+0xfe/0x1f0 fs/super.c:776
 #1: ffff888022c280e0 (&sbi->s_lock){+.+.}-{3:3}, at: exfat_sync_fs+0x67/0x100 fs/exfat/super.c:64
2 locks held by syz-executor.0/8164:
 #0: ffff8880155da0e0 (&type->s_umount_key#79){++++}-{3:3}, at: get_super+0xfe/0x1f0 fs/super.c:776
 #1: ffff888022c280e0 (&sbi->s_lock){+.+.}-{3:3}, at: exfat_sync_fs+0x67/0x100 fs/exfat/super.c:64

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

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.138-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb 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:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 504 Comm: kworker/u4:3 Not tainted 5.15.138-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
Workqueue: bat_events batadv_nc_worker
RIP: 0010:hlock_class kernel/locking/lockdep.c:197 [inline]
RIP: 0010:__lock_acquire+0xfb7/0x1ff0 kernel/locking/lockdep.c:5007
Code: 0e 00 00 8b 1b 81 e3 ff 1f 00 00 89 d8 c1 e8 06 48 8d 3c c5 00 e1 bc 8f be 08 00 00 00 e8 01 47 67 00 48 0f a3 1d 99 4e 5a 0e <0f> 83 be 01 00 00 48 8d 04 5b 48 c1 e0 06 48 8d 98 00 40 8c 8f 48
RSP: 0018:ffffc90002d2f900 EFLAGS: 00000057
RAX: 0000000000000001 RBX: 0000000000000752 RCX: ffffffff8162925f
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8fbce1e8
RBP: 3412406634bd91e8 R08: dffffc0000000000 R09: fffffbfff1f79c3e
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002
R13: ffff888019ea8ae8 R14: ffff888019ea8000 R15: ffff888019ea8b60
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c011ca6c28 CR3: 0000000023473000 CR4: 00000000003526e0
DR0: 00000000d5483e82 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:368 [inline]
 batadv_nc_purge_paths+0xe8/0x3b0 net/batman-adv/network-coding.c:446
 batadv_nc_worker+0x30b/0x5b0 net/batman-adv/network-coding.c:726
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/12 04:28 linux-5.15.y 80529b4968a8 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in exfat_sync_fs
2023/10/27 20:34 linux-5.15.y 12952a23a5da 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in exfat_sync_fs
2023/08/08 15:53 linux-5.15.y 38d4ca22a528 9552ae77 .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.