syzbot


INFO: task hung in hpage_collapse_scan_pmd (3)

Status: auto-obsoleted due to no activity on 2026/05/14 12:47
Subsystems: kasan mm
[Documentation on labels]
First crash: 124d, last: 124d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in hpage_collapse_scan_pmd (2) mm 1 1 359d 359d 0/29 auto-obsoleted due to no activity on 2025/09/21 11:57
upstream INFO: task hung in hpage_collapse_scan_pmd mm 1 11 732d 736d 0/29 auto-obsoleted due to no activity on 2024/08/25 07:53

Sample crash report:
INFO: task syz.6.403:7990 blocked for more than 144 seconds.
      Tainted: G             L      syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.403       state:D stack:25904 pid:7990  tgid:7989  ppid:6303   task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5352 [inline]
 __schedule+0x1665/0x5590 kernel/sched/core.c:6964
 __schedule_loop kernel/sched/core.c:7047 [inline]
 schedule+0x164/0x360 kernel/sched/core.c:7062
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:7119
 rwsem_down_write_slowpath+0x883/0x1080 kernel/locking/rwsem.c:1215
 __down_write_common kernel/locking/rwsem.c:1347 [inline]
 __down_write kernel/locking/rwsem.c:1356 [inline]
 down_write+0x1bc/0x200 kernel/locking/rwsem.c:1626
 mmap_write_lock include/linux/mmap_lock.h:536 [inline]
 collapse_huge_page mm/khugepaged.c:1152 [inline]
 hpage_collapse_scan_pmd+0x1dc3/0x3c20 mm/khugepaged.c:1416
 madvise_collapse+0x5fc/0xb80 mm/khugepaged.c:2847
 madvise_vma_behavior+0x1094/0x4460 mm/madvise.c:1362
 madvise_walk_vmas+0x573/0xae0 mm/madvise.c:1711
 madvise_do_behavior+0x386/0x540 mm/madvise.c:1927
 do_madvise+0x1fa/0x2e0 mm/madvise.c:2020
 __do_sys_madvise mm/madvise.c:2029 [inline]
 __se_sys_madvise mm/madvise.c:2027 [inline]
 __x64_sys_madvise+0xa6/0xc0 mm/madvise.c:2027
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f20ba59c799
RSP: 002b:00007f20b87f6028 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007f20ba815fa0 RCX: 00007f20ba59c799
RDX: 0000000000000019 RSI: 0000000000600000 RDI: 0000200000000000
RBP: 00007f20ba632c99 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f20ba816038 R14: 00007f20ba815fa0 R15: 00007ffc8a5c73c8
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/31:
 #0: ffffffff8e75d6a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:312 [inline]
 #0: ffffffff8e75d6a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:850 [inline]
 #0: ffffffff8e75d6a0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6775
2 locks held by getty/5589:
 #0: ffff88803764f0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc9000332b2e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45c/0x13c0 drivers/tty/n_tty.c:2211
2 locks held by kworker/u8:9/5972:
 #0: ffff88801d7cf140 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work+0x894/0x1780 kernel/workqueue.c:3261
 #1: ffffc90004c47c40 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work+0x8bb/0x1780 kernel/workqueue.c:3262
3 locks held by udevd/6043:
1 lock held by syz.6.403/7990:
 #0: ffff8880786fc1b8 (&mm->mmap_lock){++++}-{4:4}, at: mmap_write_lock include/linux/mmap_lock.h:536 [inline]
 #0: ffff8880786fc1b8 (&mm->mmap_lock){++++}-{4:4}, at: collapse_huge_page mm/khugepaged.c:1152 [inline]
 #0: ffff8880786fc1b8 (&mm->mmap_lock){++++}-{4:4}, at: hpage_collapse_scan_pmd+0x1dc3/0x3c20 mm/khugepaged.c:1416
2 locks held by syz-executor/9848:
2 locks held by rm/10647:

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 nmi_cpu_backtrace+0x274/0x2d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x17a/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
 __sys_info lib/sys_info.c:157 [inline]
 sys_info+0x135/0x170 lib/sys_info.c:165
 check_hung_uninterruptible_tasks kernel/hung_task.c:353 [inline]
 watchdog+0x1002/0x1060 kernel/hung_task.c:561
 kthread+0x388/0x470 kernel/kthread.c:436
 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158
 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: 9642 Comm: kworker/u8:15 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:__lock_acquire+0x74/0x2cf0 kernel/locking/lockdep.c:5103
Code: e2 93 0f 84 da 13 00 00 41 89 cd 41 89 d6 8b 0d 92 21 c0 0c 85 c9 44 0f 44 c1 31 c9 48 3d 30 73 e2 93 41 0f 45 c8 89 4c 24 10 <8b> 0d 96 6d 87 18 85 c9 0f 95 c0 83 fe 08 0f 92 c2 08 c2 0f 84 49
RSP: 0018:ffffc9000521f578 EFLAGS: 00000083
RAX: ffffffff93251da0 RBX: 0000000000000246 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88801b0a0618
RBP: 0000000000000000 R08: 0000000000000001 R09: ffff88801b0a0618
R10: dffffc0000000000 R11: fffff94000011249 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff888125436000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055bccb727138 CR3: 000000000e54a000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 lock_acquire+0xf0/0x2e0 kernel/locking/lockdep.c:5868
 __raw_spin_lock include/linux/spinlock_api_smp.h:158 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:342 [inline]
 pte_offset_map_lock+0x13d/0x210 mm/pgtable-generic.c:402
 __text_poke+0x2d3/0x9a0 arch/x86/kernel/alternative.c:2575
 text_poke arch/x86/kernel/alternative.c:2660 [inline]
 smp_text_poke_batch_finish+0xd36/0x1160 arch/x86/kernel/alternative.c:3049
 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146
 static_key_enable_cpuslocked+0x128/0x240 kernel/jump_label.c:210
 static_key_enable+0x1a/0x20 kernel/jump_label.c:223
 toggle_allocation_gate+0xab/0x290 mm/kfence/core.c:906
 process_one_work+0x9ab/0x1780 kernel/workqueue.c:3289
 process_scheduled_works kernel/workqueue.c:3380 [inline]
 worker_thread+0xb49/0x1140 kernel/workqueue.c:3461
 kthread+0x388/0x470 kernel/kthread.c:436
 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/03/15 12:42 linux-next b84a0ebe421c ee8d34d6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in hpage_collapse_scan_pmd
* Struck through repros no longer work on HEAD.