INFO: task syz.3.1025:9285 blocked for more than 143 seconds.
      Not tainted syzkaller #0
      Blocked by coredump.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.1025      state:D stack:25872 pid:9285  tgid:9283  ppid:8303   task_flags:0x40054c flags:0x00004002
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7e6/0x1360
 perf_trace_destroy+0x2e/0x150
 __free_event+0x346/0x7e0
 perf_event_release_kernel+0x45b/0x510
 perf_release+0x38/0x50
 __fput+0x44c/0xa70
 task_work_run+0x1d4/0x260
 do_exit+0x6b5/0x2300
 do_group_exit+0x21c/0x2d0
 get_signal+0x1286/0x1340
 arch_do_signal_or_restart+0x9a/0x750
 exit_to_user_mode_loop+0x75/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f09ecd8eba9
RSP: 002b:00007f09edbc5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: 0000000000000009 RBX: 00007f09ecfd6090 RCX: 00007f09ecd8eba9
RDX: 0000000000000010 RSI: 00002000000000c0 RDI: 0000000000000011
RBP: 00007f09ece11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f09ecfd6128 R14: 00007f09ecfd6090 R15: 00007ffd215d5778
 </TASK>
INFO: task syz.2.1027:9294 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.1027      state:D stack:28728 pid:9294  tgid:9293  ppid:5857   task_flags:0x400140 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7e6/0x1360
 perf_trace_init+0x50/0x2d0
 perf_tp_event_init+0x8d/0x120
 perf_try_init_event+0x17f/0x870
 perf_event_alloc+0x133e/0x2be0
 __se_sys_perf_event_open+0x772/0x1d70
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f34bb58eba9
RSP: 002b:00007f34bc39e038 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00007f34bb7d5fa0 RCX: 00007f34bb58eba9
RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000200000000480
RBP: 00007f34bb611e19 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 00007f34bb7d6038 R14: 00007f34bb7d5fa0 R15: 00007fff9b226958
 </TASK>

Showing all locks held in the system:
2 locks held by kworker/0:1/10:
2 locks held by migration/0/19:
1 lock held by khungtaskd/34:
 #0: ffffffff8e139ea0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
3 locks held by kworker/u10:5/3598:
 #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9002256fbc0 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f537dc8 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60
3 locks held by kworker/1:3/5314:
 #0: ffff88801a482148 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900025afbc0 ((reg_check_chans).work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f537dc8 (rtnl_mutex){+.+.}-{4:4}, at: reg_check_chans_work+0x95/0xf30
1 lock held by dhcpcd/5593:
 #0: ffffffff8f537dc8 (rtnl_mutex){+.+.}-{4:4}, at: inet6_rtm_newaddr+0x5b7/0xd20
2 locks held by getty/5676:
 #0: ffff888020ca50a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900029062f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
3 locks held by kworker/u8:2/5866:
 #0: ffff8880221c7948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900044cfbc0 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f537dc8 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_verify_work+0x19/0x30
8 locks held by kworker/u8:3/5883:
 #0: ffff88801b2f7148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900045bfbc0 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f52af70 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf7/0x800
 #3: ffff888032fa30e8 (&dev->mutex){....}-{4:4}, at: devlink_pernet_pre_exit+0x10a/0x3d0
 #4: ffff888032fa4250 (&devlink->lock_key#3){+.+.}-{4:4}, at: devlink_pernet_pre_exit+0x11c/0x3d0
 #5: ffffffff8f537dc8 (rtnl_mutex){+.+.}-{4:4}, at: nsim_destroy+0xe5/0x670
 #6: ffff888120944d28 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: unregister_netdevice_many_notify+0x52f/0x1ff0
 #7: ffffffff8f5cc168 (flowtable_lock){+.+.}-{4:4}, at: nf_flow_table_cleanup+0x21/0xb0
2 locks held by kworker/0:4/5917:
1 lock held by syz.0.1024/9282:
 #0: ffffffff8e19d448 (event_mutex){+.+.}-{4:4}, at: perf_uprobe_destroy+0x2e/0x170
1 lock held by syz.3.1025/9285:
 #0: ffffffff8e19d448 (event_mutex){+.+.}-{4:4}, at: perf_trace_destroy+0x2e/0x150
3 locks held by syz.2.1027/9294:
 #0: ffffffff99b0b6b0 (&pmus_srcu){.+.+}-{0:0}, at: class_srcu_constructor+0x2c/0x60
 #1: ffffffff99b0b6b0 (&pmus_srcu){.+.+}-{0:0}, at: perf_event_alloc+0xf61/0x2be0
 #2: ffffffff8e19d448 (event_mutex){+.+.}-{4:4}, at: perf_trace_init+0x50/0x2d0
