------------[ cut here ]------------ WARNING: net/xfrm/xfrm_state.c:3303 at xfrm_state_fini+0x26d/0x2f0 net/xfrm/xfrm_state.c:3303, CPU#0: kworker/u8:7/3507 Modules linked in: CPU: 0 UID: 0 PID: 3507 Comm: kworker/u8:7 Not tainted 6.17.0-rc1-next-20250814-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Workqueue: netns cleanup_net RIP: 0010:xfrm_state_fini+0x26d/0x2f0 net/xfrm/xfrm_state.c:3303 Code: c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 eb c0 f7 f7 48 8b 3b 5b 41 5c 41 5d 41 5e 41 5f 5d e9 09 75 d8 f7 e8 e4 42 94 f7 90 <0f> 0b 90 e9 fd fd ff ff e8 d6 42 94 f7 90 0f 0b 90 e9 60 fe ff ff RSP: 0018:ffffc9000bbdf898 EFLAGS: 00010293 RAX: ffffffff8a2bb32c RBX: ffff888076f34880 RCX: ffff888030bd0000 RDX: 0000000000000000 RSI: ffffffff8c04d960 RDI: ffff888030bd0000 RBP: ffffc9000bbdf9b0 R08: ffffffff8fe4db37 R09: 1ffffffff1fc9b66 R10: dffffc0000000000 R11: fffffbfff1fc9b67 R12: ffffffff8fa466e0 R13: 1ffff9200177bf40 R14: ffff888076f35d00 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8881257d6000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b2e9444950 CR3: 000000005d76a000 CR4: 00000000003526f0 Call Trace: xfrm_net_exit+0x2d/0x70 net/xfrm/xfrm_policy.c:4348 ops_exit_list net/core/net_namespace.c:198 [inline] ops_undo_list+0x49a/0x990 net/core/net_namespace.c:251 cleanup_net+0x4c5/0x800 net/core/net_namespace.c:682 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245