INFO: task syz.3.2869:15458 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.2869      state:D stack:24952 pid:15458 tgid:15458 ppid:10857  task_flags:0x40044c flags:0x00080003
Call Trace:
 <TASK>
 __schedule+0x14ef/0x4fb0
 schedule+0x164/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x829/0x1340
 perf_trace_destroy+0x2e/0x150
 __free_event+0x346/0x7e0
 perf_event_release_kernel+0x45b/0x510
 perf_release+0x38/0x50
 __fput+0x44f/0xa70
 task_work_run+0x1d9/0x270
 do_exit+0x69b/0x2310
 do_group_exit+0x21b/0x2d0
 get_signal+0x1284/0x1330
 arch_do_signal_or_restart+0xbc/0x830
 exit_to_user_mode_loop+0x86/0x480
 do_syscall_64+0x2b7/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3539b9acb9
RSP: 002b:00007fff08f2a6a8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f3539e17da0 RCX: 00007f3539b9acb9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f3539e17da0 R08: 00007f3539e16038 R09: 0000000000000000
R10: 00000000003ffbd0 R11: 0000000000000246 R12: 000000000005a2f4
R13: 00007f3539e1618c R14: 000000000005a0f4 R15: 00007f3539e16180
 </TASK>
INFO: task syz.5.2870:15461 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.5.2870      state:D stack:23640 pid:15461 tgid:15461 ppid:11783  task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x14ef/0x4fb0
 schedule+0x164/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x829/0x1340
 perf_trace_destroy+0x2e/0x150
 __free_event+0x346/0x7e0
 perf_event_release_kernel+0x45b/0x510
 perf_release+0x38/0x50
 __fput+0x44f/0xa70
 task_work_run+0x1d9/0x270
 exit_to_user_mode_loop+0xed/0x480
 do_syscall_64+0x2b7/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f4375f9acb9
RSP: 002b:00007ffc9cb9f148 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f4376217da0 RCX: 00007f4375f9acb9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f4376217da0 R08: 0000000000000006 R09: 0000000000000000
R10: 00007f4376217cb0 R11: 0000000000000246 R12: 000000000005a5ea
R13: 00007f437621645c R14: 000000000005a5b8 R15: 00007f4376216450
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/0:0/9:
 #0: ffff888100076948 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_scheduled_works+0x9d4/0x17a0
 #1: ffffc900000e7bc0 ((reg_check_chans).work){+.+.}-{0:0}, at: process_scheduled_works+0xa0f/0x17a0
 #2: ffffffff8f714d08 (rtnl_mutex){+.+.}-{4:4}, at: reg_check_chans_work+0xa5/0xf40
3 locks held by kworker/0:1/10:
 #0: ffff888100075948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x9d4/0x17a0
 #1: ffffc900000f7bc0 (deferred_process_work){+.+.}-{0:0}, at: process_scheduled_works+0xa0f/0x17a0
 #2: ffffffff8f714d08 (rtnl_mutex){+.+.}-{4:4}, at: switchdev_deferred_process_work+0xe/0x20
1 lock held by khungtaskd/35:
 #0: ffffffff8e341b20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
4 locks held by kworker/u11:1/5222:
 #0: ffff888114c5c948 ((wq_completion)hci9#2){+.+.}-{0:0}, at: process_scheduled_works+0x9d4/0x17a0
 #1: ffffc900098cfbc0 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_scheduled_works+0xa0f/0x17a0
 #2: ffff8880258c80c0 (&hdev->lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x9b/0x950
 #3: ffffffff8f886988 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x54c/0x950
1 lock held by dhcpcd/5578:
 #0: ffffffff8f714d08 (rtnl_mutex){+.+.}-{4:4}, at: inet6_rtm_newaddr+0x65f/0xe30
2 locks held by getty/5660:
 #0: ffff88817745d0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900031d02f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45c/0x13c0
4 locks held by kworker/u11:2/5837:
 #0: ffff888110c95948 ((wq_completion)hci10#2){+.+.}-{0:0}, at: process_scheduled_works+0x9d4/0x17a0
 #1: ffffc90004f67bc0 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_scheduled_works+0xa0f/0x17a0
 #2: ffff8880118700c0 (&hdev->lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x9b/0x950
 #3: ffffffff8f886988 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x54c/0x950
3 locks held by kworker/u8:2/5845:
 #0: ffff888110c91148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x9d4/0x17a0
 #1: ffffc90004fb7bc0 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0xa0f/0x17a0
 #2: ffffffff8f714d08 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_verify_work+0x19/0x30
3 locks held by kworker/0:4/5896:
 #0: ffff888100075948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x9d4/0x17a0
 #1: ffffc90005227bc0 (free_ipc_work){+.+.}-{0:0}, at: process_scheduled_works+0xa0f/0x17a0
 #2: ffffffff8e347678 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x38d/0x770
