INFO: task kworker/u9:1:29 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u9:1    state:D stack:21224 pid:29    tgid:29    ppid:2      task_flags:0x4208160 flags:0x00004000
Workqueue: events_unbound bpf_map_free_deferred
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_timeout+0x9a/0x270
 wait_for_completion+0x2bf/0x5d0
 rcu_barrier+0x463/0x570
 dev_map_free+0x11f/0x6a0
 bpf_map_free_deferred+0x113/0x140
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task syz.6.2400:12980 blocked for more than 145 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.2400      state:D stack:25096 pid:12980 tgid:12980 ppid:12057  task_flags:0x400040 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 synchronize_rcu_expedited+0x5f5/0x730
 synchronize_rcu+0x11a/0x310
 packet_release+0xa05/0xce0
 sock_close+0xc3/0x240
 __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:0x7f7351f8eba9
RSP: 002b:00007ffd906742e8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f73521d7da0 RCX: 00007f7351f8eba9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f73521d7da0 R08: 000000000000d0c4 R09: 0000001e906745df
R10: 00007f73521d7cb0 R11: 0000000000000246 R12: 0000000000068773
R13: 00007f73521d6090 R14: ffffffffffffffff R15: 00007ffd90674400
 </TASK>
INFO: task syz.5.2404:12990 blocked for more than 145 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.5.2404      state:D stack:25096 pid:12990 tgid:12990 ppid:12055  task_flags:0x400040 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_timeout+0x9a/0x270
 __wait_for_common+0x3da/0x710
 wait_for_completion_state+0x1c/0x40
 __wait_rcu_gp+0x24c/0x280
 synchronize_rcu_tasks_generic+0x132/0x220
 perf_trace_event_unreg+0xbe/0x1b0
 perf_trace_destroy+0xa4/0x150
 __free_event+0x346/0x7e0
 perf_event_release_kernel+0x45b/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:0x7f9ba418eba9
RSP: 002b:00007ffd5fa933f8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f9ba43d7da0 RCX: 00007f9ba418eba9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f9ba43d7da0 R08: 0000000000011164 R09: 0000000e5fa936ef
R10: 00000000003eec78 R11: 0000000000000246 R12: 0000000000068835
R13: 00007f9ba43d6090 R14: ffffffffffffffff R15: 00007ffd5fa93510
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/u9:0/26:
3 locks held by kworker/u9:1/29:
 #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000062fbc0 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8e13f800 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x570
2 locks held by rcu_tasks_trace/32:
 #0: ffffffff8e13abd0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{4:4}, at: rcu_tasks_one_gp+0xaf9/0xdf0
 #1: ffffffff8e13f938 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730
1 lock held by khungtaskd/34:
 #0: ffffffff8e139ea0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
6 locks held by kworker/u11:0/55:
 #0: ffff8880254c6948 ((wq_completion)hci0){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900007dfbc0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888022470dc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1d4/0x3a0
 #3: ffff8880224700b8 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x242/0xe30
 #4: ffffffff8f69c948 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_failed+0x165/0x310
 #5: ffff888023547338 (&conn->lock#2){+.+.}-{4:4}, at: l2cap_conn_del+0x70/0x680
3 locks held by kworker/u10:3/178:
 #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000270fbc0 ((work_completion)(&rdev->wiphy_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888117f80768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: cfg80211_wiphy_work+0xc4/0x470
5 locks held by kworker/u11:1/5234:
 #0: ffff88811334d948 ((wq_completion)hci4){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90008947bc0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888107cd8dc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1d4/0x3a0
 #3: ffff888107cd80b8 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x242/0xe30
 #4: ffffffff8f69c948 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_failed+0x165/0x310
2 locks held by getty/5670:
 #0: ffff888029f7a0a0 (&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
4 locks held by kworker/u8:2/5705:
 #0: ffff88801b2f7148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90002f7fbc0 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f52ae30 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf7/0x800
 #3: ffffffff8f537c88 (rtnl_mutex){+.+.}-{4:4}, at: wg_netns_pre_exit+0x1c/0x1d0
