xt_bpf: check failed: parse error
==================================================================
BUG: KASAN: stack-out-of-bounds in nft_ct_get_eval+0x100d/0x15c0
Write of size 16 at addr ffffc9000346732c by task syz.2.8149/32167

CPU: 0 UID: 0 PID: 32167 Comm: syz.2.8149 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
 kasan_check_range+0x2b0/0x2c0
 __asan_memcpy+0x40/0x70
 nft_ct_get_eval+0x100d/0x15c0
 nft_do_chain+0x40c/0x1920
 nft_do_chain_ipv4+0x154/0x210
 nf_hook_slow+0xc5/0x220
 NF_HOOK+0x206/0x3a0
 __netif_receive_skb+0x143/0x380
 netif_receive_skb+0x1bb/0x750
 tun_rx_batched+0x1b9/0x730
 tun_get_user+0x2aa3/0x3dc0
 tun_chr_write_iter+0x113/0x200
 vfs_write+0x5c9/0xb30
 ksys_write+0x145/0x250
 do_syscall_64+0xfa/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f02ee78f7c9
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:00007f02ef5e2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f02ee9e5fa0 RCX: 00007f02ee78f7c9
RDX: 000000000000fd6c RSI: 0000200000000280 RDI: 000000000000000c
RBP: 00007f02ee7f297f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f02ee9e6038 R14: 00007f02ee9e5fa0 R15: 00007ffdf3f262f8
 </TASK>

The buggy address belongs to stack of task syz.2.8149/32167
 and is located at offset 108 in frame:
 nft_do_chain+0x0/0x1920

This frame has 3 objects:
 [32, 112) 'regs'
 [144, 272) 'jumpstack'
 [304, 320) 'info'

The buggy address belongs to a 8-page vmalloc region starting at 0xffffc90003460000 allocated at copy_process+0x4ea/0x3950
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffffffffffffffff pfn:0x111eaf
memcg:ffff88816c223682
flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
raw: 017ff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: ffffffffffffffff 0000000000000000 00000001ffffffff ffff88816c223682
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_ZERO|__GFP_NOWARN), pid 32159, tgid 32159 (syz.2.8148), ts 668073276042, free_ts 668016678937
 post_alloc_hook+0x234/0x290
 get_page_from_freelist+0x2365/0x2440
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 alloc_pages_noprof+0xa9/0x190
 __vmalloc_node_range_noprof+0x96c/0x12d0
 __vmalloc_node_noprof+0xc2/0x110
 dup_task_struct+0x3c4/0x7b0
 copy_process+0x4ea/0x3950
 kernel_clone+0x21e/0x820
 __se_sys_clone3+0x256/0x2d0
 do_syscall_64+0xfa/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 15 tgid 15 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 tlb_remove_table_rcu+0x85/0x100
 rcu_core+0xd70/0x1870
 handle_softirqs+0x27d/0x850
 run_ksoftirqd+0x9b/0x100
 smpboot_thread_fn+0x542/0xa60
 kthread+0x711/0x8a0
 ret_from_fork+0x599/0xb30
 ret_from_fork_asm+0x1a/0x30

Memory state around the buggy address:
 ffffc90003467200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffffc90003467280: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00
>ffffc90003467300: 00 00 00 00 00 00 f2 f2 f2 f2 00 00 00 00 00 00
                                     ^
 ffffc90003467380: 00 00 00 00 00 00 00 00 00 00 f2 f2 f2 f2 00 00
 ffffc90003467400: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
