INFO: task kcompactd0:31 blocked for more than 143 seconds. Not tainted 5.19.0-rc4-next-20220628-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kcompactd0 state:D stack:27888 pid: 31 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5184 [inline] __schedule+0xa09/0x4f10 kernel/sched/core.c:6496 schedule+0xd2/0x1f0 kernel/sched/core.c:6568 io_schedule+0xba/0x130 kernel/sched/core.c:8683 folio_wait_bit_common+0x4f2/0xa80 mm/filemap.c:1298 lock_page include/linux/pagemap.h:960 [inline] __unmap_and_move mm/migrate.c:1013 [inline] unmap_and_move mm/migrate.c:1166 [inline] migrate_pages+0xc62/0x5980 mm/migrate.c:1445 compact_zone+0x1ac4/0x3750 mm/compaction.c:2432 proactive_compact_node+0x103/0x1c0 mm/compaction.c:2684 kcompactd+0x5af/0xf20 mm/compaction.c:2994 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8bd864f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8bd861f0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8bd87040 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6491 2 locks held by getty/3286: #0: ffff88807eb48098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90002d162f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xe50/0x13c0 drivers/tty/n_tty.c:2177 3 locks held by kworker/u4:17/10987: 1 lock held by syz-executor.4/26300: 1 lock held by syz-executor.4/26389: 1 lock held by syz-executor.4/26437: 1 lock held by syz-executor.4/26501: 1 lock held by syz-executor.4/26555: 1 lock held by syz-executor.4/26627: 1 lock held by syz-executor.4/26693: 1 lock held by syz-executor.4/26744: 1 lock held by syz-executor.4/26808: 1 lock held by syz-executor.4/27097: 1 lock held by syz-executor.4/27164: 1 lock held by syz-executor.4/27232: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 5.19.0-rc4-next-20220628-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline] watchdog+0xc18/0xf50 kernel/hung_task.c:369 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 10987 Comm: kworker/u4:17 Not tainted 5.19.0-rc4-next-20220628-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:check_preemption_disabled+0x2/0x170 lib/smp_processor_id.c:13 Code: 8b 1d 4e 3a 89 76 31 ff 89 de 0f 1f 44 00 00 85 db 74 07 0f 1f 44 00 00 0f 0b 0f 1f 44 00 00 5b e9 93 fb ff ff cc cc cc 41 56 <41> 55 49 89 f5 41 54 55 48 89 fd 53 0f 1f 44 00 00 65 44 8b 25 ad RSP: 0018:ffffc900142af9a0 EFLAGS: 00000046 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffffffff89cc8940 RDI: ffffffff8a2874e0 RBP: ffff8880b9a39f18 R08: ffff8880b9a3a948 R09: ffffffff8dbcf6d7 R10: fffffbfff1b79eda R11: 0000000000000009 R12: ffff88801b661d40 R13: 00000000ffffffff R14: 00000000ffffffff R15: ffff88801b661d40 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555644b848 CR3: 000000000ba8e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lockdep_recursion_inc kernel/locking/lockdep.c:461 [inline] lock_is_held_type+0x63/0x140 kernel/locking/lockdep.c:5707 lock_is_held include/linux/lockdep.h:279 [inline] lockdep_assert_rq_held kernel/sched/sched.h:1296 [inline] rq_clock kernel/sched/sched.h:1451 [inline] sched_info_arrive kernel/sched/stats.h:239 [inline] sched_info_switch kernel/sched/stats.h:295 [inline] prepare_task_switch kernel/sched/core.c:4993 [inline] context_switch kernel/sched/core.c:5136 [inline] __schedule+0x2d9e/0x4f10 kernel/sched/core.c:6496 schedule+0xd2/0x1f0 kernel/sched/core.c:6568 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1935 toggle_allocation_gate mm/kfence/core.c:818 [inline] toggle_allocation_gate+0x305/0x390 mm/kfence/core.c:803 process_one_work+0x991/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302