1 lock held by syz-executor/9298:
 #0: ffffffff8f537dc8 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/9301:
 #0: ffffffff8f537dc8 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/9304:
 #0: ffffffff8f537dc8 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
4 locks held by kworker/u10:6/9309:
 #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900070d7bc0 ((work_completion)(&rdev->wiphy_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888034158768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: cfg80211_wiphy_work+0xc4/0x470
 #3: ffffffff8e13f938 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2f6/0x730
1 lock held by syz-executor/9312:
 #0: ffffffff8f537dc8 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/9313:
 #0: ffffffff8f537dc8 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/9320:
 #0: ffffffff8f537dc8 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/9324:
 #0: ffffffff8f537dc8 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/9329:
 #0: ffffffff8f537dc8 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/9332:
 #0: ffffffff8f537dc8 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0

=============================================

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 34 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 nmi_cpu_backtrace+0x39e/0x3d0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 watchdog+0xf93/0xfe0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 19 Comm: migration/0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Stopper: 0x0 <- 0x0
RIP: 0010:asm_sysvec_apic_timer_interrupt+0x0/0x20
Code: 56 2c 79 0a e9 61 06 00 00 90 f3 0f 1e fa 0f 1f 00 fc 6a ff e8 11 05 00 00 48 89 c4 48 89 e7 e8 66 2b 79 0a e9 41 06 00 00 90 <f3> 0f 1e fa 0f 1f 00 fc 6a ff e8 f1 04 00 00 48 89 c4 48 89 e7 e8
RSP: 0000:ffffc90000007828 EFLAGS: 00000046
RAX: ffff88801f00d880 RBX: ffff88801f00d880 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88801f00db40
RBP: 00000000ffffffff R08: 00000000029a1c67 R09: 0000000000000000
R10: ffff88801f00d880 R11: ffffffff81ac3930 R12: 00000000000002c0
R13: ffff88801f00d880 R14: 00000000000a2820 R15: ffff88801ced2b40
FS:  0000000000000000(0000) GS:ffff8880b861c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f971f5fdfc8 CR3: 000000000df36000 CR4: 00000000000006f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000200000000300
DR3: 0000200000000300 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
RIP: 0010:kmem_cache_alloc_node_noprof+0x1f7/0x3c0
Code: 40 08 c5 75 0d 44 89 e2 48 89 df 31 f6 e8 41 39 61 09 8b 6c 24 0c 66 90 41 f7 c6 00 00 40 00 0f 85 b4 00 00 00 41 f6 47 09 80 <0f> 85 a9 00 00 00 f3 0f 1e fa 48 8b 7c 24 10 48 89 de 4c 89 fa 44
RSP: 0000:ffffc90000007850 EFLAGS: 00000246
 kmalloc_reserve+0xbd/0x290
 __alloc_skb+0x142/0x2d0
 __netdev_alloc_skb+0x108/0x970
 __ieee80211_beacon_get+0xc06/0x1880
 ieee80211_beacon_get_tim+0xb4/0x2b0
 mac80211_hwsim_beacon_tx+0x3ce/0x860
 __iterate_interfaces+0x2ab/0x590
 ieee80211_iterate_active_interfaces_atomic+0xdb/0x180
 mac80211_hwsim_beacon+0xbb/0x1c0
 __hrtimer_run_queues+0x52c/0xc60
 hrtimer_run_softirq+0x187/0x2b0
 handle_softirqs+0x286/0x870
 __irq_exit_rcu+0xca/0x1f0
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:__schedule+0x1b3/0x4cc0
Code: f6 48 8b 1b 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 d4 01 a9 f6 48 81 3b 9d 6e ac 57 <0f> 85 b7 18 00 00 45 85 ed 7f 54 49 8d 5e 18 48 89 d8 48 c1 e8 03
RSP: 0000:ffffc90000167aa0 EFLAGS: 00000246
RAX: 1ffff9200002c000 RBX: ffffc90000160000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffffff8be332e0 RDI: ffffffff8be332a0
RBP: ffffc90000167cb8 R08: ffffffff8fa38037 R09: 1ffffffff1f47006
R10: dffffc0000000000 R11: fffffbfff1f47007 R12: ffff8880b861c000
R13: 0000000000000000 R14: ffff88801ca83980 R15: 1ffff11009607551
 schedule+0x165/0x360
 smpboot_thread_fn+0x5bd/0xa60
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