4 locks held by kworker/u11:2/5845:
 #0: ffff888060900148 ((wq_completion)hci11#2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90003bbfbc0 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888121d280b8 (&hdev->lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x9b/0x8e0
 #3: ffffffff8f69c948 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x516/0x8e0
3 locks held by kworker/u8:4/5885:
 #0: ffff88802991e948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90003d7fbc0 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f537c88 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_verify_work+0x19/0x30
4 locks held by kworker/u11:3/8970:
 #0: ffff888060478148 ((wq_completion)hci10#2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90007d67bc0 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff88812a1d40b8 (&hdev->lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x9b/0x8e0
 #3: ffffffff8f69c948 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x516/0x8e0
3 locks held by kworker/u10:5/10449:
 #0: ffff88801a489148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000388fbc0 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f537c88 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60
5 locks held by kworker/u11:4/12041:
 #0: ffff888117f35148 ((wq_completion)hci5){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900043bfbc0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff8881130f0dc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1d4/0x3a0
 #3: ffff8881130f00b8 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x242/0xe30
 #4: ffffffff8f69c948 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_failed+0x165/0x310
4 locks held by kworker/u11:5/12048:
 #0: ffff88806047d148 ((wq_completion)hci9#2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900029efbc0 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff88812c03c0b8 (&hdev->lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x9b/0x8e0
 #3: ffffffff8f69c948 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_remote_features_evt+0x516/0x8e0
1 lock held by syz.6.2400/12980:
 #0: ffff888110895608 (&sb->s_type->i_mutex_key#11){+.+.}-{4:4}, at: sock_close+0x9b/0x240
3 locks held by syz.6.2400/12981:
1 lock held by syz.3.2401/12982:
 #0: ffffffff8e13f938 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730
1 lock held by syz.5.2404/12990:
 #0: ffffffff8e19d448 (event_mutex){+.+.}-{4:4}, at: perf_trace_destroy+0x2e/0x150
2 locks held by syz-executor/12996:
 #0: ffffffff8ecb5280 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x23/0x250
 #1: ffffffff8f537c88 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x8db/0x1c70
2 locks held by syz-executor/12999:
 #0: ffffffff8eca80c0 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x23/0x250
 #1: ffffffff8f537c88 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x8db/0x1c70
1 lock held by syz-executor/13003:
 #0: ffffffff8f537c88 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x8db/0x1c70
1 lock held by syz-executor/13019:
 #0: ffffffff8f537c88 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/13020:
 #0: ffffffff8f537c88 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/13025:
 #0: ffffffff8f537c88 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/13032:
 #0: ffffffff8f537c88 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/13035:
 #0: ffffffff8f537c88 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
1 lock held by syz-executor/13037:
 #0: ffffffff8f537c88 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x3b0/0x18b0
5 locks held by kworker/u11:6/13039:
 #0: ffff88803b1c5148 ((wq_completion)hci3){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90002a5fbc0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888107cdcdc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1d4/0x3a0
 #3: ffff888107cdc0b8 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x242/0xe30
 #4: ffffffff8f69c948 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_failed+0x165/0x310

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

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: 12981 Comm: syz.6.2400 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 5d 8e 03 66
RSP: 0018:ffffc900000074e8 EFLAGS: 00000046
RAX: 0000000000000113 RBX: ffff88804b023900 RCX: 0000000000000838
RDX: 0000000000000000 RSI: 0000000000000113 RDI: 0000000000000838
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff81ae033e
R10: 0000000000000003 R11: ffffffff81703490 R12: 0000000010001ad7
R13: dffffc0000000000 R14: 0000000000000113 R15: 0000000000000020
FS:  00007f7352d646c0(0000) GS:ffff8880b861c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e612ff8 CR3: 0000000108102000 CR4: 00000000000006f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000200000000300
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:lock_is_held_type+0x137/0x190
Code: 01 75 44 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 4c 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 05 f9 03 27 07 <48> 3b 44 24 08 75 43 89 d8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f
RSP: 0018:ffffc90000007758 EFLAGS: 00000206
RAX: de583d180cd3d200 RBX: 0000000000000001 RCX: de583d180cd3d200
RDX: ffff88810c223980 RSI: ffffffff8dba5ba2 RDI: ffffffff8be33280
RBP: 00000000ffffffff R08: 0001000000000000 R09: 0030004000060003
R10: 000000000000000c R11: 0000000000000100 R12: 0000000000000246
R13: ffff88810c223980 R14: ffffffff8e139ea0 R15: 0000000000000000
 rhltable_lookup+0x16c/0x780
 sta_info_get_bss+0x12a/0x320
 ieee80211_rx_for_interface+0xdf/0x630
 ieee80211_rx_list+0x21b8/0x2a90
 ieee80211_rx_napi+0x1a8/0x3d0
 ieee80211_handle_queued_frames+0xe8/0x1f0
 tasklet_action_common+0x36c/0x580
 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:preempt_schedule_irq+0xb0/0x150
