------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(1) WARNING: CPU: 0 PID: 6432 at kernel/locking/lockdep.c:232 hlock_class kernel/locking/lockdep.c:232 [inline] WARNING: CPU: 0 PID: 6432 at kernel/locking/lockdep.c:232 hlock_class kernel/locking/lockdep.c:221 [inline] WARNING: CPU: 0 PID: 6432 at kernel/locking/lockdep.c:232 check_wait_context kernel/locking/lockdep.c:4755 [inline] WARNING: CPU: 0 PID: 6432 at kernel/locking/lockdep.c:232 __lock_acquire+0xecf/0x5660 kernel/locking/lockdep.c:5006 Modules linked in: CPU: 0 PID: 6432 Comm: kworker/u4:56 Not tainted 6.2.0-rc3-next-20230112-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: netns cleanup_net RIP: 0010:hlock_class kernel/locking/lockdep.c:232 [inline] RIP: 0010:hlock_class kernel/locking/lockdep.c:221 [inline] RIP: 0010:check_wait_context kernel/locking/lockdep.c:4755 [inline] RIP: 0010:__lock_acquire+0xecf/0x5660 kernel/locking/lockdep.c:5006 Code: e8 fb 73 8e e8 32 c8 6b 00 8b 05 d4 37 10 0d 85 c0 0f 85 79 f8 ff ff 48 c7 c6 60 57 4c 8a 48 c7 c7 c0 50 4c 8a e8 05 89 58 08 <0f> 0b 31 c0 e9 73 f7 ff ff 48 63 5c 24 18 be 08 00 00 00 48 89 d8 RSP: 0018:ffffc90003c4f5f0 EFLAGS: 00010082 RAX: 0000000000000000 RBX: 000000000000073c RCX: 0000000000000000 RDX: ffff88802177d7c0 RSI: ffffffff8166972c RDI: fffff52000789eb0 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000002 R11: 0000000000000001 R12: 0000000000000003 R13: ffff88802177d7c0 R14: ffff88802177e1f8 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005624b5b62950 CR3: 000000007e1fe000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire.part.0+0x11a/0x350 kernel/locking/lockdep.c:5669 finish_lock_switch kernel/sched/core.c:5057 [inline] finish_task_switch.isra.0+0x192/0xc80 kernel/sched/core.c:5178 context_switch kernel/sched/core.c:5304 [inline] __schedule+0x25d8/0x5a70 kernel/sched/core.c:6619 schedule+0xde/0x1b0 kernel/sched/core.c:6695 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6754 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa48/0x1360 kernel/locking/mutex.c:747 devl_lock net/devlink/core.c:54 [inline] devlink_pernet_pre_exit+0x10a/0x220 net/devlink/core.c:301 ops_pre_exit_list net/core/net_namespace.c:159 [inline] cleanup_net+0x455/0xb10 net/core/net_namespace.c:594 process_one_work+0x9bf/0x1750 kernel/workqueue.c:2293 worker_thread+0x669/0x1090 kernel/workqueue.c:2440 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308