INFO: task syz-executor:28372 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:23016 pid:28372 tgid:28372 ppid:1      task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x1840/0x57a0
 schedule+0x164/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7c5/0x1590
 del_device_store+0xd6/0x370
 kernfs_fop_write_iter+0x3a4/0x540
 vfs_write+0x612/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f02ad15d68e
RSP: 002b:00007ffff71405a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000555589ace500 RCX: 00007f02ad15d68e
RDX: 0000000000000001 RSI: 00007ffff7140630 RDI: 0000000000000005
RBP: 00007f02ad2336f2 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffff7140630 R14: 00007f02adf44620 R15: 0000000000000003
 </TASK>
INFO: task syz-executor:28411 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:22920 pid:28411 tgid:28411 ppid:1      task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x1840/0x57a0
 schedule+0x164/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7c5/0x1590
 del_device_store+0xd6/0x370
 kernfs_fop_write_iter+0x3a4/0x540
 vfs_write+0x612/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f78a8b5d68e
RSP: 002b:00007ffed494ab28 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000055555fc7a500 RCX: 00007f78a8b5d68e
RDX: 0000000000000001 RSI: 00007ffed494abb0 RDI: 0000000000000005
RBP: 00007f78a8c336f2 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffed494abb0 R14: 00007f78a9944620 R15: 0000000000000003
 </TASK>

Showing all locks held in the system:
2 locks held by kworker/0:0/9:
1 lock held by kworker/R-mm_pe/14:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x31/0x390
1 lock held by khungtaskd/35:
 #0: ffffffff8e95c980 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
1 lock held by klogd/5053:
 #0: ffff88823c63b0e0 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2d/0x160
2 locks held by getty/5447:
 #0: ffff88810e6980a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900034732e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1380
6 locks held by kworker/u8:5/28782:
 #0: ffff8881012b5940 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0
 #1: ffffc9000361fc40 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0
 #2: ffffffff8fdb5e28 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf5/0x810
 #3: ffffffff8fdc4b00 (rtnl_mutex){+.+.}-{4:4}, at: ieee80211_unregister_hw+0x55/0x2c0
 #4: ffff888059660780 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: ieee80211_remove_interfaces+0x132/0x6c0
 #5: ffffffff8e7eb610 (cpu_hotplug_lock){++++}-{0:0}, at: unregister_netdevice_many_notify+0xcac/0x2370
2 locks held by kworker/0:5/12009:
1 lock held by kworker/0:7/12010:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x31/0x390
4 locks held by kworker/1:6/17958:
 #0: ffff88816ba1bd40 ((wq_completion)wg-kex-wg2#20){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0
 #1: ffffc90008847c40 ((work_completion)(&({ do { const void *__vpp_verify = (typeof((worker) + 0))((void *)0); (void)__vpp_verify; } while (0); ((typeof((__typeof_unqual__(*((worker))) *)(( unsigned long)((worker)))))((unsigned long)((__typeof_unqual__(*((worker))) *)(( unsigned long)((worker)))) + (((__per_cpu_offset[(cpu)]))))); })->work)){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0
 #2: ffff888212ecd3c0 (&wg->static_identity.lock){++++}-{4:4}, at: wg_noise_handshake_consume_initiation+0x1a2/0x9b0
 #3: ffff8882349fe640 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_consume_initiation+0x59c/0x9b0
1 lock held by kworker/R-wg-cr/21255:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x31/0x390
1 lock held by kworker/R-wg-cr/21256:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x31/0x390
1 lock held by kworker/R-wg-cr/21259:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x31/0x390
2 locks held by kworker/0:1/21381:
4 locks held by kworker/0:2/21383:
7 locks held by kworker/0:3/21384:
3 locks held by kworker/0:13/25364:
 #0: ffff88810006b140 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0
 #1: ffffc900049b7c40 (deferred_process_work){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0
 #2: ffffffff8fdc4b00 (rtnl_mutex){+.+.}-{4:4}, at: switchdev_deferred_process_work+0xe/0x20
1 lock held by kworker/R-wg-cr/28283:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x31/0x390
1 lock held by kworker/R-wg-cr/28284:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0xbda/0x10b0
1 lock held by kworker/R-wg-cr/28285:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: worker_attach_to_pool+0x31/0x390
1 lock held by kworker/R-wg-cr/28289:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0xbda/0x10b0
1 lock held by kworker/R-wg-cr/28290:
2 locks held by kworker/R-wg-cr/28292:
7 locks held by syz-executor/28365:
 #0: ffff88811195c450 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff88806d6fa880 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88816fd69788 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8f651f00 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
 #4: ffff8881bb7b0128 (&dev->mutex){....}-{4:4}, at: device_release_driver_internal+0xb9/0x880
 #5: ffff88816f317258 (&devlink->lock_key#3){+.+.}-{4:4}, at: nsim_drv_remove+0x50/0x170
 #6: ffffffff8e962b78 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530
4 locks held by syz-executor/28372:
 #0: ffff88811195c450 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff8881abc89080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88816fd69788 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8f651f00 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
4 locks held by syz-executor/28411:
 #0: ffff88811195c450 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff88807ba82480 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88816fd69788 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8f651f00 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
4 locks held by syz-executor/28433:
 #0: ffff88811195c450 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff88805fc4e080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88816fd69788 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8f651f00 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
4 locks held by syz-executor/28440:
 #0: ffff88811195c450 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff88820cb83c80 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88816fd69788 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8f651f00 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
