syzbot


INFO: task hung in inode_sleep_on_writeback (4)

Status: auto-obsoleted due to no activity on 2025/11/18 16:32
Subsystems: bcachefs
[Documentation on labels]
First crash: 116d, last: 112d
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in inode_sleep_on_writeback exfat 1 8 2524d 2810d 0/29 closed as dup on 2019/02/06 13:32
upstream INFO: task hung in inode_sleep_on_writeback (3) bcachefs 1 1 259d 259d 0/29 auto-obsoleted due to no activity on 2025/06/23 20:40
upstream INFO: task hung in inode_sleep_on_writeback (2) fs 1 1 1494d 1494d 0/29 auto-closed as invalid on 2022/02/05 13:28

Sample crash report:
INFO: task kworker/u8:11:3848 blocked for more than 143 seconds.
      Tainted: G        W           syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u8:11   state:D stack:19880 pid:3848  tgid:3848  ppid:2      task_flags:0x4208060 flags:0x00004000
Workqueue: writeback wb_workfn (flush-bcachefs-327)
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5357 [inline]
 __schedule+0x16f3/0x4c20 kernel/sched/core.c:6961
 __schedule_loop kernel/sched/core.c:7043 [inline]
 schedule+0x165/0x360 kernel/sched/core.c:7058
 inode_sleep_on_writeback+0x12d/0x1b0 fs/fs-writeback.c:1579
 wb_writeback+0x61d/0xaf0 fs/fs-writeback.c:2192
 wb_check_old_data_flush fs/fs-writeback.c:2262 [inline]
 wb_do_writeback fs/fs-writeback.c:2315 [inline]
 wb_workfn+0xaf4/0xf00 fs/fs-writeback.c:2343
 process_one_work kernel/workqueue.c:3236 [inline]
 process_scheduled_works+0xade/0x17b0 kernel/workqueue.c:3319
 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400
 kthread+0x70e/0x8a0 kernel/kthread.c:463
 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
INFO: lockdep is turned off.
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 38 Comm: khungtaskd Tainted: G        W           syzkaller #0 PREEMPT_{RT,(full)} 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 nmi_cpu_backtrace+0x39e/0x3d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x17a/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:328 [inline]
 watchdog+0xf93/0xfe0 kernel/hung_task.c:491
 kthread+0x70e/0x8a0 kernel/kthread.c:463
 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 24185 Comm: syz.2.1872 Tainted: G        W           syzkaller #0 PREEMPT_{RT,(full)} 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:kasan_check_range+0x5/0x2c0 mm/kasan/generic.c:188
Code: 21 8d e8 3e 36 0a ff 90 0f 0b cc cc cc cc cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 55 <41> 57 41 56 41 55 41 54 53 b0 01 48 85 f6 0f 84 ba 01 00 00 4c 8d
RSP: 0018:ffffc90005d674f8 EFLAGS: 00000246
RAX: ffffffff81f568b4 RBX: 00000000000000c5 RCX: ffffffff81f568cb
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffea000127e600
RBP: 1ffffd400024fcc1 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff9400024fcc1 R12: 0000000000000000
R13: 1ffffd400024fcc0 R14: ffffea000127e600 R15: ffffea000127e608
FS:  00007f2c726d66c0(0000) GS:ffff8881269c5000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0d67882020 CR3: 0000000037b50000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 instrument_atomic_read include/linux/instrumented.h:68 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 folio_test_swapcache include/linux/page-flags.h:633 [inline]
 folio_contains+0xeb/0x2b0 include/linux/pagemap.h:962
 find_lock_entries+0x7a8/0xa60 mm/filemap.c:2159
 shmem_undo_range+0x254/0x14b0 mm/shmem.c:1139
 shmem_truncate_range mm/shmem.c:1269 [inline]
 shmem_evict_inode+0x272/0xa70 mm/shmem.c:1397
 evict+0x501/0x9c0 fs/inode.c:810
 __dentry_kill+0x209/0x660 fs/dcache.c:669
 dput+0x19f/0x2b0 fs/dcache.c:911
 __fput+0x69d/0xa80 fs/file_table.c:476
 fput_close_sync+0x119/0x200 fs/file_table.c:573
 __do_sys_close fs/open.c:1587 [inline]
 __se_sys_close fs/open.c:1572 [inline]
 __x64_sys_close+0x7f/0x110 fs/open.c:1572
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2c7446d84a
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 43 91 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 a3 91 02 00 8b 44 24
RSP: 002b:00007f2c726d5e00 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007f2c7446d84a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000001231
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000004
R13: 00007f2c726d5ef0 R14: 00007f2c726d5eb0 R15: 00007f2c6a2b6000
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/20 16:29 upstream b19a97d57c15 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in inode_sleep_on_writeback
2025/08/16 15:15 upstream dfd4b508c8c6 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in inode_sleep_on_writeback
* Struck through repros no longer work on HEAD.