syzbot


INFO: task hung in exfat_truncate

Status: auto-obsoleted due to no activity on 2024/04/30 13:44
Subsystems: exfat
[Documentation on labels]
First crash: 363d, last: 363d

Sample crash report:
INFO: task syz-executor.4:5726 blocked for more than 143 seconds.
      Not tainted 6.8.0-rc2-syzkaller-00047-g1bbb19b6eb1b #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:24664 pid:5726  tgid:5725  ppid:5082   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5400 [inline]
 __schedule+0x177f/0x49a0 kernel/sched/core.c:6727
 __schedule_loop kernel/sched/core.c:6802 [inline]
 schedule+0x149/0x260 kernel/sched/core.c:6817
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6874
 __mutex_lock_common kernel/locking/mutex.c:684 [inline]
 __mutex_lock+0x6a3/0xd70 kernel/locking/mutex.c:752
 exfat_truncate+0xa6/0x330 fs/exfat/file.c:244
 exfat_setattr+0xd53/0x1830 fs/exfat/file.c:355
 notify_change+0xb9d/0xe70 fs/attr.c:499
 do_truncate+0x220/0x310 fs/open.c:66
 handle_truncate fs/namei.c:3299 [inline]
 do_open fs/namei.c:3645 [inline]
 path_openat+0x29fd/0x3240 fs/namei.c:3798
 do_filp_open+0x234/0x490 fs/namei.c:3825
 do_sys_openat2+0x13e/0x1d0 fs/open.c:1404
 do_sys_open fs/open.c:1419 [inline]
 __do_sys_creat fs/open.c:1495 [inline]
 __se_sys_creat fs/open.c:1489 [inline]
 __x64_sys_creat+0x123/0x170 fs/open.c:1489
 do_syscall_64+0xf9/0x240
 entry_SYSCALL_64_after_hwframe+0x6f/0x77
RIP: 0033:0x7f1e2a87dda9
RSP: 002b:00007f1e2b5c90c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f1e2a9abf80 RCX: 00007f1e2a87dda9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000340
RBP: 00007f1e2a8ca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f1e2a9abf80 R15: 00007fffaae517c8
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/29:
 #0: ffffffff8e130ae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline]
 #0: ffffffff8e130ae0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline]
 #0: ffffffff8e130ae0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614
2 locks held by kworker/u4:4/59:
2 locks held by kworker/u4:5/1035:
4 locks held by kworker/1:2/1572:
 #0: ffff8880b953c918 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559
 #1: ffff8880b9528988 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:988
 #2: ffff888030e528b8 (&x->wait#36){....}-{2:2}, at: complete_with_flags kernel/sched/completion.c:20 [inline]
 #2: ffff888030e528b8 (&x->wait#36){....}-{2:2}, at: complete+0x28/0x1c0 kernel/sched/completion.c:47
 #3: ffff88807a24e338 (&p->pi_lock){-.-.}-{2:2}, at: class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:553 [inline]
 #3: ffff88807a24e338 (&p->pi_lock){-.-.}-{2:2}, at: try_to_wake_up+0xaf/0x1470 kernel/sched/core.c:4253
2 locks held by getty/4812:
 #0: ffff88802b33e0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201
4 locks held by syz-executor.4/5726:
 #0: ffff88801dc30420 (sb_writers#18){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:409
 #1: ffff888020be0fc8 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline]
 #1: ffff888020be0fc8 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: do_truncate+0x20c/0x310 fs/open.c:64
 #2: ffff888020be0e50 (&ei->truncate_lock){+.+.}-{3:3}, at: exfat_setattr+0xd2c/0x1830 fs/exfat/file.c:348
 #3: ffff88801cf360e0 (&sbi->s_lock){+.+.}-{3:3}, at: exfat_truncate+0xa6/0x330 fs/exfat/file.c:244
5 locks held by syz-executor.4/5731:
4 locks held by syz-executor.1/6075:
 #0: ffff88804b28a420 (sb_writers#18){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:409
 #1: ffff888078b18fc8 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline]
 #1: ffff888078b18fc8 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: do_truncate+0x20c/0x310 fs/open.c:64
 #2: ffff888078b18e50 (&ei->truncate_lock){+.+.}-{3:3}, at: exfat_setattr+0xd2c/0x1830 fs/exfat/file.c:348
 #3: ffff88804b2880e0 (&sbi->s_lock){+.+.}-{3:3}, at: exfat_truncate+0xa6/0x330 fs/exfat/file.c:244
