INFO: task kcompactd0:30 blocked for more than 143 seconds. Not tainted 5.14.0-next-20210901-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kcompactd0 state:D stack:29016 pid: 30 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4955 [inline] __schedule+0x940/0x26f0 kernel/sched/core.c:6302 schedule+0xd3/0x270 kernel/sched/core.c:6381 io_schedule+0xba/0x130 kernel/sched/core.c:8404 folio_wait_bit_common+0x4f2/0xa60 mm/filemap.c:1365 lock_page include/linux/pagemap.h:747 [inline] __unmap_and_move mm/migrate.c:980 [inline] unmap_and_move mm/migrate.c:1204 [inline] migrate_pages+0xa5e/0x3890 mm/migrate.c:1481 compact_zone+0x1abb/0x3860 mm/compaction.c:2393 kcompactd_do_work+0x2c9/0x730 mm/compaction.c:2833 kcompactd+0x86d/0xf30 mm/compaction.c:2935 kthread+0x3e5/0x4d0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 INFO: task syz-executor.3:13572 can't die for more than 144 seconds. task:syz-executor.3 state:R running task stack:24400 pid:13572 ppid: 9557 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:4955 [inline] __schedule+0x940/0x26f0 kernel/sched/core.c:6302 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8b97fbe0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6446 1 lock held by khugepaged/33: 1 lock held by kswapd0/262: 1 lock held by kswapd1/263: 3 locks held by kworker/1:2/1051: #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:634 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:661 [inline] #0: ffff888010c64d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x896/0x1690 kernel/workqueue.c:2268 #1: ffffc90004777db0 ((work_completion)(&(&krcp->page_cache_work)->work)){+.+.}-{0:0}, at: process_one_work+0x8ca/0x1690 kernel/workqueue.c:2272 #2: ffffffff8baa1fc8 (pcpu_drain_mutex){+.+.}-{3:3}, at: __drain_all_pages+0x4f/0x6c0 mm/page_alloc.c:3187 2 locks held by kworker/u4:4/1123: 1 lock held by systemd-journal/2966: 1 lock held by systemd-timesyn/3053: 2 locks held by in:imklog/6405: 4 locks held by rs:main Q:Reg/6406: 1 lock held by syz-fuzzer/6534: 1 lock held by syz-fuzzer/6537: 3 locks held by kworker/0:6/8244: 3 locks held by kworker/1:7/8541: 1 lock held by syz-executor.3/13572: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.14.0-next-20210901-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:254 [inline] watchdog+0xcb7/0xed0 kernel/hung_task.c:339 kthread+0x3e5/0x4d0 kernel/kthread.c:319 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: 6537 Comm: syz-fuzzer Not tainted 5.14.0-next-20210901-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:check_region_inline mm/kasan/generic.c:170 [inline] RIP: 0010:kasan_check_range+0x12c/0x180 mm/kasan/generic.c:189 Code: 00 74 ef 49 8d 04 2c 48 85 d2 75 0b 48 89 da 48 29 c2 e9 55 ff ff ff 49 39 d2 75 17 49 0f be 02 41 83 e1 07 49 39 c1 7d 0a 5b 01 00 00 00 5d 41 5c c3 44 89 c2 e8 73 f0 ff ff 5b 83 f0 01 5d RSP: 0018:ffffc90002bfef48 EFLAGS: 00000046 RAX: fffff94000a94021 RBX: ffffea00054a0100 RCX: ffffffff81a47ef4 RDX: fffff94000a94021 RSI: 0000000000000008 RDI: ffffea00054a0100 RBP: fffff94000a94020 R08: 0000000000000000 R09: ffffea00054a0107 R10: fffff94000a94020 R11: 0000000000000000 R12: 0000000000000001 R13: ffffc90002bff1c0 R14: dffffc0000000000 R15: ffffea00054a0100 FS: 000000c00002ec90(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c01ab46000 CR3: 0000000070416000 CR4: 00000000001506e0 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] folio_test_slab include/linux/page-flags.h:422 [inline] folio_mapping+0x24/0x220 mm/util.c:712 page_evictable+0x60/0x360 mm/internal.h:103 move_pages_to_lru+0x2ba/0x16b0 mm/vmscan.c:2173 shrink_inactive_list mm/vmscan.c:2292 [inline] shrink_list mm/vmscan.c:2516 [inline] shrink_lruvec+0xbc1/0x25b0 mm/vmscan.c:2835 shrink_node_memcgs mm/vmscan.c:3024 [inline] shrink_node+0x858/0x1eb0 mm/vmscan.c:3147 shrink_zones mm/vmscan.c:3350 [inline] do_try_to_free_pages+0x386/0x1480 mm/vmscan.c:3405 try_to_free_pages+0x29f/0x750 mm/vmscan.c:3640 __perform_reclaim mm/page_alloc.c:4590 [inline] __alloc_pages_direct_reclaim mm/page_alloc.c:4611 [inline] __alloc_pages_slowpath.constprop.0+0x828/0x21b0 mm/page_alloc.c:5015 __alloc_pages+0x412/0x500 mm/page_alloc.c:5386 alloc_pages+0x1a7/0x300 mm/mempolicy.c:2188 folio_alloc+0x1c/0x70 mm/mempolicy.c:2198 filemap_alloc_folio+0x8e/0xb0 mm/filemap.c:1030 __page_cache_alloc include/linux/pagemap.h:325 [inline] page_cache_ra_unbounded+0x36a/0x940 mm/readahead.c:216 do_page_cache_ra+0xf9/0x140 mm/readahead.c:269 do_sync_mmap_readahead mm/filemap.c:2987 [inline] filemap_fault+0x1553/0x2740 mm/filemap.c:3080 __do_fault+0x10d/0x4f0 mm/memory.c:3858 do_read_fault mm/memory.c:4173 [inline] do_fault mm/memory.c:4302 [inline] handle_pte_fault mm/memory.c:4560 [inline] __handle_mm_fault+0x28ea/0x5150 mm/memory.c:4695 handle_mm_fault+0x1c8/0x790 mm/memory.c:4793 do_user_addr_fault+0x48b/0x11c0 arch/x86/mm/fault.c:1390 handle_page_fault arch/x86/mm/fault.c:1475 [inline] exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1531 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0033:0x402a11 Code: db f4 c5 fd d7 d6 48 83 c6 40 48 83 c7 40 48 83 eb 40 81 fa ff ff ff ff 74 c4 c5 f8 77 c6 00 00 c3 c5 f8 77 48 83 fb 08 76 1b <48> 8b 0e 48 8b 17 48 83 c6 08 48 83 c7 08 48 83 eb 08 48 39 d1 74 RSP: 002b:000000c025be9440 EFLAGS: 00010212 RAX: 000000c025be9460 RBX: 0000000000000010 RCX: 000000c0004a40f0 RDX: 000000c0004a4118 RSI: 00000000007abc53 RDI: 000000c0130c1a45 RBP: 000000c025be94a8 R08: 00000000007abc53 R09: 000000c0130c1a45 R10: 000000c0130c1a40 R11: 0000000000000000 R12: 0000000000000040 R13: 0000000000000040 R14: 000000000094d4c5 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 00 74 ef 49 add %dh,0x49(%rdi,%rbp,8) 4: 8d 04 2c lea (%rsp,%rbp,1),%eax 7: 48 85 d2 test %rdx,%rdx a: 75 0b jne 0x17 c: 48 89 da mov %rbx,%rdx f: 48 29 c2 sub %rax,%rdx 12: e9 55 ff ff ff jmpq 0xffffff6c 17: 49 39 d2 cmp %rdx,%r10 1a: 75 17 jne 0x33 1c: 49 0f be 02 movsbq (%r10),%rax 20: 41 83 e1 07 and $0x7,%r9d 24: 49 39 c1 cmp %rax,%r9 27: 7d 0a jge 0x33 29: 5b pop %rbx * 2a: b8 01 00 00 00 mov $0x1,%eax <-- trapping instruction 2f: 5d pop %rbp 30: 41 5c pop %r12 32: c3 retq 33: 44 89 c2 mov %r8d,%edx 36: e8 73 f0 ff ff callq 0xfffff0ae 3b: 5b pop %rbx 3c: 83 f0 01 xor $0x1,%eax 3f: 5d pop %rbp