diff options
author | 2019-07-15 09:39:52 -0700 | |
---|---|---|
committer | 2019-07-15 23:15:53 +0200 | |
commit | b43995469e5804636a55372e9bbb17ccb22441c5 (patch) | |
tree | 4839bae3945c253fc37e26c3f8490e538546766c /net/core | |
parent | samples/bpf: build with -D__TARGET_ARCH_$(SRCARCH) (diff) | |
download | linux-b43995469e5804636a55372e9bbb17ccb22441c5.tar.gz linux-b43995469e5804636a55372e9bbb17ccb22441c5.tar.bz2 linux-b43995469e5804636a55372e9bbb17ccb22441c5.zip |
bpf: rename bpf_ctx_wide_store_ok to bpf_ctx_wide_access_ok
Rename bpf_ctx_wide_store_ok to bpf_ctx_wide_access_ok to indicate
that it can be used for both loads and stores.
Cc: Yonghong Song <yhs@fb.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/filter.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/core/filter.c b/net/core/filter.c index 47f6386fb17a..c5983ddb1a9f 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -6890,14 +6890,14 @@ static bool sock_addr_is_valid_access(int off, int size, if (!bpf_ctx_narrow_access_ok(off, size, size_default)) return false; } else { - if (bpf_ctx_wide_store_ok(off, size, - struct bpf_sock_addr, - user_ip6)) + if (bpf_ctx_wide_access_ok(off, size, + struct bpf_sock_addr, + user_ip6)) return true; - if (bpf_ctx_wide_store_ok(off, size, - struct bpf_sock_addr, - msg_src_ip6)) + if (bpf_ctx_wide_access_ok(off, size, + struct bpf_sock_addr, + msg_src_ip6)) return true; if (size != size_default) |