5 locks held by syz-executor.1/6082:
1 lock held by syz-executor.3/8200:
4 locks held by syz-executor.3/8201:
1 lock held by syz-executor.1/8204:

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

NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.8.0-rc2-syzkaller-00047-g1bbb19b6eb1b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x198/0x320 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+0xfaf/0xff0 kernel/hung_task.c:379
 kthread+0x2ef/0x390 kernel/kthread.c:388
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:242
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 6082 Comm: syz-executor.1 Not tainted 6.8.0-rc2-syzkaller-00047-g1bbb19b6eb1b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:check_kcov_mode kernel/kcov.c:173 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:236 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp8+0x17/0x90 kernel/kcov.c:311
Code: 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 4c 8b 04 24 65 48 8b 0d a0 53 70 7e 65 8b 05 a1 53 70 7e <a9> 00 01 ff 00 74 10 a9 00 01 00 00 74 57 83 b9 fc 15 00 00 00 74
RSP: 0018:ffffc900185d7068 EFLAGS: 00000246
RAX: 0000000080000000 RBX: ffffea00019ac5c8 RCX: ffff88804b27d940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff81cc547e R09: 1ffffd4000326ec0
R10: dffffc0000000000 R11: fffff94000326ec1 R12: 1ffffd4000326ec0
R13: ffffea0001937600 R14: ffffea0001937608 R15: 1ffffd4000326ec1
FS:  00007f8ae9ba86c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f47cbcec000 CR3: 0000000025684000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 PageTail include/linux/page-flags.h:286 [inline]
 folio_flags include/linux/page-flags.h:313 [inline]
 folio_test_active include/linux/page-flags.h:477 [inline]
 folio_mark_accessed+0x17e/0x11b0 mm/swap.c:473
 __find_get_block+0x540/0x10d0 fs/buffer.c:1405
 bdev_getblk+0x38/0x610 fs/buffer.c:1423
 __bread_gfp+0xac/0x430 fs/buffer.c:1474
 sb_bread include/linux/buffer_head.h:321 [inline]
 __exfat_ent_get fs/exfat/fatent.c:48 [inline]
 exfat_ent_get+0x14d/0x400 fs/exfat/fatent.c:97
 __exfat_free_cluster+0x56f/0x990 fs/exfat/fatent.c:200
 exfat_free_cluster+0x77/0xd0 fs/exfat/fatent.c:232
 __exfat_truncate+0x71c/0xa40 fs/exfat/file.c:229
 exfat_truncate+0xdb/0x330 fs/exfat/file.c:253
 exfat_setattr+0xd53/0x1830 fs/exfat/file.c:355
 notify_change+0xb9d/0xe70 fs/attr.c:499
 do_truncate+0x220/0x310 fs/open.c:66
 handle_truncate fs/namei.c:3299 [inline]
 do_open fs/namei.c:3645 [inline]
 path_openat+0x29fd/0x3240 fs/namei.c:3798
 do_filp_open+0x234/0x490 fs/namei.c:3825
 do_sys_openat2+0x13e/0x1d0 fs/open.c:1404
 do_sys_open fs/open.c:1419 [inline]
 __do_sys_open fs/open.c:1427 [inline]
 __se_sys_open fs/open.c:1423 [inline]
 __x64_sys_open+0x225/0x270 fs/open.c:1423
 do_syscall_64+0xf9/0x240
 entry_SYSCALL_64_after_hwframe+0x6f/0x77
RIP: 0033:0x7f8ae8e7dda9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8ae9ba80c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f8ae8fac050 RCX: 00007f8ae8e7dda9
RDX: 0000000000000088 RSI: 0000000000000a00 RDI: 0000000020000100
RBP: 00007f8ae8eca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f8ae8fac050 R15: 00007ffe362dec78
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/31 13:36 upstream 1bbb19b6eb1b 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in exfat_truncate
* Struck through repros no longer work on HEAD.