syzbot


INFO: task hung in mpage_prepare_extent_to_map (3)

Status: auto-obsoleted due to no activity on 2025/07/14 01:35
Subsystems: mm ext4
[Documentation on labels]
First crash: 165d, last: 137d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in mpage_prepare_extent_to_map 1 syz done 18606 2124d 2132d 14/29 fixed on 2019/11/29 15:48
upstream INFO: task hung in mpage_prepare_extent_to_map (2) ext4 1 4 280d 283d 0/29 auto-obsoleted due to no activity on 2025/02/20 07:58

Sample crash report:
INFO: task kworker/u8:3:46 blocked for more than 143 seconds.
      Not tainted 6.15.0-rc2-syzkaller-00037-g834a4a689699 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u8:3    state:D stack:24568 pid:46    tgid:46    ppid:2      task_flags:0x4248160 flags:0x00004000
Workqueue: writeback wb_workfn (flush-8:0)
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x116f/0x5de0 kernel/sched/core.c:6767
 __schedule_loop kernel/sched/core.c:6845 [inline]
 schedule+0xe7/0x3a0 kernel/sched/core.c:6860
 io_schedule+0xbf/0x130 kernel/sched/core.c:7742
 folio_wait_bit_common+0x3d6/0x9e0 mm/filemap.c:1317
 folio_lock include/linux/pagemap.h:1137 [inline]
 mpage_prepare_extent_to_map+0xa0f/0x1460 fs/ext4/inode.c:2485
 ext4_do_writepages+0x9af/0x3490 fs/ext4/inode.c:2692
 ext4_writepages+0x37a/0x7d0 fs/ext4/inode.c:2829
 do_writepages+0x1b2/0x820 mm/page-writeback.c:2656
 __writeback_single_inode+0x160/0xfb0 fs/fs-writeback.c:1680
 writeback_sb_inodes+0x601/0xf90 fs/fs-writeback.c:1976
 __writeback_inodes_wb+0xf8/0x2d0 fs/fs-writeback.c:2047
 wb_writeback+0x7f3/0xb70 fs/fs-writeback.c:2158
 wb_check_old_data_flush fs/fs-writeback.c:2262 [inline]
 wb_do_writeback fs/fs-writeback.c:2315 [inline]
 wb_workfn+0x8ca/0xbe0 fs/fs-writeback.c:2343
 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3238
 process_scheduled_works kernel/workqueue.c:3319 [inline]
 worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400
 kthread+0x3c2/0x780 kernel/kthread.c:464
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
INFO: task jbd2/sda1-8:5172 blocked for more than 143 seconds.
      Not tainted 6.15.0-rc2-syzkaller-00037-g834a4a689699 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:jbd2/sda1-8     state:D stack:26616 pid:5172  tgid:5172  ppid:2      task_flags:0x240040 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x116f/0x5de0 kernel/sched/core.c:6767
 __schedule_loop kernel/sched/core.c:6845 [inline]
 schedule+0xe7/0x3a0 kernel/sched/core.c:6860
 jbd2_journal_wait_updates+0x11e/0x240 fs/jbd2/transaction.c:843
 jbd2_journal_commit_transaction+0x828/0x6830 fs/jbd2/commit.c:454
 kjournald2+0x1f4/0x760 fs/jbd2/journal.c:201
 kthread+0x3c2/0x780 kernel/kthread.c:464
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
INFO: task syz-executor:5825 blocked for more than 144 seconds.
      Not tainted 6.15.0-rc2-syzkaller-00037-g834a4a689699 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:23112 pid:5825  tgid:5825  ppid:5823   task_flags:0x400100 flags:0x00000002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x116f/0x5de0 kernel/sched/core.c:6767
 __schedule_loop kernel/sched/core.c:6845 [inline]
 schedule+0xe7/0x3a0 kernel/sched/core.c:6860
 wait_transaction_locked+0x1a1/0x230 fs/jbd2/transaction.c:152
 add_transaction_credits+0x110/0xe60 fs/jbd2/transaction.c:222
 start_this_handle+0x3e7/0x1410 fs/jbd2/transaction.c:403
 jbd2__journal_start+0x394/0x6a0 fs/jbd2/transaction.c:501
 __ext4_journal_start_sb+0x195/0x690 fs/ext4/ext4_jbd2.c:114
 __ext4_journal_start fs/ext4/ext4_jbd2.h:242 [inline]
 ext4_dirty_inode+0xa1/0x130 fs/ext4/inode.c:6100
 __mark_inode_dirty+0x1eb/0xe50 fs/fs-writeback.c:2527
 generic_update_time+0xcf/0xf0 fs/inode.c:2064
 inode_update_time fs/inode.c:2077 [inline]
 __file_update_time fs/inode.c:2305 [inline]
 file_update_time+0x17d/0x1c0 fs/inode.c:2335
 ext4_page_mkwrite+0x35e/0x1750 fs/ext4/inode.c:6221
 do_page_mkwrite+0x171/0x380 mm/memory.c:3287
 do_shared_fault mm/memory.c:5594 [inline]
 do_fault mm/memory.c:5656 [inline]
 do_pte_missing+0x29c/0x3fb0 mm/memory.c:4160
 handle_pte_fault mm/memory.c:5997 [inline]
 __handle_mm_fault+0x103d/0x2a40 mm/memory.c:6140
 handle_mm_fault+0x3fe/0xad0 mm/memory.c:6309
 do_user_addr_fault+0x60c/0x1370 arch/x86/mm/fault.c:1337
 handle_page_fault arch/x86/mm/fault.c:1480 [inline]
 exc_page_fault+0x5c/0xc0 arch/x86/mm/fault.c:1538
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
RIP: 0033:0x7f2b018671e5
RSP: 002b:00007ffd384c6c40 EFLAGS: 00010206
RAX: 00007f2afe9f638c RBX: 00007ffd384c6d40 RCX: 0000000000000000
RDX: 00007f2afe9f6388 RSI: 0000000000000008 RDI: 00007ffd384c6d40
RBP: 00000000000003e6 R08: 0000000000000000 R09: 0000000000000000
R10: 00007ffd384c6d20 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000009c74 R14: ffffffffffff638c R15: 0000000000009c74
 </TASK>
