==================================================================
BUG: KASAN: use-after-free in __xfrm_state_delete+0x696/0xca0
Write of size 8 at addr ffff88802fc1c4b0 by task kcompactd0/38

CPU: 1 UID: 0 PID: 38 Comm: kcompactd0 Not tainted 6.16.0-syzkaller-06588-g759dfc7d04ba-dirty #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:
 <IRQ>
 dump_stack_lvl+0x189/0x250
 print_report+0xca/0x240
 kasan_report+0x118/0x150
 __xfrm_state_delete+0x696/0xca0
 xfrm_timer_handler+0x18f/0xa00
 __hrtimer_run_queues+0x52c/0xc60
 hrtimer_run_softirq+0x187/0x2b0
 handle_softirqs+0x286/0x870
 __irq_exit_rcu+0xca/0x1f0
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:__sanitizer_cov_trace_const_cmp8+0x37/0x90
Code: 08 00 9a 92 65 8b 15 88 4a da 10 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 57 83 b9 3c 16 00 00 00 74 4e 8b 91 18 16 00 00 <83> fa 03 75 43 48 8b 91 20 16 00 00 44 8b 89 1c 16 00 00 49 c1 e1
RSP: 0018:ffffc900006cf420 EFLAGS: 00000246
RAX: ffffffff820503f3 RBX: ffffea000040f100 RCX: ffff88801cec5640
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffffea000040f0c7 R09: 1ffffd4000081e18
R10: dffffc0000000000 R11: fffff94000081e19 R12: ffffea000040f108
R13: 1ffffd4000081e21 R14: ffffea000040f108 R15: ffffea0000000000
 isolate_migratepages_block+0x863/0x3a30
 compact_zone+0x22ab/0x4ad0
 compact_node+0x1d2/0x280
 kcompactd+0xbc8/0x1290
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802fc1fc00 pfn:0x2fc1c
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f0(buddy)
raw: 00fff00000000000 ffffea0000b27908 ffffea0000c36308 0000000000000000
raw: ffff88802fc1fc00 0000000000000002 00000000f0000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_ZERO|__GFP_NOWARN), pid 11910, tgid 11909 (syz.2.2521), ts 166150292130, free_ts 166254803822
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 alloc_pages_noprof+0xa9/0x190
 __vmalloc_node_range_noprof+0x97d/0x12f0
 __kvmalloc_node_noprof+0x3b8/0x5f0
 pfifo_fast_init+0x10d/0x6b0
 qdisc_create_dflt+0x13b/0x4e0
 mq_init+0x2dc/0x660
 qdisc_create+0x7ac/0xea0
 tc_modify_qdisc+0x1538/0x20e0
 rtnetlink_rcv_msg+0x77c/0xb70
 netlink_rcv_skb+0x208/0x470
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
page last free pid 11910 tgid 11909 stack trace:
 __free_frozen_pages+0xc71/0xe70
 vfree+0x25a/0x400
 pfifo_fast_destroy+0x4d/0xe0
 __qdisc_destroy+0x153/0x420
 qdisc_create_dflt+0x1c8/0x4e0
 mq_init+0x2dc/0x660
 qdisc_create+0x7ac/0xea0
 tc_modify_qdisc+0x1538/0x20e0
 rtnetlink_rcv_msg+0x77c/0xb70
 netlink_rcv_skb+0x208/0x470
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
 __sock_sendmsg+0x21c/0x270
 ____sys_sendmsg+0x505/0x830
 ___sys_sendmsg+0x21f/0x2a0
 __x64_sys_sendmsg+0x19b/0x260

Memory state around the buggy address:
 ffff88802fc1c380: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88802fc1c400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff88802fc1c480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                                     ^
 ffff88802fc1c500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88802fc1c580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
