INFO: task kcompactd0:1165 blocked for more than 143 seconds. Not tainted 5.8.0-rc5-next-20200716-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. kcompactd0 D28720 1165 2 0x00004000 Call Trace: context_switch kernel/sched/core.c:3445 [inline] __schedule+0x8b4/0x1e80 kernel/sched/core.c:4169 schedule+0xd0/0x2a0 kernel/sched/core.c:4244 io_schedule+0xb5/0x120 kernel/sched/core.c:5935 wait_on_page_bit_common+0x34f/0xda0 mm/filemap.c:1124 lock_page include/linux/pagemap.h:580 [inline] __unmap_and_move mm/migrate.c:1046 [inline] unmap_and_move mm/migrate.c:1196 [inline] migrate_pages+0x781/0x3240 mm/migrate.c:1453 compact_zone+0x1b0e/0x39d0 mm/compaction.c:2315 kcompactd_do_work+0x2bd/0x770 mm/compaction.c:2725 kcompactd+0x25d/0xd00 mm/compaction.c:2820 kthread+0x3b5/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 INFO: task syz-executor.3:14324 can't die for more than 145 seconds. syz-executor.3 R running task 23504 14324 7088 0x00004006 Call Trace: context_switch kernel/sched/core.c:3445 [inline] __schedule+0x8b4/0x1e80 kernel/sched/core.c:4169 preempt_schedule_common+0x45/0xc0 kernel/sched/core.c:4325 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:40 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] _raw_spin_unlock_irq+0x67/0x80 kernel/locking/spinlock.c:199 spin_unlock_irq include/linux/spinlock.h:404 [inline] shrink_inactive_list+0x497/0xd20 mm/vmscan.c:1974 shrink_list mm/vmscan.c:2169 [inline] shrink_lruvec+0x5ac/0x10f0 mm/vmscan.c:2464 shrink_node_memcgs mm/vmscan.c:2644 [inline] shrink_node+0x820/0x1c00 mm/vmscan.c:2758 shrink_zones mm/vmscan.c:2961 [inline] do_try_to_free_pages+0x38b/0x1340 mm/vmscan.c:3014 try_to_free_pages+0x29e/0x7f0 mm/vmscan.c:3253 __perform_reclaim mm/page_alloc.c:4246 [inline] __alloc_pages_direct_reclaim mm/page_alloc.c:4267 [inline] __alloc_pages_slowpath.constprop.0+0x949/0x2780 mm/page_alloc.c:4673 __alloc_pages_nodemask+0x5b6/0x720 mm/page_alloc.c:4890 __alloc_pages include/linux/gfp.h:509 [inline] __alloc_pages_node include/linux/gfp.h:522 [inline] kmem_getpages mm/slab.c:1376 [inline] cache_grow_begin+0x71/0x430 mm/slab.c:2590 fallback_alloc+0x205/0x2d0 mm/slab.c:3137 __do_cache_alloc mm/slab.c:3275 [inline] slab_alloc mm/slab.c:3304 [inline] kmem_cache_alloc+0x236/0x3a0 mm/slab.c:3482 mempool_alloc+0x146/0x350 mm/mempool.c:393 bvec_alloc+0xd8/0x2f0 block/bio.c:208 bio_alloc_bioset+0x41d/0x5d0 block/bio.c:506 bio_alloc include/linux/bio.h:406 [inline] mpage_alloc+0x2f/0x260 fs/mpage.c:79 do_mpage_readpage+0xf7b/0x1ef0 fs/mpage.c:306 mpage_readahead+0x3a3/0x880 fs/mpage.c:391 read_pages+0x1df/0x8d0 mm/readahead.c:130 page_cache_readahead_unbounded+0x572/0x850 mm/readahead.c:244 __do_page_cache_readahead+0xc2/0xf0 mm/readahead.c:273 ra_submit mm/internal.h:64 [inline] do_sync_mmap_readahead mm/filemap.c:2462 [inline] filemap_fault+0x1a3d/0x2ab0 mm/filemap.c:2550 __do_fault+0x10d/0x4d0 mm/memory.c:3469 do_shared_fault mm/memory.c:3916 [inline] do_fault mm/memory.c:3994 [inline] handle_pte_fault mm/memory.c:4230 [inline] __handle_mm_fault mm/memory.c:4367 [inline] handle_mm_fault+0x35b0/0x45e0 mm/memory.c:4465 do_user_addr_fault+0x598/0xbf0 arch/x86/mm/fault.c:1294 handle_page_fault arch/x86/mm/fault.c:1351 [inline] exc_page_fault+0xab/0x170 arch/x86/mm/fault.c:1404 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:544 RIP: 0033:0x400604 Code: Bad RIP value. RSP: 002b:00007ffc9f242690 EFLAGS: 00010206 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 000000002001d000 RDI: 0000000000000001 RBP: 00000000007901c8 R08: 0000000000000000 R09: 0000000000000000 R10: 00007ffc9f2427b0 R11: 0000000000000246 R12: 00000000007901d0 R13: 000000000006b8cb R14: fffffffffffffffe R15: 000000000078bf0c Showing all locks held in the system: 1 lock held by systemd/1: 4 locks held by kworker/u4:1/21: #0: ffff8880a6f27938 ((wq_completion)wg-kex-wg2#3){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880a6f27938 ((wq_completion)wg-kex-wg2#3){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff8880a6f27938 ((wq_completion)wg-kex-wg2#3){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff8880a6f27938 ((wq_completion)wg-kex-wg2#3){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff8880a6f27938 ((wq_completion)wg-kex-wg2#3){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff8880a6f27938 ((wq_completion)wg-kex-wg2#3){+.+.}-{0:0}, at: process_one_work+0x82b/0x1670 kernel/workqueue.c:2240 #1: ffffc90000dd7da8 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_one_work+0x85f/0x1670 kernel/workqueue.c:2244 #2: ffff888055af5048 (&wg->static_identity.lock){++++}-{3:3}, at: wg_noise_handshake_create_initiation+0xaf/0x6a0 drivers/net/wireguard/noise.c:499 #3: ffff88804c322690 (&handshake->lock){++++}-{3:3}, at: wg_noise_handshake_create_initiation+0xc3/0x6a0 drivers/net/wireguard/noise.c:500 3 locks held by kworker/u4:2/37: 4 locks held by kworker/1:1/39: 1 lock held by khungtaskd/1143: #0: ffffffff89c53980 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:5779 1 lock held by khugepaged/1168: 1 lock held by kswapd0/1681: 1 lock held by kswapd1/1682: 4 locks held by kworker/1:2/2526: 4 locks held by kworker/0:2/2575: #0: ffff888093da6d38 ((wq_completion)wg-kex-wg0#10){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888093da6d38 ((wq_completion)wg-kex-wg0#10){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff888093da6d38 ((wq_completion)wg-kex-wg0#10){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff888093da6d38 ((wq_completion)wg-kex-wg0#10){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff888093da6d38 ((wq_completion)wg-kex-wg0#10){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff888093da6d38 ((wq_completion)wg-kex-wg0#10){+.+.}-{0:0}, at: process_one_work+0x82b/0x1670 kernel/workqueue.c:2240 #1: ffffc90008177da8 ((work_completion)(&({ do { const void *__vpp_verify = (typeof((worker) + 0))((void *)0); (void)__vpp_verify; } while (0); ({ unsigned long __ptr; __asm__ ("" : "=r"(__ptr) : "0"((typeof(*((worker))) *)((worker)))); (typeof((typeof(*((worker))) *)((worker)))) (__ptr + (((__per_cpu_offset[(cpu)])))); }); })->work)){+.+.}-{0:0}, at: process_one_work+0x85f/0x1670 kernel/workqueue.c:2244 #2: ffff88804c03d048 (&wg->static_identity.lock){++++}-{3:3}, at: wg_noise_handshake_consume_initiation+0xf1/0x9d0 drivers/net/wireguard/noise.c:568 #3: ffff888091ade690 (&handshake->lock){++++}-{3:3}, at: wg_noise_handshake_consume_initiation+0x6dd/0x9d0 drivers/net/wireguard/noise.c:602 2 locks held by systemd-journal/3897: 2 locks held by systemd-udevd/3902: 4 locks held by kworker/1:3/3918: 1 lock held by systemd-timesyn/4768: 2 locks held by cron/6508: 1 lock held by in:imklog/6521: 2 locks held by agetty/6739: #0: ffff8880a87ad098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc90000f902e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x223/0x1a30 drivers/tty/n_tty.c:2156 2 locks held by syz-fuzzer/6817: 2 locks held by syz-fuzzer/6821: 3 locks held by kworker/u4:5/8714: 4 locks held by kworker/0:7/8768: #0: ffff8880955a1d38 ((wq_completion)wg-kex-wg0#12){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880955a1d38 ((wq_completion)wg-kex-wg0#12){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff8880955a1d38 ((wq_completion)wg-kex-wg0#12){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff8880955a1d38 ((wq_completion)wg-kex-wg0#12){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff8880955a1d38 ((wq_completion)wg-kex-wg0#12){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff8880955a1d38 ((wq_completion)wg-kex-wg0#12){+.+.}-{0:0}, at: process_one_work+0x82b/0x1670 kernel/workqueue.c:2240 #1: ffffc90018af7da8 ((work_completion)(&({ do { const void *__vpp_verify = (typeof((worker) + 0))((void *)0); (void)__vpp_verify; } while (0); ({ unsigned long __ptr; __asm__ ("" : "=r"(__ptr) : "0"((typeof(*((worker))) *)((worker)))); (typeof((typeof(*((worker))) *)((worker)))) (__ptr + (((__per_cpu_offset[(cpu)])))); }); })->work)){+.+.}-{0:0}, at: process_one_work+0x85f/0x1670 kernel/workqueue.c:2244 #2: ffff88804d221048 (&wg->static_identity.lock){++++}-{3:3}, at: wg_noise_handshake_consume_initiation+0xf1/0x9d0 drivers/net/wireguard/noise.c:568 #3: ffff8880921ec690 (&handshake->lock){++++}-{3:3}, at: wg_noise_handshake_consume_initiation+0x6dd/0x9d0 drivers/net/wireguard/noise.c:602 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1143 Comm: khungtaskd Not tainted 5.8.0-rc5-next-20200716-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x18f/0x20d lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x44/0xd7 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x1b3/0x223 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:147 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:253 [inline] watchdog+0xd89/0xf30 kernel/hung_task.c:339 kthread+0x3b5/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 3902 Comm: systemd-udevd Not tainted 5.8.0-rc5-next-20200716-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__list_del_entry include/linux/list.h:132 [inline] RIP: 0010:list_move include/linux/list.h:215 [inline] RIP: 0010:isolate_lru_pages+0x931/0x1140 mm/vmscan.c:1695 Code: d6 d8 ff 45 84 e4 74 5e e8 3c da d8 ff 48 89 d8 48 c1 e8 03 80 3c 28 00 0f 85 94 07 00 00 48 8b 44 24 08 4c 8b 2b 48 c1 e8 03 <80> 3c 28 00 0f 85 6f 07 00 00 49 8d 7d 08 4c 8b 63 08 48 89 f8 48 RSP: 0018:ffffc90001617028 EFLAGS: 00000806 RAX: 1ffffd40009b6a6a RBX: ffffea0004db5348 RCX: ffffffff819b559a RDX: ffff8880a7a6a0c0 RSI: ffffffff819b55a4 RDI: 0000000000000001 RBP: dffffc0000000000 R08: 0000000000000001 R09: ffffea0004db5347 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 R13: ffff88821b778820 R14: ffff88821b778820 R15: 0000000000000000 FS: 00007f7c3e6a78c0(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe200bde303 CR3: 0000000093eb3000 CR4: 00000000001526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: shrink_inactive_list+0x190/0xd20 mm/vmscan.c:1944 shrink_list mm/vmscan.c:2169 [inline] shrink_lruvec+0x5ac/0x10f0 mm/vmscan.c:2464 shrink_node_memcgs mm/vmscan.c:2644 [inline] shrink_node+0x820/0x1c00 mm/vmscan.c:2758 shrink_zones mm/vmscan.c:2961 [inline] do_try_to_free_pages+0x38b/0x1340 mm/vmscan.c:3014 try_to_free_pages+0x29e/0x7f0 mm/vmscan.c:3253 __perform_reclaim mm/page_alloc.c:4246 [inline] __alloc_pages_direct_reclaim mm/page_alloc.c:4267 [inline] __alloc_pages_slowpath.constprop.0+0x949/0x2780 mm/page_alloc.c:4673 __alloc_pages_nodemask+0x5b6/0x720 mm/page_alloc.c:4890 alloc_pages_current+0x187/0x280 mm/mempolicy.c:2275 alloc_pages include/linux/gfp.h:545 [inline] __page_cache_alloc mm/filemap.c:957 [inline] __page_cache_alloc+0x31e/0x450 mm/filemap.c:942 pagecache_get_page+0x2a6/0xf70 mm/filemap.c:1667 filemap_fault+0x1a94/0x2ab0 mm/filemap.c:2552 ext4_filemap_fault+0x87/0xb6 fs/ext4/inode.c:6060 __do_fault+0x10d/0x4d0 mm/memory.c:3469 do_read_fault mm/memory.c:3862 [inline] do_fault mm/memory.c:3990 [inline] handle_pte_fault mm/memory.c:4230 [inline] __handle_mm_fault mm/memory.c:4367 [inline] handle_mm_fault+0x349f/0x45e0 mm/memory.c:4465 do_user_addr_fault+0x598/0xbf0 arch/x86/mm/fault.c:1294 handle_page_fault arch/x86/mm/fault.c:1351 [inline] exc_page_fault+0xab/0x170 arch/x86/mm/fault.c:1404 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:544 RIP: 0033:0x7f7c3d5282e3 Code: Bad RIP value. RSP: 002b:00007fff9b0261d8 EFLAGS: 00010246 RAX: 0000000000000001 RBX: 000055b81a4399c0 RCX: 00007f7c3d5282e3 RDX: 0000000000000009 RSI: 00007fff9b0261e0 RDI: 000000000000000a RBP: 00007fff9b026350 R08: 000055b81a43a610 R09: 000055b81a43a3f0 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff9b0261e0 R13: 0000000000000001 R14: ffffffffffffffff R15: 0000000000000000