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:28688 pid: 30 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4969 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6250 schedule+0xd2/0x260 kernel/sched/core.c:6323 io_schedule+0xee/0x170 kernel/sched/core.c:8368 folio_wait_bit_common+0x4f2/0xa60 mm/filemap.c:1371 lock_page include/linux/pagemap.h:780 [inline] __unmap_and_move mm/migrate.c:980 [inline] unmap_and_move mm/migrate.c:1204 [inline] migrate_pages+0xa5a/0x3810 mm/migrate.c:1481 compact_zone+0x1abb/0x3860 mm/compaction.c:2399 kcompactd_do_work+0x2c9/0x730 mm/compaction.c:2839 kcompactd+0x86b/0xf30 mm/compaction.c:2941 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8b983b60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458 1 lock held by khugepaged/33: #0: ffffffff8ba68bc8 (lock#5){+.+.}-{3:3}, at: __lru_add_drain_all+0x65/0x760 mm/swap.c:797 1 lock held by kswapd0/98: 1 lock held by kswapd1/99: 1 lock held by systemd-journal/2964: #0: ffff88801ca54160 (mapping.invalidate_lock){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:838 [inline] #0: ffff88801ca54160 (mapping.invalidate_lock){++++}-{3:3}, at: page_cache_ra_unbounded+0x1b3/0x940 mm/readahead.c:194 1 lock held by in:imklog/6213: #0: ffff888075031980 (mapping.invalidate_lock){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:838 [inline] #0: ffff888075031980 (mapping.invalidate_lock){++++}-{3:3}, at: page_cache_ra_unbounded+0x1b3/0x940 mm/readahead.c:194 2 locks held by agetty/6223: #0: ffff888022d98098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252 #1: ffffc90002acc2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2113 2 locks held by agetty/6225: #0: ffff88801ec80098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252 #1: ffffc90002ac82e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2113 1 lock held by syz-fuzzer/6503: 3 locks held by kworker/0:19/31602: 3 locks held by kworker/1:0/1917: 1 lock held by syz-executor.3/6615: ============================================= NMI backtrace for cpu 0 CPU: 0 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+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x1ae/0x220 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+0xc1d/0xf50 kernel/hung_task.c:295 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 25546 Comm: kworker/u4:1 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:__memcpy+0x17/0x20 arch/x86/lib/memcpy_64.S:41 Code: 48 c7 c7 60 15 e5 89 e9 57 fe ff ff cc cc cc cc cc cc cc 0f 1f 44 00 00 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 f3 48 a5 89 d1 a4 c3 66 0f 1f 44 00 00 48 89 f8 48 89 d1 f3 a4 c3 0f 1f 80 00 RSP: 0018:ffffc90016b0f9f8 EFLAGS: 00000002 RAX: 00002aaaaaaaba04 RBX: ffffffff8d711b0c RCX: 0000000000000003 RDX: 0000000000000004 RSI: ffffffff8ef3c33b RDI: 00002aaaaaaaba05 RBP: ffff888011821558 R08: 0000000000000001 R09: 00002aaaaaaaba08 R10: fffffbfff1de7867 R11: 000000000000003f R12: ffffffff81be3a04 R13: 0000000000000004 R14: 0000000000000a08 R15: ffffffff8bab05e0 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6a9f58a73f CR3: 0000000140769000 CR4: 0000000000350ee0 Call Trace: memcpy include/linux/fortify-string.h:225 [inline] __text_poke+0x490/0x8c0 arch/x86/kernel/alternative.c:1024 text_poke_bp_batch+0x2eb/0x560 arch/x86/kernel/alternative.c:1310 text_poke_flush arch/x86/kernel/alternative.c:1451 [inline] text_poke_flush arch/x86/kernel/alternative.c:1448 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1458 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 jump_label_update+0x1d5/0x430 kernel/jump_label.c:830 static_key_disable_cpuslocked+0x152/0x1b0 kernel/jump_label.c:207 static_key_disable+0x16/0x20 kernel/jump_label.c:215 toggle_allocation_gate mm/kfence/core.c:746 [inline] toggle_allocation_gate+0x183/0x390 mm/kfence/core.c:724 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 ---------------- Code disassembly (best guess): 0: 48 c7 c7 60 15 e5 89 mov $0xffffffff89e51560,%rdi 7: e9 57 fe ff ff jmpq 0xfffffe63 c: cc int3 d: cc int3 e: cc int3 f: cc int3 10: cc int3 11: cc int3 12: cc int3 13: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 18: 48 89 f8 mov %rdi,%rax 1b: 48 89 d1 mov %rdx,%rcx 1e: 48 c1 e9 03 shr $0x3,%rcx 22: 83 e2 07 and $0x7,%edx 25: f3 48 a5 rep movsq %ds:(%rsi),%es:(%rdi) 28: 89 d1 mov %edx,%ecx * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: c3 retq 2d: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1) 33: 48 89 f8 mov %rdi,%rax 36: 48 89 d1 mov %rdx,%rcx 39: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) 3b: c3 retq 3c: 0f .byte 0xf 3d: 1f (bad) 3e: 80 .byte 0x80