INFO: task hung in migrate_pages_batch (4)

Status: upstream: reported on 2026/11/25 15:59
Reported-by: syzbot+9a314c4d2f1ff307631a@syzkaller.appspotmail.com
First crash: 5h43m, last: 5h43m
▶ ▼ Similar bugs (7)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.6 INFO: task hung in migrate_pages_batch 1 2 416d 441d 0/2 auto-obsoleted due to no activity on 2026/01/13 03:58
upstream INFO: task hung in migrate_pages_batch (4) prio:high mm 1 313 8h30m 407d 0/29 upstream: reported on 2025/10/14 11:22
upstream INFO: task hung in migrate_pages_batch nilfs 1 syz, C 22 1020d 1032d 25/29 fixed on 2024/03/25 11:41
upstream INFO: task hung in migrate_pages_batch (3) mm 1 4 649d 664d 0/29 auto-obsoleted due to no activity on 2025/05/15 10:31
upstream INFO: task hung in migrate_pages_batch (2) mm fs 1 2 820d 901d 0/29 auto-obsoleted due to no activity on 2024/11/25 18:13
linux-6.6 INFO: task hung in migrate_pages_batch (3) 1 1 165d 165d 0/2 auto-obsoleted due to no activity on 2026/09/21 01:28
linux-6.6 INFO: task hung in migrate_pages_batch (2) 1 2 287d 296d 0/2 auto-obsoleted due to no activity on 2026/05/22 16:44

Sample crash report:
INFO: task syz.6.1294:9757 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.1294      state:D stack:25576 pid:9757  ppid:9509   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5393 [inline]
 __schedule+0x156f/0x4720 kernel/sched/core.c:6722
 schedule+0xbd/0x170 kernel/sched/core.c:6796
 io_schedule+0x80/0xd0 kernel/sched/core.c:9075
 folio_wait_bit_common+0x70a/0x11d0 mm/filemap.c:1332
 migrate_folio_unmap mm/migrate.c:1165 [inline]
 migrate_pages_batch+0x1475/0x3710 mm/migrate.c:1675
 migrate_pages_sync mm/migrate.c:1868 [inline]
 migrate_pages+0x21b1/0x2b30 mm/migrate.c:1950
 compact_zone+0x2de0/0x43d0 mm/compaction.c:2515
 compact_node+0x195/0x300 mm/compaction.c:2807
 compact_store+0xc8/0x130 mm/compaction.c:2882
 kernfs_fop_write_iter+0x3a4/0x520 fs/kernfs/file.c:352
 call_write_iter include/linux/fs.h:2021 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x474/0x9a0 fs/read_write.c:584
 ksys_write+0x151/0x260 fs/read_write.c:637
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f094a7a9a99
RSP: 002b:00007f094b64a028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f094aa35fa0 RCX: 00007f094a7a9a99
RDX: 0000000000000001 RSI: 0000200000000b80 RDI: 0000000000000003
RBP: 00007f094a83918b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f094aa36038 R14: 00007f094aa35fa0 R15: 00007ffe7e6367c8
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/30:
 #0: ffffffff8e132720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 #0: ffffffff8e132720 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
 #0: ffffffff8e132720 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6669
2 locks held by kworker/u4:8/1107:
 #0: ffff8880b8d3c218 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:570
 #1: ffff8880b8d289c0 (psi_seq){-.-.}-{0:0}, at: psi_sched_switch kernel/sched/stats.h:189 [inline]
 #1: ffff8880b8d289c0 (psi_seq){-.-.}-{0:0}, at: __schedule+0x21fc/0x4720 kernel/sched/core.c:6717
2 locks held by getty/5545:
 #0: ffff88802f45d0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc9000328b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x43a/0x1400 drivers/tty/n_tty.c:2217
1 lock held by udevd/5788:
 #0: ffff8881417414c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x11b/0x610 block/bdev.c:801
4 locks held by syz.6.1294/9757:
 #0: ffff88802e9fd9c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2a3/0x330 fs/file.c:1040
 #1: ffff8880225ee418 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x21e/0x9a0 fs/read_write.c:580
 #2: ffff88805df80488 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1dc/0x520 fs/kernfs/file.c:343
 #3: ffff88801fe7e9b8 (kn->active#73){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:80 [inline]
 #3: ffff88801fe7e9b8 (kn->active#73){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x236/0x520 fs/kernfs/file.c:344
2 locks held by syz.7.2605/13356:

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

NMI backtrace for cpu 0
CPU: 0 PID: 30 Comm: khungtaskd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x3a6/0x3e0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x17a/0x2f0 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+0xf59/0xfa0 kernel/hung_task.c:379
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 13356 Comm: syz.7.2605 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:preempt_count_add+0x42/0x1a0 kernel/sched/core.c:5861
Code: 33 98 48 c1 e8 03 42 0f b6 04 38 84 c0 0f 85 eb 00 00 00 83 3d 8e df d5 16 00 75 07 65 8b 05 cd 52 a6 7e 65 01 3d c6 52 a6 7e <48> c7 c0 80 44 33 98 48 c1 e8 03 42 0f b6 04 38 84 c0 0f 85 e6 00
RSP: 0018:ffffc9000bddfbf0 EFLAGS: 00000282
RAX: 0000000080000000 RBX: 00000000002191cf RCX: ffffffff98334403
RDX: 00000000000000d4 RSI: ffffffff8b3c70c0 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffc9000bddfbbf R09: 0000000000000000
R10: ffffc9000bddfba0 R11: fffff520017bbf78 R12: dffffc0000000000
R13: 1ffff1100f06b000 R14: 000000d43feb6466 R15: dffffc0000000000
FS:  000055555d679500(0000) GS:ffff8880b8d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb27cdfa158 CR3: 0000000031eeb000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 delay_tsc+0x65/0xc0 arch/x86/lib/delay.c:79
 keyspan_close+0xa2/0x210 drivers/usb/serial/keyspan.c:1595
 serial_port_shutdown+0x89/0xe0 drivers/usb/serial/usb-serial.c:309
 tty_port_shutdown drivers/tty/tty_port.c:385 [inline]
 tty_port_close+0x5f/0x160 drivers/tty/tty_port.c:745
 tty_release+0x330/0x14f0 drivers/tty/tty_io.c:1754
 __fput+0x221/0x940 fs/file_table.c:418
 task_work_run+0x1d4/0x260 kernel/task_work.c:245
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:180
 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:213
 __syscall_exit_to_user_mode_work kernel/entry/common.c:294 [inline]
 syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:305
 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f1dec5a9a99
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe91ced288 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000002034060 3R][BX :fAeX9: 1c0e0d0307000000007 RfB1dX:0a979ffe
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 0000000000063017 R08: 0000000000000001 R09: 0000000000000000
R10: 0000001b31920000 R11: 0000000000000246 R12: 00007f1dec835fac
R13: 00007ffe91ced3b0 R14: 000000000006342e R15: 00007f1dec835fa0
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/25 15:59 linux-6.6.y e2bb30811e06 01ff072a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in migrate_pages_batch
* Struck through repros no longer work on HEAD.