IPVS: fo: UDP 224.0.0.2:0 - no destination available
==================================================================
BUG: KASAN: use-after-free in xfrm_state_find+0x2cf2/0x5400
Read of size 1 at addr ffff888106b9cc30 by task syz.0.1545/11569

CPU: 1 UID: 0 PID: 11569 Comm: syz.0.1545 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:
 <IRQ>
 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
 tipc_udp_xmit+0x1c3/0xb60
 tipc_bearer_xmit_skb+0x2b3/0x400
 tipc_disc_timeout+0x580/0x6d0
 call_timer_fn+0x17e/0x5f0
 __run_timer_base+0x61a/0x860
 run_timer_softirq+0xb7/0x180
 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:jent_memaccess+0x154/0x180
Code: 08 48 8b 44 24 50 8b 48 30 48 8b 44 24 50 03 48 38 83 e9 01 48 8b 44 24 50 89 48 30 48 8b 44 24 50 8b 40 30 31 d2 f7 74 24 44 <48> 8b 44 24 50 89 50 30 e8 0f 31 22 fd 48 8b 44 24 38 48 83 c0 01
RSP: 0018:ffffc90007a4f908 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88810e5b6728 RCX: 00000000000002d9
RDX: 00000000000002d9 RSI: 00000000000000c2 RDI: 000000000000009f
RBP: 0000000000000030 R08: ffffc90007a4f89f R09: 0000000000000000
R10: ffffc90007a4f880 R11: fffff52000f49f14 R12: ffff88810e5b6700
R13: 0000000000000030 R14: ffffc90007a4fb30 R15: ffff88810e5b6768
 jent_measure_jitter+0x5c/0x130
 jent_gen_entropy+0x72/0xc0
 jent_read_entropy+0x93/0x240
 jent_kcapi_random+0x54/0x100
 drbg_seed+0x305/0x930
 drbg_kcapi_seed+0xc45/0x1130
 crypto_rng_reset+0x7a/0x110
 alg_setkey+0x138/0x190
 alg_setsockopt+0x3da/0x4a0
 do_sock_setsockopt+0x17c/0x1b0
 __x64_sys_setsockopt+0x13f/0x1b0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb6d678ebe9
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:00007fb6d75d9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007fb6d69c5fa0 RCX: 00007fb6d678ebe9
RDX: 0000000000000001 RSI: 0000000000000117 RDI: 0000000000000006
RBP: 00007fb6d6811e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb6d69c6038 R14: 00007fb6d69c5fa0 R15: 00007ffcc91d4858
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888106b9fc00 pfn:0x106b9c
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: ffff888106b9fc00 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5847, tgid 5847 (syz-executor), ts 176480123513, free_ts 183198243113
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x8a/0x370
 ___slab_alloc+0xbeb/0x1420
 __kmalloc_noprof+0x305/0x4f0
 tomoyo_realpath_from_path+0xe3/0x5d0
 tomoyo_path_perm+0x213/0x4b0
 tomoyo_path_unlink+0xa2/0xe0
 security_path_unlink+0x167/0x360
 do_unlinkat+0x2c1/0x560
 __x64_sys_unlink+0x47/0x50
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 11433 tgid 11423 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 __slab_free+0x303/0x3c0
 qlist_free_all+0x97/0x140
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 kmem_cache_alloc_noprof+0x1c1/0x3c0
 getname_flags+0xb8/0x540
 do_sys_openat2+0xbc/0x1c0
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff888106b9cb00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff888106b9cb80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888106b9cc00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                                     ^
 ffff888106b9cc80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff888106b9cd00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
