INFO: task syz.4.1572:10338 blocked for more than 148 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.1572      state:D stack:25096 pid:10338 tgid:10338 ppid:8494   task_flags:0x400040 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7e6/0x1350
 perf_event_ctx_lock_nested+0x38f/0x460
 perf_event_release_kernel+0xda/0x510
 perf_release+0x38/0x50
 __fput+0x44c/0xa70
 task_work_run+0x1d4/0x260
 exit_to_user_mode_loop+0xec/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8d3658eba9
RSP: 002b:00007fff1baa75c8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f8d367d7da0 RCX: 00007f8d3658eba9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f8d367d7da0 R08: 0000000000000224 R09: 0000001e1baa78bf
R10: 00007f8d367d7cb0 R11: 0000000000000246 R12: 0000000000032d03
R13: 00007f8d367d6180 R14: ffffffffffffffff R15: 00007fff1baa76e0
 </TASK>

Showing all locks held in the system:
1 lock held by pool_workqueue_/3:
 #0: ffffffff8e13fbb8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730
3 locks held by kworker/0:1/10:
 #0: ffff88801a480d48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900000d7bc0 (deferred_process_work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f53a508 (rtnl_mutex){+.+.}-{4:4}, at: switchdev_deferred_process_work+0xe/0x20
1 lock held by khungtaskd/34:
 #0: ffffffff8e13a120 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
3 locks held by kworker/u9:2/52:
 #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900007afbc0 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f53a508 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60
6 locks held by kworker/u11:0/54:
 #0: ffff88801f67e948 ((wq_completion)hci4){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900007cfbc0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff88802bf00dc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1d4/0x3a0
 #3: ffff88802bf000b8 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x242/0xe30
 #4: ffffffff8f69f308 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_failed+0x165/0x310
 #5: ffff888030986b38 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680
2 locks held by getty/5673:
 #0: ffff88810972b0a0 (&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
8 locks held by kworker/u8:2/5860:
 #0: ffff88801b2f7148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000357fbc0 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f52d650 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf7/0x800
 #3: ffff88802e67d0e8 (&dev->mutex){....}-{4:4}, at: devlink_pernet_pre_exit+0x10a/0x3d0
 #4: ffff88802e67e250 (&devlink->lock_key#5){+.+.}-{4:4}, at: devlink_pernet_pre_exit+0x11c/0x3d0
 #5: ffffffff8f53a508 (rtnl_mutex){+.+.}-{4:4}, at: nsim_destroy+0xe5/0x670
 #6: ffff88802e920d30 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: unregister_netdevice_many_notify+0xdf5/0x1ff0
 #7: ffffffff8e13fbb8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2f6/0x730
3 locks held by kworker/u8:4/5915:
 #0: ffff888021a37148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900038efbc0 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f53a508 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_verify_work+0x19/0x30
3 locks held by kworker/0:5/5916:
 #0: ffff88801a482148 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000383fbc0 ((reg_check_chans).work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f53a508 (rtnl_mutex){+.+.}-{4:4}, at: reg_check_chans_work+0x95/0xf30
3 locks held by kworker/u9:4/6348:
 #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900042bfbc0 ((work_completion)(&rdev->wiphy_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888113980768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: cfg80211_wiphy_work+0xc4/0x470
1 lock held by syz.4.1572/10338:
 #0: ffff88802307d0a8 (&ctx->mutex){+.+.}-{4:4}, at: perf_event_ctx_lock_nested+0x38f/0x460
5 locks held by syz.4.1572/10339:
1 lock held by syz.0.1574/10346:
 #0: ffffffff8f53a508 (rtnl_mutex){+.+.}-{4:4}, at: tun_chr_close+0x3e/0x1c0
1 lock held by syz.1.1576/10355:
 #0: ffffffff8f53a508 (rtnl_mutex){+.+.}-{4:4}, at: tun_chr_close+0x3e/0x1c0
1 lock held by syz-executor/10360:
 #0: ffffffff8f53a508 (rtnl_mutex){+.+.}-{4:4}, at: tun_chr_close+0x3e/0x1c0
2 locks held by syz-executor/10364:
 #0: ffffffff8f52d650 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x304/0x4d0
 #1: ffffffff8f53a508 (rtnl_mutex){+.+.}-{4:4}, at: ops_undo_list+0x2a4/0x990
1 lock held by syz-executor/10382:
 #0: ffffffff8f53a508 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/10383:
 #0: ffffffff8f53a508 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/10391:
 #0: ffffffff8f53a508 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/10405:
 #0: ffffffff8f53a508 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/10409:
 #0: ffffffff8f53a508 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/10413:
 #0: ffffffff8f53a508 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0

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

