bpf: Save PTR_TO_BTF_ID register state when spilling to stack
authorMartin KaFai Lau <kafai@fb.com>
Thu, 9 Jan 2020 00:34:54 +0000 (16:34 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 9 Jan 2020 16:45:32 +0000 (08:45 -0800)
commit65726b5b7efae718391752ae8bb85b9843fd83f4
tree4e07d0e4334e550a892f4a05dc89fc1706329aa5
parente43002242a47e8d7b2f9446f54de982f09e7dbd1
bpf: Save PTR_TO_BTF_ID register state when spilling to stack

This patch makes the verifier save the PTR_TO_BTF_ID register state when
spilling to the stack.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200109003454.3854870-1-kafai@fb.com
kernel/bpf/verifier.c