INFO: task kcompactd0:32 blocked for more than 143 seconds. Not tainted 6.6.0-rc7-syzkaller-00018-gd88520ad73b7 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kcompactd0 state:D stack:26384 pid:32 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0xee1/0x5a10 kernel/sched/core.c:6695 schedule+0xe7/0x1b0 kernel/sched/core.c:6771 io_schedule+0xbe/0x130 kernel/sched/core.c:9026 folio_wait_bit_common+0x3dc/0x9c0 mm/filemap.c:1301 folio_lock include/linux/pagemap.h:1042 [inline] migrate_folio_unmap mm/migrate.c:1158 [inline] migrate_pages_batch+0x113c/0x2c90 mm/migrate.c:1660 migrate_pages_sync mm/migrate.c:1847 [inline] migrate_pages+0x1d93/0x27c0 mm/migrate.c:1929 compact_zone+0x1dd2/0x4020 mm/compaction.c:2515 proactive_compact_node+0x118/0x1d0 mm/compaction.c:2780 kcompactd+0x710/0xd80 mm/compaction.c:3100 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline] #0: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline] #0: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6613 2 locks held by kworker/u4:12/2818: #0: ffff888012c71938 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605 #1: ffffc9000ab37d80 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606 2 locks held by udevd/4492: 2 locks held by getty/4789: #0: ffff88814cd480a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc5/0x1480 drivers/tty/n_tty.c:2206 3 locks held by kworker/0:1/25526: #0: ffff888012c70d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605 #1: ffffc900164afd80 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606 #2: ffff888058d1b240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x1bb/0x26e0 drivers/net/netdevsim/fib.c:1489 2 locks held by kworker/1:2/6005: #0: ffff888012c72938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605 #1: ffffc9000a6b7d80 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606 1 lock held by syz-executor.4/27837: 1 lock held by syz-executor.3/28374: #0: ffff888082fce0e0 (&type->s_umount_key#92){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff888082fce0e0 (&type->s_umount_key#92){++++}-{3:3}, at: super_lock+0x23c/0x380 fs/super.c:117 6 locks held by syz-executor.3/28465: #0: ffff88801c484410 (sb_writers#10){.+.+}-{0:0}, at: ksys_write+0x12f/0x250 fs/read_write.c:637 #1: ffff888029d36488 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x281/0x610 fs/kernfs/file.c:325 #2: ffffffff8cbf64e8 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_lock include/linux/cgroup.h:369 [inline] #2: ffffffff8cbf64e8 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_kn_lock_live+0x136/0x570 kernel/cgroup/cgroup.c:1645 #3: ffffffff8ca50230 (cpu_hotplug_lock){++++}-{0:0}, at: cgroup_attach_lock kernel/cgroup/cgroup.c:2382 [inline] #3: ffffffff8ca50230 (cpu_hotplug_lock){++++}-{0:0}, at: cgroup_procs_write_start+0x18f/0x660 kernel/cgroup/cgroup.c:2886 #4: ffffffff8cbf62b0 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: cgroup_attach_lock kernel/cgroup/cgroup.c:2384 [inline] #4: ffffffff8cbf62b0 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: cgroup_attach_lock kernel/cgroup/cgroup.c:2380 [inline] #4: ffffffff8cbf62b0 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: cgroup_procs_write_start+0x19b/0x660 kernel/cgroup/cgroup.c:2886 #5: ffffffff8cbb6bb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline] #5: ffffffff8cbb6bb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x69e/0x7e0 kernel/rcu/tree_exp.h:992 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc7-syzkaller-00018-gd88520ad73b7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x277/0x380 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x299/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xf87/0x1210 kernel/hung_task.c:379 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 6005 Comm: kworker/1:2 Not tainted 6.6.0-rc7-syzkaller-00018-gd88520ad73b7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Workqueue: ipv6_addrconf addrconf_dad_work RIP: 0010:unwind_next_frame+0x5c0/0x2390 arch/x86/kernel/unwind_orc.c:505 Code: 85 c0 49 89 c4 0f 84 99 fd ff ff e8 5a 7e 4d 00 4d 8d 6c 24 05 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 0f b6 04 02 <4c> 89 ea 83 e2 07 38 d0 7f 08 84 c0 0f 85 1d 19 00 00 45 0f b6 74 RSP: 0018:ffffc900001f0700 EFLAGS: 00000212 RAX: 0000000000000000 RBX: ffffc900001f0780 RCX: 0000000000000100 RDX: 1ffffffff1fc5c20 RSI: ffffffff813a5bd6 RDI: 0000000000000006 RBP: 0000000000000001 R08: 0000000000000006 R09: ffffffff88febce4 R10: ffffffff88febb2e R11: 0000000000000000 R12: ffffffff8fe2e0fe R13: ffffffff8fe2e103 R14: 000000000018cb01 R15: ffffc900001f07b5 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7f16f77208 CR3: 000000001734a000 CR4: 0000000000350ee0 Call Trace: arch_stack_walk+0xfa/0x170 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122 kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522 ____kasan_slab_free mm/kasan/common.c:236 [inline] ____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1800 [inline] slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826 slab_free mm/slub.c:3809 [inline] kmem_cache_free+0xf0/0x480 mm/slub.c:3831 skb_kfree_head net/core/skbuff.c:943 [inline] skb_kfree_head net/core/skbuff.c:940 [inline] skb_free_head+0x17f/0x1b0 net/core/skbuff.c:957 skb_release_data+0x5ba/0x870 net/core/skbuff.c:987 skb_release_all net/core/skbuff.c:1053 [inline] __kfree_skb net/core/skbuff.c:1067 [inline] consume_skb net/core/skbuff.c:1283 [inline] consume_skb+0xd2/0x170 net/core/skbuff.c:1277 mac80211_hwsim_tx_frame+0x1f3/0x2a0 drivers/net/wireless/virtual/mac80211_hwsim.c:2172 mac80211_hwsim_beacon_tx+0x41b/0x730 drivers/net/wireless/virtual/mac80211_hwsim.c:2264 __iterate_interfaces+0x2d2/0x580 net/mac80211/util.c:766 ieee80211_iterate_active_interfaces_atomic+0x71/0x1b0 net/mac80211/util.c:802 mac80211_hwsim_beacon+0x101/0x200 drivers/net/wireless/virtual/mac80211_hwsim.c:2290 __run_hrtimer kernel/time/hrtimer.c:1688 [inline] __hrtimer_run_queues+0x203/0xc10 kernel/time/hrtimer.c:1752 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1769 __do_softirq+0x218/0x965 kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1074 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:__sanitizer_cov_trace_pc+0x3b/0x70 kernel/kcov.c:207 Code: 81 e1 00 01 00 00 65 48 8b 14 25 c0 bc 03 00 a9 00 01 ff 00 74 0e 85 c9 74 35 8b 82 04 16 00 00 85 c0 74 2b 8b 82 e0 15 00 00 <83> f8 02 75 20 48 8b 8a e8 15 00 00 8b 92 e4 15 00 00 48 8b 01 48 RSP: 0018:ffffc9000a6b7010 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffffc9000a6b7688 RCX: 0000000000000000 RDX: ffff888081ced940 RSI: ffffffff813a4b19 RDI: ffffc9000a6b7688 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffffff8fd68644 R13: ffffc9000a6b7690 R14: ffffffff8fd68648 R15: 0000000000000001 __read_once_word_nocheck+0x9/0x10 include/asm-generic/rwonce.h:67 deref_stack_reg arch/x86/kernel/unwind_orc.c:406 [inline] unwind_next_frame+0xdaf/0x2390 arch/x86/kernel/unwind_orc.c:585 arch_stack_walk+0xfa/0x170 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122 save_stack+0x160/0x1f0 mm/page_owner.c:128 __reset_page_owner+0x5a/0x190 mm/page_owner.c:149 reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1136 [inline] free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405 __unfreeze_partials+0x21d/0x240 mm/slub.c:2655 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:762 [inline] slab_alloc_node mm/slub.c:3478 [inline] kmem_cache_alloc_node+0x180/0x3f0 mm/slub.c:3523 __alloc_skb+0x287/0x330 net/core/skbuff.c:640 alloc_skb include/linux/skbuff.h:1286 [inline] alloc_skb_with_frags+0xe4/0x710 net/core/skbuff.c:6313 sock_alloc_send_pskb+0x7e4/0x970 net/core/sock.c:2795 sock_alloc_send_skb include/net/sock.h:1883 [inline] mld_newpack.isra.0+0x1ee/0x790 net/ipv6/mcast.c:1746 add_grhead+0x295/0x340 net/ipv6/mcast.c:1849 add_grec+0x10bb/0x1680 net/ipv6/mcast.c:1987 mld_send_initial_cr.part.0+0xe2/0x260 net/ipv6/mcast.c:2234 mld_send_initial_cr include/linux/refcount.h:201 [inline] ipv6_mc_dad_complete+0x255/0x2b0 net/ipv6/mcast.c:2245 addrconf_dad_completed+0xcd8/0xfe0 net/ipv6/addrconf.c:4271 addrconf_dad_work+0x807/0x13e0 net/ipv6/addrconf.c:4199 process_one_work+0x884/0x15c0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304