summaryrefslogtreecommitdiff
path: root/include/linux/bpf.h
diff options
context:
space:
mode:
authorAnay Wadhera <awadhera@berkeley.edu>2021-05-20 21:56:43 -0700
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:49:44 +0300
commitfbd2037fcf5dd7b668cce94a91b20b2b4af19f93 (patch)
tree3d346de805297a061d03793259dba58f505f49e3 /include/linux/bpf.h
parent980add4490a19cbf5b73938a2b52278bf3ba8266 (diff)
Revert "bpf: prevent out-of-bounds speculation"
This reverts commit 9a7fad4c0e215fb1c256fee27c45f9f8bc4364c5. Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'include/linux/bpf.h')
-rw-r--r--include/linux/bpf.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h
index f2157159b26f..4f6d29c8e3d8 100644
--- a/include/linux/bpf.h
+++ b/include/linux/bpf.h
@@ -37,7 +37,6 @@ struct bpf_map {
u32 value_size;
u32 max_entries;
u32 pages;
- bool unpriv_array;
struct user_struct *user;
const struct bpf_map_ops *ops;
struct work_struct work;
@@ -142,7 +141,6 @@ struct bpf_prog_aux {
struct bpf_array {
struct bpf_map map;
u32 elem_size;
- u32 index_mask;
/* 'ownership' of prog_array is claimed by the first program that
* is going to use this map or by the first program which FD is stored
* in the map to make sure that all callers and callees have the same