diff options
| author | Martin KaFai Lau <[email protected]> | 2020-01-08 16:34:54 -0800 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-01-09 08:45:32 -0800 |
| commit | 65726b5b7efae718391752ae8bb85b9843fd83f4 (patch) | |
| tree | 4e07d0e4334e550a892f4a05dc89fc1706329aa5 /kernel | |
| parent | e43002242a47e8d7b2f9446f54de982f09e7dbd1 (diff) | |
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 <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/bpf/verifier.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 6f63ae7a370c..d433d70022fd 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -1916,6 +1916,7 @@ static bool is_spillable_regtype(enum bpf_reg_type type) case PTR_TO_TCP_SOCK: case PTR_TO_TCP_SOCK_OR_NULL: case PTR_TO_XDP_SOCK: + case PTR_TO_BTF_ID: return true; default: return false; |