5 locks held by kworker/u11:3/5898:
 #0: ffff888118b56148 ((wq_completion)hci0){+.+.}-{0:0}, at: process_scheduled_works+0x9d4/0x17a0
 #1: ffffc90005237bc0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0xa0f/0x17a0
 #2: ffff888012b2cec0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1d3/0x400
 #3: ffff888012b2c0c0 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x8a3/0xed0
 #4: ffffffff8f886988 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_failed+0x165/0x340
4 locks held by kworker/u9:62/7970:
 #0: ffff888100089948 ((wq_completion)events_unbound#2){+.+.}-{0:0}, at: process_scheduled_works+0x9d4/0x17a0
 #1: ffffc90005f3fbc0 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0xa0f/0x17a0
 #2: ffffffff8f714d08 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60
 #3: ffffffff8e347678 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2d0/0x770
5 locks held by kworker/u11:4/10138:
 #0: ffff888100b62948 ((wq_completion)hci5){+.+.}-{0:0}, at: process_scheduled_works+0x9d4/0x17a0
 #1: ffffc9000a10fbc0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0xa0f/0x17a0
 #2: ffff888022068ec0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1d3/0x400
 #3: ffff8880220680c0 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x8a3/0xed0
 #4: ffffffff8f886988 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_failed+0x165/0x340
5 locks held by kworker/u11:5/10139:
 #0: ffff888118b52148 ((wq_completion)hci4){+.+.}-{0:0}, at: process_scheduled_works+0x9d4/0x17a0
 #1: ffffc9000a11fbc0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0xa0f/0x17a0
 #2: ffff888022060ec0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1d3/0x400
 #3: ffff8880220600c0 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x8a3/0xed0
 #4: ffffffff8f886988 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_failed+0x165/0x340
4 locks held by syz-executor/10857:
 #0: ffff8881762acec0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x212/0x5a0
 #1: ffff8881762ac0c0 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x640/0x10e0
 #2: ffffffff8f886988 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x260
 #3: ffff888011f9b338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x7b/0x5b0
3 locks held by syz-executor/10864:
 #0: ffff888110898ec0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x212/0x5a0
 #1: ffff8881108980c0 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x640/0x10e0
 #2: ffffffff8f886988 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_hash_flush+0xa1/0x260
1 lock held by syz.3.2869/15458:
 #0: ffffffff8e3a9448 (event_mutex){+.+.}-{4:4}, at: perf_trace_destroy+0x2e/0x150
1 lock held by syz.5.2870/15461:
 #0: ffffffff8e3a9448 (event_mutex){+.+.}-{4:4}, at: perf_trace_destroy+0x2e/0x150
7 locks held by syz.5.2870/15463:
1 lock held by syz.4.2872/15468:
 #0: ffffffff8e3a9448 (event_mutex){+.+.}-{4:4}, at: perf_trace_destroy+0x2e/0x150
2 locks held by syz-executor/15479:
 #0: ffffffff8ef6a068 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x23/0x250
 #1: ffffffff8f714d08 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x8a1/0x1be0
2 locks held by syz-executor/15480:
 #0: ffffffff8ee96168 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x23/0x250
 #1: ffffffff8f714d08 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x8a1/0x1be0
7 locks held by syz-executor/15485:
 #0: ffff8881136ca420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x227/0xb90
 #1: ffff8881181eb088 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1de/0x540
 #2: ffff88816c781788 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x231/0x540
 #3: ffffffff8efa0328 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: new_device_store+0x13c/0x710
 #4: ffff8881115020e8 (&dev->mutex){....}-{4:4}, at: __device_attach+0x88/0x450
 #5: ffff888111505250 (&devlink->lock_key#7){+.+.}-{4:4}, at: nsim_drv_probe+0xc9/0xc10
 #6: ffffffff8f714d08 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_dev_lock+0x257/0x2f0
1 lock held by syz-executor/15508:
 #0: ffffffff8f714d08 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x404/0x1ad0
1 lock held by syz-executor/15512:
 #0: ffffffff8f714d08 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x404/0x1ad0
1 lock held by syz-executor/15513:
 #0: ffffffff8f714d08 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x404/0x1ad0
1 lock held by syz-executor/15521:
 #0: ffffffff8f714d08 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x404/0x1ad0
1 lock held by syz-executor/15524:
 #0: ffffffff8f714d08 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x404/0x1ad0
1 lock held by syz-executor/15528:
 #0: ffffffff8f714d08 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x404/0x1ad0
4 locks held by kworker/u11:7/15529:
 #0: ffff88810b6e8148 ((wq_completion)hci11#2){+.+.}-{0:0}, at: process_scheduled_works+0x9d4/0x17a0
 #1: ffffc9000719fbc0 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_scheduled_works+0xa0f/0x17a0
 #2: ffff88803c1740c0 (&hdev->lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x9b/0x950
 #3: ffffffff8f886988 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x54c/0x950

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 35 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+0xe8/0x150
 nmi_cpu_backtrace+0x274/0x2d0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 sys_info+0x135/0x170
 watchdog+0xf90/0xfe0
 kthread+0x726/0x8b0
 ret_from_fork+0x51b/0xa40
 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: 15463 Comm: syz.5.2870 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 e9 80 c3 04 0a cc 89 f6 31 d2 e9 86 21 5f 03 66 0f 1f 44 00
