==================================================================
BUG: KASAN: use-after-free in xfrm_state_find+0x2cf2/0x5400
Read of size 1 at addr ffff8880236d9e30 by task syz.9.6792/22777

CPU: 1 UID: 0 PID: 22777 Comm: syz.9.6792 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
 tcp_v4_connect+0x846/0x1a00
 __inet_stream_connect+0x2ae/0xe80
 inet_stream_connect+0x66/0xa0
 __sys_connect+0x316/0x440
 __x64_sys_connect+0x7a/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2cff18eba9
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:00007f2d000f3038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f2cff3d5fa0 RCX: 00007f2cff18eba9
RDX: 0000000000000010 RSI: 0000200000000140 RDI: 0000000000000003
RBP: 00007f2cff211e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2cff3d6038 R14: 00007f2cff3d5fa0 R15: 00007ffff80b76e8
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffffffffffffffff pfn:0x236d9
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 0000000000000000 00000000ffffffff 0000000000000000
raw: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 2, migratetype Unmovable, gfp_mask 0x140dc0(GFP_USER|__GFP_ZERO|__GFP_COMP), pid 5908, tgid 5908 (kworker/0:5), ts 674366929625, free_ts 675939932893
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 ___kmalloc_large_node+0x5f/0x1b0
 __kmalloc_large_noprof+0x1a/0x90
 usbhid_probe+0xc22/0x12a0
 usb_probe_interface+0x668/0xc30
 really_probe+0x26d/0x9e0
 __driver_probe_device+0x18c/0x2f0
 driver_probe_device+0x4f/0x430
 __device_attach_driver+0x2ce/0x530
 bus_for_each_drv+0x251/0x2e0
 __device_attach+0x2b8/0x400
 bus_probe_device+0x185/0x260
 device_add+0x7b6/0xb50
page last free pid 5908 tgid 5908 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 free_large_kmalloc+0x13a/0x1f0
 usbhid_probe+0xe39/0x12a0
 usb_probe_interface+0x668/0xc30
 really_probe+0x26d/0x9e0
 __driver_probe_device+0x18c/0x2f0
 driver_probe_device+0x4f/0x430
 __device_attach_driver+0x2ce/0x530
 bus_for_each_drv+0x251/0x2e0
 __device_attach+0x2b8/0x400
 bus_probe_device+0x185/0x260
 device_add+0x7b6/0xb50
 usb_set_configuration+0x1a87/0x20e0
 usb_generic_driver_probe+0x8d/0x150
 usb_probe_device+0x1c4/0x390
 really_probe+0x26d/0x9e0

Memory state around the buggy address:
 ffff8880236d9d00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff8880236d9d80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff8880236d9e00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                                     ^
 ffff8880236d9e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff8880236d9f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