Code: 24 20 f6 44 24 21 02 74 0c 90 0f 0b 48 f7 03 08 00 00 00 74 64 bf 01 00 00 00 e8 fb 98 15 f6 e8 36 f3 4c f6 fb bf 01 00 00 00 <e8> 5b ab ff ff 48 c7 44 24 40 00 00 00 00 9c 8f 44 24 40 8b 44 24
RSP: 0018:ffffc900071ef1e0 EFLAGS: 00000282
RAX: de583d180cd3d200 RBX: 0000000000000000 RCX: de583d180cd3d200
RDX: 0000000000000000 RSI: ffffffff8d9b696f RDI: 0000000000000001
RBP: ffffc900071ef280 R08: ffffffff8fa37e37 R09: 1ffffffff1f46fc6
R10: dffffc0000000000 R11: fffffbfff1f46fc7 R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff92000e3de3c
 irqentry_exit+0x6f/0x90
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:preempt_schedule_common+0x91/0xd0
Code: 42 80 3c 38 00 74 08 4c 89 f7 e8 ca ba a8 f6 49 89 1e bf 01 00 00 00 e8 8d ad ff ff 65 8b 05 a6 df 25 07 65 ff 0d 9f df 25 07 <65> 48 8b 1c 25 08 40 a0 92 48 89 d8 48 c1 e8 03 42 80 3c 38 00 0f
RSP: 0018:ffffc900071ef340 EFLAGS: 00000246
RAX: 0000000000000001 RBX: ffffffff8b7a5fde RCX: de583d180cd3d200
RDX: 0000000000000000 RSI: ffffffff8be33260 RDI: ffffffff8be33220
RBP: ffffc900071ef3d8 R08: ffffffff8fa37e37 R09: 1ffffffff1f46fc6
R10: dffffc0000000000 R11: fffffbfff1f46fc7 R12: dffffc0000000000
R13: ffffffff8e13f1c0 R14: ffff88810c224e60 R15: dffffc0000000000
 preempt_schedule+0xae/0xc0
 preempt_schedule_thunk+0x16/0x30
 _raw_spin_unlock_irqrestore+0xfd/0x110
 rcu_preempt_deferred_qs_irqrestore+0x8bd/0xce0
 rcu_read_unlock_special+0x475/0x5e0
 __rcu_read_unlock+0x84/0xe0
 unwind_next_frame+0x19ae/0x2390
 arch_stack_walk+0x11c/0x150
 stack_trace_save+0x9c/0xe0
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kfree+0x18e/0x440
 btf_new_fd+0x52e/0xc90
 __sys_bpf+0x406/0x870
 __x64_sys_bpf+0x7c/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f7351f8eba9
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:00007f7352d64038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f73521d5fa0 RCX: 00007f7351f8eba9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000012
RBP: 00007f7352011e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f73521d6038 R14: 00007f73521d5fa0 R15: 00007ffd90674188
 </TASK>