4 locks held by syz-executor/28477:
 #0: ffff88811195c450 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff88806c0cd080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88816fd69788 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8f651f00 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
4 locks held by syz-executor/28500:
 #0: ffff88811195c450 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff888219bf0080 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88816fd69788 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8f651f00 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
4 locks held by syz-executor/28509:
 #0: ffff88811195c450 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff8881a5e41c80 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88816fd69788 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8f651f00 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
1 lock held by kworker/R-bond0/28529:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x80/0x10b0
1 lock held by kworker/R-wg-cr/28533:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x80/0x10b0
1 lock held by kworker/R-wg-cr/28534:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x80/0x10b0
1 lock held by kworker/R-wg-cr/28535:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x80/0x10b0
1 lock held by kworker/R-bond0/28536:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x80/0x10b0
1 lock held by kworker/R-wg-cr/28540:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x80/0x10b0
1 lock held by kworker/R-wg-cr/28541:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x80/0x10b0
1 lock held by kworker/R-wg-cr/28542:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x80/0x10b0
4 locks held by syz-executor/28545:
 #0: ffff88811195c450 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0
 #1: ffff8881924aa880 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d8/0x540
 #2: ffff88816fd69788 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22b/0x540
 #3: ffffffff8f651f00 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370
1 lock held by kworker/R-bond0/28559:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x80/0x10b0
1 lock held by kworker/R-wg-cr/28562:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x80/0x10b0
1 lock held by kworker/R-wg-cr/28563:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x80/0x10b0
1 lock held by kworker/R-wg-cr/28564:
 #0: ffffffff8e7fae60 (wq_pool_attach_mutex){+.+.}-{4:4}, at: rescuer_thread+0x80/0x10b0
1 lock held by syz-executor/28567:
 #0: ffffffff8fdc4b00 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x464/0x19e0
1 lock held by syz-executor/28576:
 #0: ffffffff8fdc4b00 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x464/0x19e0

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

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+0xfd7/0x1030
 kthread+0x388/0x470
 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: 21384 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-kex-wg0 wg_packet_handshake_receive_worker
RIP: 0010:rcu_is_watching+0x5a/0xb0
Code: f0 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 f7 e8 9c 20 86 00 48 c7 c3 d8 49 38 93 49 03 1e 48 89 d8 48 c1 e8 03 42 0f b6 04 38 <84> c0 75 34 8b 03 65 ff 0d 49 99 8c 11 74 11 83 e0 04 c1 e8 02 5b
RSP: 0018:ffffc90000006e80 EFLAGS: 00000a02
RAX: 0000000000000000 RBX: ffff8881210339d8 RCX: 0000000000000101
RDX: 00000000a42637f2 RSI: ffffffff8c28ae80 RDI: ffffffff8c28ae40
RBP: 1ffff92000000df0 R08: ffffffff8176af7f R09: 0000000000000000
R10: 0000000000000000 R11: ffffffff8e95c980 R12: dffffc0000000000
R13: ffffffff8176af7f R14: ffffffff8e261790 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff88818dcaf000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f91cc85dff8 CR3: 000000000e74a000 CR4: 00000000000006f0
Call Trace:
 <IRQ>
 unwind_next_frame+0xbe/0x2550
 arch_stack_walk+0x11b/0x150
 stack_trace_save+0xa9/0x100
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x40/0x50
 __kasan_slab_free+0x5c/0x80
 kfree+0x1c5/0x640
 skb_release_data+0x85e/0xab0
 __kfree_skb+0x5d/0x210
 nft_synproxy_eval_v4+0x383/0x530
 nft_synproxy_do_eval+0x335/0x550
 nft_do_chain+0x48d/0x1ad0
 nft_do_chain_inet+0x360/0x4b0
 nf_hook_slow+0xc5/0x220
 NF_HOOK+0x21f/0x3c0
 NF_HOOK+0x336/0x3c0
 process_backlog+0xa34/0x1860
 __napi_poll+0xaa/0x330
 net_rx_action+0x61d/0xf50
 handle_softirqs+0x225/0x840
 __irq_exit_rcu+0xca/0x220
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:curve25519_generic+0x4c7c/0xa470
Code: 03 4c 24 08 4c 13 74 24 30 49 01 c1 49 11 d6 4d 01 f9 49 11 fe 4d 0f a4 ce 0d 4b 8d 04 f6 49 8d 04 46 4c 8b 74 24 70 4c 01 d0 <49> bf ff ff ff ff ff ff 07 00 4c 21 fb 48 89 c2 48 c1 e8 33 48 01
RSP: 0018:ffffc900039ee600 EFLAGS: 00000212
RAX: 1d142686998d4d8a RBX: 3ee5454aaaaa1a61 RCX: 4be96501376e6c44
RDX: 0000035411f9b5b6 RSI: a7a0ad16e7587359 RDI: 0000000000000000
RBP: ffffc900039ef190 R08: 0007ffffffffffff R09: e1d44132128cb25c
R10: 000282c33e20953c R11: 0000000000000000 R12: 0802cb85604e097d
R13: 14f0bc12543e6dbf R14: fffff5200073dcfc R15: 04c859a0bc68f4f4
 curve25519+0x5191/0x51a0
 wg_noise_handshake_consume_initiation+0x242/0x9b0
 wg_packet_handshake_receive_worker+0x674/0x10c0
 process_scheduled_works+0xa8e/0x14e0
 worker_thread+0xa47/0xfb0
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
