commit | 0d004c020b5574e51f7a525e57d2a11958b334b5 | [log] [tgz] |
---|---|---|
author | Lorenz Bauer <lmb@cloudflare.com> | Mon Sep 21 13:12:18 2020 +0100 |
committer | Alexei Starovoitov <ast@kernel.org> | Mon Sep 21 15:00:40 2020 -0700 |
tree | af1c170427677e73f706402346add1c61f3046a9 | |
parent | 2af30f115d6957f372ce3096c7198763ff253d97 [diff] |
bpf: Check scalar or invalid register in check_helper_mem_access Move the check for a NULL or zero register to check_helper_mem_access. This makes check_stack_boundary easier to understand. Signed-off-by: Lorenz Bauer <lmb@cloudflare.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200921121227.255763-3-lmb@cloudflare.com