RSP: 0018:ffffc90000a08288 EFLAGS: 00000046
RAX: 000000000000010b RBX: ffff88823c623e40 RCX: 0000000000000838
RDX: 0000000000000000 RSI: 000000000000010b RDI: 0000000000000838
RBP: 0000000000000000 R08: ffffffff81b003a5 R09: ffffffff99d0c508
R10: 0000000000000003 R11: ffffffff8171f6c0 R12: 00000000100044c9
R13: dffffc0000000000 R14: 000000000000010b R15: 0000000000000020
FS:  00007f43741f66c0(0000) GS:ffff8882a9a0c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2715ea CR3: 00000000233cc000 CR4: 00000000000006f0
DR0: 0000200000000300 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 lapic_next_event+0x11/0x20
 clockevents_program_event+0x1c9/0x350
 hrtimer_interrupt+0x620/0xaa0
 __sysvec_apic_timer_interrupt+0x102/0x3d0
 sysvec_apic_timer_interrupt+0x52/0xc0
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:unwind_next_frame+0x484/0x23c0
Code: d2 84 c0 48 0f 45 d1 48 89 15 08 db 52 11 48 85 d2 0f 84 40 02 00 00 4c 8d 62 04 4c 8d 6a 05 4c 89 e0 48 c1 e8 03 0f b6 04 28 <84> c0 0f 85 66 18 00 00 4c 89 e8 48 c1 e8 03 0f b6 04 28 84 c0 0f
RSP: 0018:ffffc90000a084f8 EFLAGS: 00000a06
RAX: 0000000000000000 RBX: ffffffff9049df6c RCX: ffffffff9049df70
RDX: ffffffff90fdafac RSI: ffffffff90fdafac RDI: ffffffff8be09080
RBP: dffffc0000000000 R08: 0000000000000001 R09: ffffffff8e341b20
R10: ffffc90000a08618 R11: ffffffff81ae37b0 R12: ffffffff90fdafb0
R13: ffffffff90fdafb1 R14: ffffc90000a085c8 R15: ffffffff9049df6c
 arch_stack_walk+0x11b/0x150
 stack_trace_save+0xa9/0x100
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5c/0x80
 kmem_cache_free+0x195/0x610
 ip6_mc_input+0x8de/0xbd0
 NF_HOOK+0x336/0x3c0
 __netif_receive_skb+0xd3/0x370
 process_backlog+0x54e/0x1340
 __napi_poll+0xae/0x320
 net_rx_action+0x696/0xe30
 handle_softirqs+0x22a/0x7c0
 __irq_exit_rcu+0x5f/0x150
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:__schedule+0x18a/0x4fb0
Code: 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 0e 99 b3 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 ec 98 b3 f6 48 81 3b 9d 6e ac 57 0f 85 a8 19 00
RSP: 0018:ffffc90008adf780 EFLAGS: 00000246
RAX: 1ffff9200115b000 RBX: ffffc90008ad8000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffffff8be090c0 RDI: ffffffff8be09080
RBP: ffffc90008adf980 R08: ffffffff8fc25477 R09: 1ffffffff1f84a8e
R10: dffffc0000000000 R11: fffffbfff1f84a8f R12: ffff8882a9a0c000
R13: 0000000000000001 R14: ffff88816e4fd7c0 R15: 1ffff110478c7680
 preempt_schedule_irq+0x4d/0xa0
 irqentry_exit+0x597/0x620
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:__sanitizer_cov_trace_pc+0x45/0x70
Code: ff 00 74 11 81 fa 00 01 00 00 75 35 83 b9 6c 16 00 00 00 74 2c 8b 91 48 16 00 00 83 fa 02 75 21 48 8b 91 50 16 00 00 48 8b 32 <48> 8d 7e 01 8b 89 4c 16 00 00 48 39 cf 73 08 48 89 3a 48 89 44 f2
RSP: 0018:ffffc90008adfab8 EFLAGS: 00000246
RAX: ffffffff81b6aeb4 RBX: 0000000000000000 RCX: ffff88816e4fd7c0
RDX: ffffc90021b19000 RSI: 000000000000027a RDI: 0000000000000000
RBP: ffffc90008adfb90 R08: ffffffff8fc25477 R09: 1ffffffff1f84a8e
R10: dffffc0000000000 R11: fffffbfff1f84a8f R12: 0000000000000000
R13: dffffc0000000000 R14: 1ffff9200115bf5c R15: 1ffff9200115bf5c
 smp_call_function_single+0x464/0x580
 perf_install_in_context+0x5c0/0x930
 __se_sys_perf_event_open+0x192f/0x1d60
 do_syscall_64+0xe2/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f4375f9acb9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f43741f6028 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00007f4376215fa0 RCX: 00007f4375f9acb9
RDX: ffffffffffffffff RSI: 0000000000000000 RDI: 0000200000000440
RBP: 00007f4376008bf7 R08: 0000000000000003 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4376216038 R14: 00007f4376215fa0 R15: 00007ffc9cb9efe8
 </TASK>
