INFO: task kcompactd0:30 blocked for more than 143 seconds. Not tainted 5.15.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kcompactd0 state:D stack:25008 pid: 30 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4969 [inline] __schedule+0xb72/0x1460 kernel/sched/core.c:6250 schedule+0x12b/0x1f0 kernel/sched/core.c:6323 io_schedule+0x83/0x100 kernel/sched/core.c:8368 folio_wait_bit_common+0x8aa/0xe00 mm/filemap.c:1356 lock_page include/linux/pagemap.h:697 [inline] __unmap_and_move+0x9d9/0xda0 mm/migrate.c:986 unmap_and_move+0x321/0xd70 mm/migrate.c:1210 migrate_pages+0x562/0x16f0 mm/migrate.c:1487 compact_zone+0x2d23/0x3d10 mm/compaction.c:2393 kcompactd_do_work mm/compaction.c:2833 [inline] kcompactd+0x937/0x2920 mm/compaction.c:2935 kthread+0x468/0x490 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 Showing all locks held in the system: 1 lock held by systemd/1: 1 lock held by khungtaskd/27: #0: ffffffff8cb1d880 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 1 lock held by khugepaged/33: #0: ffffffff8cbb5e08 (lock#5){+.+.}-{3:3}, at: __lru_add_drain_all+0x67/0x9d0 mm/swap.c:788 6 locks held by kworker/u4:3/56: 1 lock held by kswapd0/98: 1 lock held by kswapd1/99: 3 locks held by kworker/0:2/1434: 3 locks held by kworker/u4:7/2414: 1 lock held by systemd-journal/2934: 1 lock held by systemd-udevd/2938: 2 locks held by systemd-timesyn/3025: 2 locks held by cron/6106: 2 locks held by in:imklog/6158: 2 locks held by agetty/6156: #0: ffff88801dd8d098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc900028dc2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6c5/0x1c60 drivers/tty/n_tty.c:2113 2 locks held by syz-fuzzer/6463: 2 locks held by syz-fuzzer/6466: 3 locks held by kworker/1:0/17121: 2 locks held by syz-executor.5/18877: #0: ffff888145a42cc8 (mapping.invalidate_lock#2){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:838 [inline] #0: ffff888145a42cc8 (mapping.invalidate_lock#2){.+.+}-{3:3}, at: page_cache_ra_unbounded+0x1ab/0x9b0 mm/readahead.c:194 #1: ffffffff8cbe1048 (pcpu_drain_mutex){+.+.}-{3:3}, at: __drain_all_pages+0x58/0x690 mm/page_alloc.c:3189 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106 nmi_cpu_backtrace+0x45f/0x490 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xc82/0xcd0 kernel/hung_task.c:295 kthread+0x468/0x490 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 56 Comm: kworker/u4:3 Not tainted 5.15.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:__lock_acquire+0x1/0x2b00 kernel/locking/lockdep.c:4873 Code: 0d 0c bc 9c 7e 0f 85 9e fe ff ff 0f 1f 44 00 00 e9 94 fe ff ff 0f 0b e9 54 ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 <48> 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec 20 01 00 RSP: 0018:ffffc90001a2f5f0 EFLAGS: 00000046 RAX: 0000000000000000 RBX: ffffc90001a2f6a0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880b9a27888 RBP: ffffc90001a2f770 R08: 0000000000000001 R09: 0000000000000001 R10: fffffbfff1bf9dae R11: 0000000000000000 R12: 0000000000000046 R13: 1ffff92000345ecc R14: 0000000000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5873fce028 CR3: 000000000c88e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 do_write_seqcount_begin_nested include/linux/seqlock.h:520 [inline] do_write_seqcount_begin include/linux/seqlock.h:545 [inline] psi_group_change+0x13e/0x1000 kernel/sched/psi.c:703 psi_task_switch+0x4c1/0x780 kernel/sched/psi.c:880 psi_sched_switch kernel/sched/stats.h:189 [inline] __schedule+0x1290/0x1460 kernel/sched/core.c:6245 schedule+0x12b/0x1f0 kernel/sched/core.c:6323 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1881 toggle_allocation_gate+0x218/0x460 mm/kfence/core.c:633 process_one_work+0x853/0x1140 kernel/workqueue.c:2298 worker_thread+0xac1/0x1320 kernel/workqueue.c:2445 kthread+0x468/0x490 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 ---------------- Code disassembly (best guess): 0: 0d 0c bc 9c 7e or $0x7e9cbc0c,%eax 5: 0f 85 9e fe ff ff jne 0xfffffea9 b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 10: e9 94 fe ff ff jmpq 0xfffffea9 15: 0f 0b ud2 17: e9 54 ff ff ff jmpq 0xffffff70 1c: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) 23: 00 00 00 26: 0f 1f 00 nopl (%rax) 29: 55 push %rbp * 2a: 48 89 e5 mov %rsp,%rbp <-- trapping instruction 2d: 41 57 push %r15 2f: 41 56 push %r14 31: 41 55 push %r13 33: 41 54 push %r12 35: 53 push %rbx 36: 48 83 e4 e0 and $0xffffffffffffffe0,%rsp 3a: 48 rex.W 3b: 81 .byte 0x81 3c: ec in (%dx),%al 3d: 20 01 and %al,(%rcx)