INFO: task syz.3.1700:11906 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.1700      state:D stack:24800 pid:11906 tgid:11906 ppid:9346   task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x15dd/0x52d0
 schedule+0x164/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7fe/0x1300
 perf_event_ctx_lock_nested+0x3b8/0x490
 perf_event_release_kernel+0xda/0x510
 perf_release+0x38/0x50
 __fput+0x44f/0xa70
 task_work_run+0x1d9/0x270
 exit_to_user_mode_loop+0xed/0x480
 do_syscall_64+0x32d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f7c9c39c799
RSP: 002b:00007ffc1b787e08 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f7c9c617da0 RCX: 00007f7c9c39c799
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f7c9c617da0 R08: 0000000000000006 R09: 0000000000000000
R10: 00007f7c9c617cb0 R11: 0000000000000246 R12: 000000000003aae1
R13: 00007f7c9c61618c R14: 000000000003a87f R15: 00007f7c9c616180
 </TASK>

Showing all locks held in the system:
4 locks held by kworker/u9:1/30:
 #0: ffff8881000ac148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0xa52/0x18c0
 #1: ffffc90000a57c40 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0xa8d/0x18c0
 #2: ffffffff8fbce988 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60
 #3: ffffffff8e764878 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2d0/0x770
1 lock held by khungtaskd/35:
 #0: ffffffff8e75e5e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by getty/5634:
 #0: ffff88811115f0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc9000356e2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45c/0x13c0
6 locks held by kworker/u8:4/8985:
 #0: ffff8881012ae148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0xa52/0x18c0
 #1: ffffc90004067c40 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0xa8d/0x18c0
 #2: ffffffff8fbc0210 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf4/0x800
 #3: ffff888176bd8130 (&dev->mutex){....}-{4:4}, at: devlink_pernet_pre_exit+0x11b/0x3f0
 #4: ffff888176bdf250 (&devlink->lock_key){+.+.}-{4:4}, at: devlink_pernet_pre_exit+0x12d/0x3f0
 #5: ffffffff8fbce988 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_dev_lock+0x257/0x2f0
1 lock held by syz.3.1700/11906:
 #0: ffff8881122fb0a8 (&ctx->mutex){+.+.}-{4:4}, at: perf_event_ctx_lock_nested+0x3b8/0x490
6 locks held by syz.3.1700/11907:
2 locks held by syz-executor/11963:
 #0: ffffffff8fbc0210 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x4f7/0x730
 #1: ffffffff8e764740 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x580
2 locks held by syz-executor/11967:
 #0: ffffffff9013b9d8 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x23/0x250
 #1: ffffffff8fbce988 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x8a1/0x1be0
7 locks held by syz-executor/11972:
 #0: ffff8881124d2420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x227/0xb90
 #1: ffff88816be4e088 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1de/0x540
 #2: ffff88816df184b8 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x231/0x540
 #3: ffffffff8f442f48 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: new_device_store+0x13c/0x710
 #4: ffff8881b02a5130 (&dev->mutex){....}-{4:4}, at: __device_attach+0x88/0x450
 #5: ffff8881b02a4250 (&devlink->lock_key#9){+.+.}-{4:4}, at: nsim_drv_probe+0xc9/0xc20
 #6: ffffffff8fbce988 (rtnl_mutex){+.+.}-{4:4}, at: nsim_create+0x839/0x1100
2 locks held by syz-executor/11990:
 #0: ffffffff8f30a588 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x23/0x250
 #1: ffffffff8fbce988 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x8a1/0x1be0

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

NMI backtrace for cpu 1
CPU: 1 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+0xfd9/0x1030
 kthread+0x388/0x470
 ret_from_fork+0x51e/0xb90
 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: 11907 Comm: syz.3.1700 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 89 f6 31 d2 e9 46 5e 77 03 66 0f 1f 44 00
