INFO: task kcompactd0:1157 blocked for more than 143 seconds. Not tainted 5.8.0-rc6-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. kcompactd0 D28608 1157 2 0x00004000 Call Trace: context_switch kernel/sched/core.c:3458 [inline] __schedule+0x91f/0x2250 kernel/sched/core.c:4215 schedule+0xd0/0x2a0 kernel/sched/core.c:4290 io_schedule+0xb5/0x120 kernel/sched/core.c:5934 wait_on_page_bit_common+0x34f/0xda0 mm/filemap.c:1150 lock_page include/linux/pagemap.h:521 [inline] __unmap_and_move mm/migrate.c:1046 [inline] unmap_and_move mm/migrate.c:1196 [inline] migrate_pages+0x1a2d/0x2e50 mm/migrate.c:1444 compact_zone+0x1cce/0x3a80 mm/compaction.c:2207 kcompactd_do_work+0x2bd/0x770 mm/compaction.c:2575 kcompactd+0x226/0x850 mm/compaction.c:2668 kthread+0x3b5/0x4a0 kernel/kthread.c:291 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293 Showing all locks held in the system: 4 locks held by systemd/1: 1 lock held by kthreadd/2: 4 locks held by kworker/0:0/5: 4 locks held by kworker/u4:0/7: #0: ffff88808f0b2938 ((wq_completion)wg-kex-wg1#9){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88808f0b2938 ((wq_completion)wg-kex-wg1#9){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff88808f0b2938 ((wq_completion)wg-kex-wg1#9){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff88808f0b2938 ((wq_completion)wg-kex-wg1#9){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff88808f0b2938 ((wq_completion)wg-kex-wg1#9){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff88808f0b2938 ((wq_completion)wg-kex-wg1#9){+.+.}-{0:0}, at: process_one_work+0x82b/0x1670 kernel/workqueue.c:2240 #1: ffffc90000cdfda8 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_one_work+0x85f/0x1670 kernel/workqueue.c:2244 #2: ffff88805017d048 (&wg->static_identity.lock){++++}-{3:3}, at: wg_noise_handshake_create_initiation+0xaf/0x6a0 drivers/net/wireguard/noise.c:499 #3: ffff88804d08a690 (&handshake->lock){++++}-{3:3}, at: wg_noise_handshake_create_initiation+0xc3/0x6a0 drivers/net/wireguard/noise.c:500 4 locks held by kworker/0:1/12: 4 locks held by kworker/1:0/17: 4 locks held by kworker/1:1/27: 4 locks held by kworker/u4:2/38: #0: ffff8880a65f2938 ((wq_completion)wg-kex-wg2#5){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880a65f2938 ((wq_completion)wg-kex-wg2#5){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff8880a65f2938 ((wq_completion)wg-kex-wg2#5){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff8880a65f2938 ((wq_completion)wg-kex-wg2#5){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff8880a65f2938 ((wq_completion)wg-kex-wg2#5){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff8880a65f2938 ((wq_completion)wg-kex-wg2#5){+.+.}-{0:0}, at: process_one_work+0x82b/0x1670 kernel/workqueue.c:2240 #1: ffffc90000ec7da8 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_one_work+0x85f/0x1670 kernel/workqueue.c:2244 #2: ffff888054385048 (&wg->static_identity.lock){++++}-{3:3}, at: wg_noise_handshake_create_initiation+0xaf/0x6a0 drivers/net/wireguard/noise.c:499 #3: ffff88804d864690 (&handshake->lock){++++}-{3:3}, at: wg_noise_handshake_create_initiation+0xc3/0x6a0 drivers/net/wireguard/noise.c:500 4 locks held by kworker/u4:3/123: #0: ffff8880a0f09938 ((wq_completion)wg-kex-wg0#9){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880a0f09938 ((wq_completion)wg-kex-wg0#9){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff8880a0f09938 ((wq_completion)wg-kex-wg0#9){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff8880a0f09938 ((wq_completion)wg-kex-wg0#9){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff8880a0f09938 ((wq_completion)wg-kex-wg0#9){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff8880a0f09938 ((wq_completion)wg-kex-wg0#9){+.+.}-{0:0}, at: process_one_work+0x82b/0x1670 kernel/workqueue.c:2240 #1: ffffc90001387da8 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_one_work+0x85f/0x1670 kernel/workqueue.c:2244 #2: ffff888052fd9048 (&wg->static_identity.lock){++++}-{3:3}, at: wg_noise_handshake_create_initiation+0xaf/0x6a0 drivers/net/wireguard/noise.c:499 #3: ffff88804d6ce690 (&handshake->lock){++++}-{3:3}, at: wg_noise_handshake_create_initiation+0xc3/0x6a0 drivers/net/wireguard/noise.c:500 1 lock held by khungtaskd/1149: #0: ffffffff89bc11c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:5779 1 lock held by khugepaged/1160: 1 lock held by kswapd1/1674: 4 locks held by kworker/1:2/2488: #0: ffff88809e616d38 ((wq_completion)wg-kex-wg2#6){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88809e616d38 ((wq_completion)wg-kex-wg2#6){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff88809e616d38 ((wq_completion)wg-kex-wg2#6){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff88809e616d38 ((wq_completion)wg-kex-wg2#6){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff88809e616d38 ((wq_completion)wg-kex-wg2#6){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff88809e616d38 ((wq_completion)wg-kex-wg2#6){+.+.}-{0:0}, at: process_one_work+0x82b/0x1670 kernel/workqueue.c:2240 #1: ffffc900080d7da8 ((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: ffff888054385048 (&wg->static_identity.lock){++++}-{3:3}, at: wg_noise_handshake_consume_initiation+0xf1/0x9d0 drivers/net/wireguard/noise.c:568 #3: ffff88804d864690 (&handshake->lock){++++}-{3:3}, at: wg_noise_handshake_consume_initiation+0x6dd/0x9d0 drivers/net/wireguard/noise.c:602 4 locks held by kworker/0:4/2528: 3 locks held by bat_events/3806: #0: ffff8880ae735e18 (&rq->lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1261 [inline] #0: ffff8880ae735e18 (&rq->lock){-.-.}-{2:2}, at: __schedule+0x25b/0x2250 kernel/sched/core.c:4140 #1: ffff8880ae720f08 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2fb/0x400 kernel/sched/psi.c:817 #2: ffff8880ae7255d8 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x55/0x1a0 kernel/time/timer.c:946 1 lock held by systemd-journal/3880: 1 lock held by systemd-timesyn/4574: 1 lock held by cron/6490: 2 locks held by in:imklog/6543: 2 locks held by syz-fuzzer/6809: 2 locks held by syz-fuzzer/6811: 4 locks held by kworker/1:4/7455: 4 locks held by kworker/0:5/8520: #0: ffff88809fd5e538 ((wq_completion)wg-kex-wg0#14){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88809fd5e538 ((wq_completion)wg-kex-wg0#14){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff88809fd5e538 ((wq_completion)wg-kex-wg0#14){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff88809fd5e538 ((wq_completion)wg-kex-wg0#14){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff88809fd5e538 ((wq_completion)wg-kex-wg0#14){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff88809fd5e538 ((wq_completion)wg-kex-wg0#14){+.+.}-{0:0}, at: process_one_work+0x82b/0x1670 kernel/workqueue.c:2240 #1: ffffc900010b7da8 ((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: ffff888092a29048 (&wg->static_identity.lock){++++}-{3:3}, at: wg_noise_handshake_consume_initiation+0xf1/0x9d0 drivers/net/wireguard/noise.c:568 #3: ffff88804a4c4690 (&handshake->lock){++++}-{3:3}, at: wg_noise_handshake_consume_initiation+0x6dd/0x9d0 drivers/net/wireguard/noise.c:602 4 locks held by kworker/1:6/10061: 4 locks held by kworker/u4:1/10729: #0: ffff8880a9066138 ((wq_completion)wg-kex-wg1#15){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880a9066138 ((wq_completion)wg-kex-wg1#15){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff8880a9066138 ((wq_completion)wg-kex-wg1#15){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff8880a9066138 ((wq_completion)wg-kex-wg1#15){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff8880a9066138 ((wq_completion)wg-kex-wg1#15){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff8880a9066138 ((wq_completion)wg-kex-wg1#15){+.+.}-{0:0}, at: process_one_work+0x82b/0x1670 kernel/workqueue.c:2240 #1: ffffc90001747da8 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_one_work+0x85f/0x1670 kernel/workqueue.c:2244 #2: ffff888027661048 (&wg->static_identity.lock){++++}-{3:3}, at: wg_noise_handshake_create_initiation+0xaf/0x6a0 drivers/net/wireguard/noise.c:499 #3: ffff888039ad2690 (&handshake->lock){++++}-{3:3}, at: wg_noise_handshake_create_initiation+0xc3/0x6a0 drivers/net/wireguard/noise.c:500 4 locks held by kworker/0:3/10779: #0: ffff88808ddbb138 ((wq_completion)wg-kex-wg0#10){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88808ddbb138 ((wq_completion)wg-kex-wg0#10){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff88808ddbb138 ((wq_completion)wg-kex-wg0#10){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff88808ddbb138 ((wq_completion)wg-kex-wg0#10){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff88808ddbb138 ((wq_completion)wg-kex-wg0#10){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff88808ddbb138 ((wq_completion)wg-kex-wg0#10){+.+.}-{0:0}, at: process_one_work+0x82b/0x1670 kernel/workqueue.c:2240 #1: ffffc90001697da8 ((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: ffff888052fd9048 (&wg->static_identity.lock){++++}-{3:3}, at: wg_noise_handshake_consume_initiation+0xf1/0x9d0 drivers/net/wireguard/noise.c:568 #3: ffff88804d6ce690 (&handshake->lock){++++}-{3:3}, at: wg_noise_handshake_consume_initiation+0x6dd/0x9d0 drivers/net/wireguard/noise.c:602 4 locks held by kworker/u4:5/11571: #0: ffff88809e566138 ((wq_completion)wg-kex-wg1#5){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88809e566138 ((wq_completion)wg-kex-wg1#5){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff88809e566138 ((wq_completion)wg-kex-wg1#5){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff88809e566138 ((wq_completion)wg-kex-wg1#5){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff88809e566138 ((wq_completion)wg-kex-wg1#5){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff88809e566138 ((wq_completion)wg-kex-wg1#5){+.+.}-{0:0}, at: process_one_work+0x82b/0x1670 kernel/workqueue.c:2240 #1: ffffc90002067da8 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_one_work+0x85f/0x1670 kernel/workqueue.c:2244 #2: ffff888054219048 (&wg->static_identity.lock){++++}-{3:3}, at: wg_noise_handshake_create_initiation+0xaf/0x6a0 drivers/net/wireguard/noise.c:499 #3: ffff88804debc690 (&handshake->lock){++++}-{3:3}, at: wg_noise_handshake_create_initiation+0xc3/0x6a0 drivers/net/wireguard/noise.c:500 4 locks held by kworker/u4:6/11572: #0: ffff888094b39138 ((wq_completion)wg-kex-wg0){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888094b39138 ((wq_completion)wg-kex-wg0){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff888094b39138 ((wq_completion)wg-kex-wg0){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff888094b39138 ((wq_completion)wg-kex-wg0){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff888094b39138 ((wq_completion)wg-kex-wg0){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff888094b39138 ((wq_completion)wg-kex-wg0){+.+.}-{0:0}, at: process_one_work+0x82b/0x1670 kernel/workqueue.c:2240 #1: ffffc900019c7da8 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_one_work+0x85f/0x1670 kernel/workqueue.c:2244 #2: ffff8880864a5048 (&wg->static_identity.lock){++++}-{3:3}, at: wg_noise_handshake_create_initiation+0xaf/0x6a0 drivers/net/wireguard/noise.c:499 #3: ffff8880507b0690 (&handshake->lock){++++}-{3:3}, at: wg_noise_handshake_create_initiation+0xc3/0x6a0 drivers/net/wireguard/noise.c:500 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1149 Comm: khungtaskd Not tainted 5.8.0-rc6-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+0x70/0xb1 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1b3/0x223 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:209 [inline] watchdog+0xd7d/0x1000 kernel/hung_task.c:295 kthread+0x3b5/0x4a0 kernel/kthread.c:291 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 3806 Comm: bat_events Not tainted 5.8.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: bat_events batadv_nc_worker RIP: 0010:lock_acquire+0x0/0xad0 kernel/locking/lockdep.c:4931 Code: ff 48 c7 c7 90 04 af 8a e8 0d 14 59 00 e9 b2 fe ff ff 48 c7 c7 90 04 af 8a e8 fc 13 59 00 e9 eb fd ff ff 0f 1f 80 00 00 00 00 <41> 57 41 56 41 89 d6 41 55 49 89 fd 41 54 41 89 cc 48 b9 00 00 00 RSP: 0018:ffffc90001977bf8 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff888086938fc8 RCX: 0000000000000002 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff89bc11c0 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000001f9 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000000 R14: dffffc0000000000 R15: 00000000000001f9 FS: 0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055efe4e22310 CR3: 00000000a7d14000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_lock_acquire include/linux/rcupdate.h:241 [inline] rcu_read_lock include/linux/rcupdate.h:634 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:407 [inline] batadv_nc_worker+0x12d/0xe50 net/batman-adv/network-coding.c:718 process_one_work+0x94c/0x1670 kernel/workqueue.c:2269