INFO: task syz.3.55:6094 blocked for more than 144 seconds.
      Not tainted 6.15.0-rc2-syzkaller-00037-g834a4a689699 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.55        state:D stack:24888 pid:6094  tgid:6093  ppid:5841   task_flags:0x440040 flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x116f/0x5de0 kernel/sched/core.c:6767
 __schedule_loop kernel/sched/core.c:6845 [inline]
 schedule+0xe7/0x3a0 kernel/sched/core.c:6860
 io_schedule+0xbf/0x130 kernel/sched/core.c:7742
 bit_wait_io+0x15/0xe0 kernel/sched/wait_bit.c:247
 __wait_on_bit_lock+0x112/0x1a0 kernel/sched/wait_bit.c:90
 out_of_line_wait_on_bit_lock+0xd9/0x110 kernel/sched/wait_bit.c:117
 wait_on_bit_lock_io include/linux/wait_bit.h:221 [inline]
 __lock_buffer+0x67/0x70 fs/buffer.c:71
 lock_buffer include/linux/buffer_head.h:425 [inline]
 do_get_write_access+0x8cd/0x12a0 fs/jbd2/transaction.c:968
 jbd2_journal_get_write_access+0x1d6/0x280 fs/jbd2/transaction.c:1241
 __ext4_journal_get_write_access+0x6a/0x340 fs/ext4/ext4_jbd2.c:241
 ext4_mb_mark_context+0x175/0xd40 fs/ext4/mballoc.c:4001
 ext4_mb_mark_diskspace_used+0x466/0x8c0 fs/ext4/mballoc.c:4131
 ext4_mb_new_blocks+0xa5b/0x4f00 fs/ext4/mballoc.c:6233
 ext4_new_meta_blocks+0x30d/0x370 fs/ext4/balloc.c:750
 ext4_ext_grow_indepth fs/ext4/extents.c:1329 [inline]
 ext4_ext_create_new_leaf fs/ext4/extents.c:1433 [inline]
 ext4_ext_insert_extent+0xd1d/0x4610 fs/ext4/extents.c:2115
 ext4_ext_map_blocks+0x205b/0x5d60 fs/ext4/extents.c:4400
 ext4_map_create_blocks fs/ext4/inode.c:520 [inline]
 ext4_map_blocks+0x45b/0x1390 fs/ext4/inode.c:706
 mpage_map_one_extent fs/ext4/inode.c:2224 [inline]
 mpage_map_and_submit_extent fs/ext4/inode.c:2277 [inline]
 ext4_do_writepages+0x1a2c/0x3490 fs/ext4/inode.c:2739
 ext4_writepages+0x37a/0x7d0 fs/ext4/inode.c:2829
 do_writepages+0x1b2/0x820 mm/page-writeback.c:2656
 filemap_fdatawrite_wbc mm/filemap.c:386 [inline]
 filemap_fdatawrite_wbc+0x104/0x160 mm/filemap.c:376
 __filemap_fdatawrite_range+0xb2/0xf0 mm/filemap.c:419
 file_write_and_wait_range+0xca/0x140 mm/filemap.c:794
 ext4_sync_file+0x310/0xf10 fs/ext4/fsync.c:154
 vfs_fsync_range+0x136/0x220 fs/sync.c:187
 __do_sys_msync+0x3cb/0x5c0 mm/msync.c:96
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2313d8d169
RSP: 002b:00007f2314c5e038 EFLAGS: 00000246 ORIG_RAX: 000000000000001a
RAX: ffffffffffffffda RBX: 00007f2313fa5fa0 RCX: 00007f2313d8d169
RDX: 0000000400000004 RSI: 0180000000000000 RDI: 000000001ffff000
RBP: 00007f2313e0e990 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f2313fa5fa0 R15: 00007ffd32232d68
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/31:
 #0: ffffffff8e3c15c0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
 #0: ffffffff8e3c15c0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
 #0: ffffffff8e3c15c0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x36/0x1c0 kernel/locking/lockdep.c:6764