RSP: 0018:ffffc900000076b0 EFLAGS: 00000046
RAX: 000000000000003e RBX: ffff888121023e40 RCX: 0000000000000838
RDX: 0000000000000000 RSI: 000000000000003e RDI: 0000000000000838
RBP: 0000000000000000 R08: ffffffff81b2ce75 R09: ffffffff9a2be508
R10: 0000000000000003 R11: ffffffff8173caf0 R12: 00000000100053e2
R13: dffffc0000000000 R14: 000000000000003e R15: 0000000000000020
FS:  00007f7c9d22f6c0(0000) GS:ffff88818de5c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7573347e20 CR3: 00000001033f2000 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+0xb08/0x1010
 __sysvec_apic_timer_interrupt+0x102/0x460
 sysvec_apic_timer_interrupt+0x52/0xc0
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:lock_acquire+0x20b/0x2e0
Code: e9 30 ff ff ff e8 45 45 0d 0a f7 c3 00 02 00 00 0f 84 38 ff ff ff 65 48 8b 05 c1 b2 7a 11 48 3b 44 24 30 75 33 fb 48 83 c4 38 <5b> 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc 48 8d 3d fe 79 73
RSP: 0018:ffffc90000007920 EFLAGS: 00000292
RAX: e4e178867badad00 RBX: 0000000000000246 RCX: 0000000000000101
RDX: 0000000052ec2cec RSI: ffffffff8e169c78 RDI: ffffffff8c27c800
RBP: 0000000000000000 R08: ffffffff81af384d R09: ffffffff8e75e5e0
R10: dffffc0000000000 R11: fffffbfff2023677 R12: 0000000000000002
R13: ffffffff8e75e5e0 R14: 0000000000000000 R15: 0000000000000000
 is_module_text_address+0x39/0x1e0
 kernel_text_address+0x94/0xe0
 __kernel_text_address+0xd/0x30
 unwind_get_return_address+0x4d/0x90
 arch_stack_walk+0xfb/0x150
 stack_trace_save+0xa9/0x100
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5c/0x80
 slab_free_after_rcu_debug+0x126/0x220
 rcu_core+0x7cd/0x1070
 handle_softirqs+0x22a/0x870
 __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:finish_task_switch+0x245/0x920
Code: 00 00 48 85 db 0f 85 e8 01 00 00 0f 1f 44 00 00 4c 8b 75 d0 49 83 c4 48 4c 89 e7 e8 d5 65 1c 0a e8 30 81 38 00 fb 4c 8b 65 c0 <49> 8d bc 24 80 16 00 00 48 89 f8 48 c1 e8 03 42 0f b6 04 28 84 c0
RSP: 0018:ffffc90008aff4f8 EFLAGS: 00000202
RAX: 00000000006d5797 RBX: 0000000000000000 RCX: 0000000080000001
RDX: 0000000000000007 RSI: ffffffff8def8ec0 RDI: ffffffff8c27c800
RBP: ffffc90008aff550 R08: ffffffff9011b3b7 R09: 1ffffffff2023676
R10: dffffc0000000000 R11: fffffbfff2023677 R12: ffff888169e00000
R13: dffffc0000000000 R14: ffff88810570ba80 R15: ffff88812103b998
 __schedule+0x15e5/0x52d0
 preempt_schedule_notrace+0x57/0x90
 preempt_schedule_notrace_thunk+0x16/0x30
 stack_depot_save_flags+0x2ff/0x810
 save_stack+0x130/0x230
 __reset_page_owner+0x71/0x1f0
 __free_frozen_pages+0xc2b/0xdb0
 __slab_free+0x263/0x2b0
 qlist_free_all+0x97/0x100
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 kmem_cache_alloc_noprof+0x2bc/0x650
 alloc_empty_file+0x55/0x1d0
 alloc_file_pseudo+0x155/0x240
 anon_inode_getfile+0xc5/0x1a0
 __se_sys_perf_event_open+0xf05/0x1d60
 do_syscall_64+0x14d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f7c9c39c799
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:00007f7c9d22f028 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00007f7c9c615fa0 RCX: 00007f7c9c39c799
RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000200000000040
RBP: 00007f7c9c432c99 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 00007f7c9c616038 R14: 00007f7c9c615fa0 R15: 00007ffc1b787ca8
 </TASK>
