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:25936 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:1363 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:2399 kcompactd_do_work mm/compaction.c:2839 [inline] kcompactd+0x937/0x2920 mm/compaction.c:2941 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: #0: ffff8880179fd550 (mapping.invalidate_lock){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:838 [inline] #0: ffff8880179fd550 (mapping.invalidate_lock){++++}-{3:3}, at: page_cache_ra_unbounded+0x1b8/0x9f0 mm/readahead.c:194 1 lock held by khungtaskd/27: #0: ffffffff8cb1d900 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 3 locks held by kworker/u5:0/45: #0: ffff88803e2e2938 ((wq_completion)hci5#2){+.+.}-{0:0}, at: process_one_work+0x7ca/0x1140 #1: ffffc9000115fd20 ((work_completion)(&hdev->cmd_work)){+.+.}-{0:0}, at: process_one_work+0x808/0x1140 kernel/workqueue.c:2273 #2: ffffffff8cbe17a8 (pcpu_drain_mutex){+.+.}-{3:3}, at: __drain_all_pages+0x58/0x690 mm/page_alloc.c:3181 1 lock held by kswapd0/91: 1 lock held by kswapd1/99: 2 locks held by systemd-journal/2928: #0: ffff8880179fd550 (mapping.invalidate_lock){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:838 [inline] #0: ffff8880179fd550 (mapping.invalidate_lock){++++}-{3:3}, at: filemap_fault+0x47d/0x1630 mm/filemap.c:3088 #1: ffffffff8cbe0f60 (fs_reclaim){+.+.}-{0:0}, at: __perform_reclaim mm/page_alloc.c:4585 [inline] #1: ffffffff8cbe0f60 (fs_reclaim){+.+.}-{0:0}, at: __alloc_pages_direct_reclaim mm/page_alloc.c:4609 [inline] #1: ffffffff8cbe0f60 (fs_reclaim){+.+.}-{0:0}, at: __alloc_pages_slowpath+0x10fe/0x2530 mm/page_alloc.c:5007 2 locks held by systemd-udevd/2938: 1 lock held by cron/6105: 1 lock held by in:imklog/6146: 2 locks held by agetty/6181: #0: ffff88807b6b8098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc90001fda2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6c5/0x1c60 drivers/tty/n_tty.c:2113 1 lock held by syz-fuzzer/6448: 1 lock held by syz-fuzzer/18658: #0: ffff888070f6c160 (mapping.invalidate_lock){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:838 [inline] #0: ffff888070f6c160 (mapping.invalidate_lock){++++}-{3:3}, at: filemap_fault+0x342/0x1630 mm/filemap.c:3073 3 locks held by kworker/1:0/5930: 4 locks held by kworker/0:0/32485: 5 locks held by kworker/u4:7/7236: 2 locks held by kworker/u4:17/8767: 1 lock held by syz-executor.5/9190: ============================================= 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: 8767 Comm: kworker/u4:17 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:kasan_check_range+0x222/0x2f0 mm/kasan/generic.c:189 Code: 03 4d 89 cf 49 8d 5e 07 4d 85 f6 49 0f 49 de 48 83 e3 f8 49 29 de 74 11 45 0f b6 1f 45 84 db 75 64 49 ff c7 49 ff ce 75 ef 5b <41> 5c 41 5d 41 5e 41 5f c3 45 84 db 75 50 45 8a 59 01 45 84 db 0f RSP: 0018:ffffc9001845f670 EFLAGS: 00000056 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff813ba4e6 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8dfd2fa8 RBP: ffffc9001845f7d0 R08: dffffc0000000000 R09: fffffbfff1bfa5f6 R10: fffffbfff1bfa5f6 R11: 0000000000000000 R12: 1ffffffff1bfa5f5 R13: dffffc0000000001 R14: 0000000000000001 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6ceff4d303 CR3: 000000000c88e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] cpumask_test_cpu include/linux/cpumask.h:344 [inline] cpu_online include/linux/cpumask.h:895 [inline] trace_tlb_flush+0x36/0x190 include/trace/events/tlb.h:38 switch_mm_irqs_off+0x5cf/0x940 unuse_temporary_mm arch/x86/kernel/alternative.c:946 [inline] __text_poke+0x767/0x9f0 arch/x86/kernel/alternative.c:1042 text_poke arch/x86/kernel/alternative.c:1083 [inline] text_poke_bp_batch+0x6b0/0x940 arch/x86/kernel/alternative.c:1361 text_poke_flush arch/x86/kernel/alternative.c:1451 [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 static_key_enable_cpuslocked+0x12d/0x250 kernel/jump_label.c:177 static_key_enable+0x16/0x20 kernel/jump_label.c:190 toggle_allocation_gate+0xbf/0x460 mm/kfence/core.c:732 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: 03 4d 89 add -0x77(%rbp),%ecx 3: cf iret 4: 49 8d 5e 07 lea 0x7(%r14),%rbx 8: 4d 85 f6 test %r14,%r14 b: 49 0f 49 de cmovns %r14,%rbx f: 48 83 e3 f8 and $0xfffffffffffffff8,%rbx 13: 49 29 de sub %rbx,%r14 16: 74 11 je 0x29 18: 45 0f b6 1f movzbl (%r15),%r11d 1c: 45 84 db test %r11b,%r11b 1f: 75 64 jne 0x85 21: 49 ff c7 inc %r15 24: 49 ff ce dec %r14 27: 75 ef jne 0x18 29: 5b pop %rbx * 2a: 41 5c pop %r12 <-- trapping instruction 2c: 41 5d pop %r13 2e: 41 5e pop %r14 30: 41 5f pop %r15 32: c3 retq 33: 45 84 db test %r11b,%r11b 36: 75 50 jne 0x88 38: 45 8a 59 01 mov 0x1(%r9),%r11b 3c: 45 84 db test %r11b,%r11b 3f: 0f .byte 0xf