INFO: task kworker/u8:4:5860 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u8:4    state:D stack:23672 pid:5860  tgid:5860  ppid:2      task_flags:0x4208060 flags:0x00080000
Workqueue: netns cleanup_net
Call Trace:
 <TASK>
 __schedule+0x17dd/0x5830
 schedule+0x164/0x2b0
 schedule_timeout+0xc0/0x2c0
 wait_for_completion+0x2c5/0x5d0
 remove_one+0x2df/0x3b0
 __simple_recursive_removal+0x215/0x520
 debugfs_remove+0x5b/0x70
 nsim_dev_health_exit+0x41/0xc0
 nsim_dev_reload_destroy+0x2bf/0x490
 nsim_dev_reload_down+0x8a/0xc0
 devlink_reload+0x1ed/0x7f0
 devlink_pernet_pre_exit+0x1d9/0x560
 ops_undo_list+0x17d/0x8f0
 cleanup_net+0x572/0x810
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task syz.4.112:7197 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.112       state:D stack:22248 pid:7197  tgid:7196  ppid:7007   task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17dd/0x5830
 schedule+0x164/0x2b0
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7c4/0x15a0
 devlink_health_report+0x305/0xb20
 nsim_dev_health_break_write+0x194/0x240
 full_proxy_write+0x127/0x1f0
 vfs_write+0x296/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0a93b9f559
RSP: 002b:00007f0a94b4d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f0a93e25fa0 RCX: 00007f0a93b9f559
RDX: 0000000000000008 RSI: 000020000000f640 RDI: 0000000000000004
RBP: 00007f0a93c36b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0a93e26038 R14: 00007f0a93e25fa0 R15: 00007ffe6953b3b8
 </TASK>

Showing all locks held in the system:
locks held by kworker/u8:0/12: 3, last CPU#0:
 #0: ffff888111422148 ((wq_completion)bat_events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90000117c40 ((work_completion)(&(&forw_packet_aggr->delayed_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffff88816e09d1c8 (&hard_iface->bat_iv.ogm_buff_mutex){+.+.}-{4:4}, at: batadv_iv_ogm_schedule+0xd4/0xfc0
locks held by kworker/u9:0/26: 1, last CPU#0:
 #0: ffff8881000ac148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
locks held by khungtaskd/35: 1, last CPU#1:
 #0: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
locks held by getty/5440: 2, on CPU#0:
 #0: ffff8881143c20a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900034832e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1360
locks held by kworker/u8:4/5860: 6, on CPU#1:
 #0: ffff8881012e5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90005d97c40 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffffffff91684308 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf5/0x810
 #3: ffff8881afe9c128 (&dev->mutex){....}-{4:4}, at: devlink_pernet_pre_exit+0x122/0x560
 #4: ffff8881b219f258 (&devlink->lock_key#13){+.+.}-{4:4}, at: devlink_pernet_pre_exit+0x138/0x560
 #5: ffff8881afabfb00 (&sb->s_type->i_mutex_key#9/2){+.+.}-{4:4}, at: __simple_recursive_removal+0x19a/0x520
locks held by syz.4.112/7197: 3, on CPU#0:
 #0: ffff888162afa8f0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x118/0x160
 #1: ffff888161ea8478 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #2: ffff8881b219f258 (&devlink->lock_key#13){+.+.}-{4:4}, at: devlink_health_report+0x305/0xb20
locks held by syz-executor/8204: 5, on CPU#0:
 #0: ffff888114afe478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff888013c22080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff888105f78d28 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff90eec0c0 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
 #4: ffff8881afe9c128 (&dev->mutex){....}-{4:4}, at: device_del+0xa9/0x8f0
locks held by syz-executor/8356: 4, on CPU#0:
 #0: ffff888114afe478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff88811acec080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff888105f78d28 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff90eec0c0 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
locks held by syz-executor/8430: 4, on CPU#0:
 #0: ffff888114afe478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff888118715c80 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff888105f78d28 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff90eec0c0 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
locks held by syz-executor/8459: 4, on CPU#0:
 #0: ffff888114afe478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff8881b495f880 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff888105f78d28 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff90eec0c0 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
locks held by syz-executor/8479: 4, on CPU#0:
 #0: ffff888114afe478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff88816ee8c080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff888105f78d28 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff90eec0c0 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
locks held by syz-executor/8497: 4, on CPU#0:
 #0: ffff888114afe478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff888021cb4880 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff888105f78d28 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff90eec0c0 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
locks held by syz-executor/8521: 4, on CPU#0:
 #0: ffff888114afe478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff8881ad94ac80 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff888105f78d28 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff90eec0c0 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
locks held by syz-executor/8541: 4, on CPU#0:
 #0: ffff888114afe478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff8880266d5480 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff888105f78d28 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff90eec0c0 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
locks held by syz-executor/8559: 4, on CPU#0:
 #0: ffff888114afe478 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff888026da2880 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff888105f78d28 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff90eec0c0 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370

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

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+0x17d/0x390
 sys_info+0x135/0x170
 watchdog+0x1073/0x10f0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 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: 5267 Comm: kworker/0:3 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
Workqueue: wg-crypt-wg1 wg_packet_tx_worker
RIP: 0010:__lock_acquire+0x1a2e/0x2de0
Code: 16 25 ff 0f 00 00 39 05 2c 7b 42 14 73 06 89 05 24 7b 42 14 49 8b 06 48 89 df 4c 39 e8 0f 84 39 fe ff ff 4c 89 78 30 48 8b 00 <4c> 39 e8 75 f4 48 89 df e9 25 fe ff ff 48 89 fb 48 c7 c7 b0 81 02
RSP: 0018:ffffc900037cf608 EFLAGS: 00000006
RAX: ffffffff986d57d8 RBX: 00000000000003dd RCX: 0000000000000221
RDX: 0000000000000008 RSI: ffff88810df8aaa0 RDI: 00000000000003dd
RBP: c8bbbce88779e3c4 R08: ffffc900037cf5d0 R09: 0000000000000020
R10: dffffc0000000000 R11: ffffffff81a48710 R12: 0000000000000220
R13: ffffffff95885410 R14: ffffffff986d4188 R15: ffffffff986abed8
FS:  0000000000000000(0000) GS:ffff88818be11000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f68fa573440 CR3: 000000000ff48000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 lock_acquire+0x115/0x350
 psi_write_begin+0xa9/0x160
 psi_task_change+0xc9/0x320
 enqueue_task+0x33f/0x410
 try_to_wake_up+0x16d/0x14e0
 __queue_work+0xc09/0x1360
 queue_work_on+0x106/0x1d0
 wg_packet_send_queued_handshake_initiation+0x21f/0x340
 wg_packet_tx_worker+0x6ce/0x7d0
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