4 locks held by kworker/u8:3/46:
 #0: ffff888143a9c948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x12a2/0x1b70 kernel/workqueue.c:3213
 #1: ffffc90000b77d18 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x929/0x1b70 kernel/workqueue.c:3214
 #2: ffff88814eaec0e0 (&type->s_umount_key#31){++++}-{4:4}, at: super_trylock_shared+0x1e/0xf0 fs/super.c:562
 #3: ffff88814eaeeb98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b2/0x820 mm/page-writeback.c:2656
2 locks held by kworker/u8:6/1163:
 #0: ffff8880b8539f18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:605
 #1: ffff8880b8523c48 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2c1/0x8e0 kernel/sched/psi.c:987
2 locks held by getty/5591:
 #0: ffff8880319a90a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc900033262f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x41b/0x14f0 drivers/tty/n_tty.c:2222
2 locks held by syz-executor/5825:
 #0: ffff88807f451948 (vm_lock){++++}-{0:0}, at: do_user_addr_fault+0x452/0x1370 arch/x86/mm/fault.c:1328
 #1: ffff88814eaec518 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x171/0x380 mm/memory.c:3287
2 locks held by kworker/0:6/5900:
 #0: ffff8880b8439f18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:605
 #1: ffff8880b8423c48 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2c1/0x8e0 kernel/sched/psi.c:987
3 locks held by syz.3.55/6094:
 #0: ffff88814eaeeb98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b2/0x820 mm/page-writeback.c:2656
 #1: ffff88814eaf0950 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x5e4/0x1410 fs/jbd2/transaction.c:444
 #2: ffff888079bbc820 (&ei->i_data_sem){++++}-{4:4}, at: ext4_map_blocks+0x355/0x1390 fs/ext4/inode.c:705

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc2-syzkaller-00037-g834a4a689699 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
 nmi_cpu_backtrace+0x27b/0x390 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x29c/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:158 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:274 [inline]
 watchdog+0xf70/0x12c0 kernel/hung_task.c:437
 kthread+0x3c2/0x780 kernel/kthread.c:464
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc2-syzkaller-00037-g834a4a689699 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:pv_native_safe_halt+0xf/0x20 arch/x86/kernel/paravirt.c:81
Code: 55 5f 02 c3 cc cc cc cc 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d 93 bc 19 00 fb f4 <c3> cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90
RSP: 0018:ffffffff8e007e10 EFLAGS: 000002c6
RAX: 00000000001436ed RBX: 0000000000000000 RCX: ffffffff8b703439
RDX: 0000000000000000 RSI: ffffffff8dbeb4ff RDI: ffffffff8bf45100
RBP: fffffbfff1c12ee8 R08: 0000000000000001 R09: ffffed10170865bd
R10: ffff8880b8432deb R11: 0000000000000000 R12: 0000000000000000
R13: ffffffff8e097740 R14: ffffffff90868010 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881249b7000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005588d2113600 CR3: 000000000e182000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 arch_safe_halt arch/x86/include/asm/paravirt.h:107 [inline]
 default_idle+0x13/0x20 arch/x86/kernel/process.c:748
 default_idle_call+0x6d/0xb0 kernel/sched/idle.c:117
 cpuidle_idle_call kernel/sched/idle.c:185 [inline]
 do_idle+0x391/0x510 kernel/sched/idle.c:325
 cpu_startup_entry+0x4f/0x60 kernel/sched/idle.c:423
 rest_init+0x16b/0x2b0 init/main.c:743
 start_kernel+0x3e9/0x4d0 init/main.c:1099
 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:513
 x86_64_start_kernel+0xb0/0xc0 arch/x86/kernel/head64.c:494
 common_startup_64+0x13e/0x148
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/15 01:30 upstream 834a4a689699 0bd6db41 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto INFO: task hung in mpage_prepare_extent_to_map
2025/03/26 01:40 upstream 2df0c02dab82 89d30d73 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto INFO: task hung in mpage_prepare_extent_to_map
2025/03/18 03:47 upstream fc444ada1310 489e2dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto INFO: task hung in mpage_prepare_extent_to_map
* Struck through repros no longer work on HEAD.