tipc: Enabling of bearer <ib:caif0> rejected, max 3 bearers permitted
==================================================================
BUG: KASAN: use-after-free in xfrm_state_find+0x2cf2/0x5400
Read of size 1 at addr ffff88810891c330 by task syz.1.578/8003

CPU: 1 UID: 0 PID: 8003 Comm: syz.1.578 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+0x189/0x250
 print_report+0xca/0x240
 kasan_report+0x118/0x150
 xfrm_state_find+0x2cf2/0x5400
 xfrm_resolve_and_create_bundle+0x768/0x2f80
 xfrm_lookup_with_ifid+0x58a/0x1a70
 xfrm_lookup_route+0x3c/0x1c0
 raw_sendmsg+0x1039/0x18b0
 __sock_sendmsg+0x19c/0x270
 __sys_sendto+0x3bd/0x520
 __x64_sys_sendto+0xde/0x100
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9baff8ebe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9bb0de5038 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f9bb01b5fa0 RCX: 00007f9baff8ebe9
RDX: 0000000000000b00 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007f9bb0011e19 R08: 0000200000000000 R09: 0000000000000010
R10: 0000000000048812 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9bb01b6038 R14: 00007f9bb01b5fa0 R15: 00007ffe9eb7fc68
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88810891c000 pfn:0x10891c
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
page_type: f0(buddy)
raw: 057ff00000000000 ffffea0004206b08 ffffea00041a0908 0000000000000000
raw: ffff88810891c000 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 0xcc0(GFP_KERNEL), pid 7869, tgid 7868 (syz.2.538), ts 94625742211, free_ts 94692577153
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_bulk_noprof+0x560/0x710
 kasan_populate_vmalloc+0xba/0x1a0
 alloc_vmap_area+0xd51/0x1490
 __get_vm_area_node+0x1f8/0x300
 __vmalloc_node_range_noprof+0x301/0x12f0
 __kvmalloc_node_noprof+0x3b8/0x5f0
 __htab_map_lookup_and_delete_batch+0x481/0x13a0
 bpf_map_do_batch+0x415/0x5f0
 __sys_bpf+0x793/0x870
 __x64_sys_bpf+0x7c/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 47 tgid 47 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 kasan_depopulate_vmalloc_pte+0x74/0xa0
 __apply_to_page_range+0xb92/0x1380
 kasan_release_vmalloc+0xa2/0xd0
 purge_vmap_node+0x214/0x8f0
 __purge_vmap_area_lazy+0x7a4/0xb40
 drain_vmap_area_work+0x27/0x40
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

Memory state around the buggy address:
 ffff88810891c200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88810891c280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff88810891c300: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                                     ^
 ffff88810891c380: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88810891c400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