NMI backtrace for cpu 0
CPU: 0 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+0x439/0x7d0
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 10339 Comm: syz.4.1572 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
RIP: 0010:native_apic_msr_write+0x39/0x50
Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 c3 cc cc cc cc cc f3 0f 1e fa 89 f6 31 d2 e9 d2 21 8f 03 66
RSP: 0018:ffffc900001e0518 EFLAGS: 00000046
RAX: 000000000000019d RBX: ffff888136623900 RCX: 0000000000000838
RDX: 0000000000000000 RSI: 000000000000019d RDI: 0000000000000838
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff81ae170e
R10: 0000000000000003 R11: ffffffff81704490 R12: 0000000010003c65
R13: dffffc0000000000 R14: 000000000000019d R15: 0000000000000020
FS:  00007f8d3736c6c0(0000) GS:ffff8881a3c13000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f49c9f05000 CR3: 0000000107f00000 CR4: 00000000000006f0
DR0: 0000000000000000 DR1: 0000200000000300 DR2: 0000000000000000
DR3: 0000200000000300 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 lapic_next_event+0x11/0x20
 clockevents_program_event+0x1cf/0x360
 hrtimer_interrupt+0x620/0xaa0
 __sysvec_apic_timer_interrupt+0x10b/0x410
 sysvec_apic_timer_interrupt+0x52/0xc0
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:__netif_receive_skb_core+0xe49/0x4020
Code: 00 e8 7b 42 4c 01 84 c0 0f 85 b6 f4 ff ff 48 83 bc 24 00 02 00 00 00 0f 84 d4 2c 00 00 e8 5f d6 59 f8 48 8b 9c 24 00 02 00 00 <48> 83 c3 10 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8
RSP: 0018:ffffc900001e0780 EFLAGS: 00000246
RAX: ffffffff8965e967 RBX: ffff888136556f00 RCX: ffff88803a09b980
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900001e09e8 R08: ffffc900001e095f R09: 0000000000000000
R10: ffffc900001e08f0 R11: fffff5200003c12c R12: ffff888136556f10
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888136556f10
 __netif_receive_skb+0x72/0x380
 process_backlog+0x60e/0x14f0
 __napi_poll+0xc7/0x360
 net_rx_action+0x707/0xe30
 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:finish_task_switch+0x31a/0x950
Code: be 04 00 00 00 e8 56 41 92 00 48 89 d8 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 e3 02 00 00 f7 03 20 00 00 00 0f 85 c8 01 00 00 <f3> 0f 1e fa 4c 89 ff be 04 00 00 00 e8 55 41 92 00 f0 41 ff 0f 0f
RSP: 0018:ffffc900069273d8 EFLAGS: 00000206
RAX: 1ffff110074137db RBX: ffff88803a09cff8 RCX: a436684c5e925400
RDX: 0000000000000007 RSI: ffffffff8d9ba4c8 RDI: ffff88803a09cf98
RBP: ffffc90006927430 R08: ffffffff8fa3ab37 R09: 1ffffffff1f47566
R10: dffffc0000000000 R11: fffffbfff1f47567 R12: ffff88803a09bed8
R13: dffffc0000000000 R14: ffff8880226d9cc0 R15: ffff88801c30eb80
 __schedule+0x17a0/0x4cc0
 preempt_schedule_common+0x83/0xd0
 preempt_schedule+0xae/0xc0
 preempt_schedule_thunk+0x16/0x30
 _raw_spin_unlock_irqrestore+0xfd/0x110
 debug_check_no_obj_freed+0x451/0x470
 __free_frozen_pages+0x4dd/0xd30
 __put_partials+0x156/0x1a0
 put_cpu_partial+0x17c/0x250
 __slab_free+0x2d5/0x3c0
 qlist_free_all+0x97/0x140
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 kmem_cache_alloc_lru_noprof+0x1c6/0x3d0
 __d_alloc+0x36/0x7a0
 d_alloc_pseudo+0x21/0xc0
 alloc_file_pseudo+0xcc/0x210
 anon_inode_getfile+0xc5/0x1a0
 __se_sys_perf_event_open+0xf20/0x1d70
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8d3658eba9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8d3736c038 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00007f8d367d5fa0 RCX: 00007f8d3658eba9
RDX: ffffffffffffffff RSI: 0000000000000000 RDI: 00002000000004c0
RBP: 00007f8d36611e19 R08: 0000000000000001 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 00007f8d367d6038 R14: 00007f8d367d5fa0 R15: 00007fff1baa7468
 </TASK>
