------------[ cut here ]------------ WARNING: CPU: 2 PID: 7675 at kernel/kthread.c:525 __kthread_bind_mask+0x35/0xc0 kernel/kthread.c:525 Modules linked in: CPU: 2 UID: 0 PID: 7675 Comm: kworker/u32:11 Not tainted 6.11.0-rc1-syzkaller-00046-gc91a7dee0555 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: netns cleanup_net RIP: 0010:__kthread_bind_mask+0x35/0xc0 kernel/kthread.c:525 Code: 48 89 fb e8 5d 59 33 00 89 ee 48 89 df e8 33 53 04 00 31 ff 48 89 c5 48 89 c6 e8 76 54 33 00 48 85 ed 75 14 e8 3c 59 33 00 90 <0f> 0b 90 5b 5d 41 5c 41 5d e9 2d 59 33 00 e8 28 59 33 00 4c 8d ab RSP: 0018:ffffc90003977868 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88802bb6c880 RCX: ffffffff815721ea RDX: ffff888022d38000 RSI: ffffffff815721f4 RDI: 0000000000000007 RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8b4b4500 R13: 0000000000000004 R14: ffff888045da0cc0 R15: ffff888045a654e0 FS: 0000000000000000(0000) GS:ffff88806b200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffead30f898 CR3: 000000000db7c000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __kthread_bind kernel/kthread.c:538 [inline] kthread_unpark+0x147/0x1a0 kernel/kthread.c:631 kthread_stop+0x177/0x670 kernel/kthread.c:707 destroy_workqueue+0x154/0xaa0 kernel/workqueue.c:5793 wg_destruct+0x24d/0x3d0 drivers/net/wireguard/device.c:257 netdev_run_todo+0x760/0x12d0 net/core/dev.c:10753 default_device_exit_batch+0x860/0xae0 net/core/dev.c:11889 ops_exit_list+0x128/0x180 net/core/net_namespace.c:178 cleanup_net+0x5b7/0xbf0 net/core/net_namespace.c:640 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244