Daniel Borkmann
4b5defdec3
bpf, verifier: reject xadd on flow key memory
...
We should not enable xadd operation for flow key memory if not
needed there anyway. There is no such issue as described in the
commit f37a8cb84c ("bpf: reject stores into ctx via st and xadd")
since there's no context rewriter for flow keys today, but it
also shouldn't become part of the user facing behavior to allow
for it. After patch:
0: (79) r7 = *(u64 *)(r1 +144)
1: (b7) r3 = 4096
2: (db) lock *(u64 *)(r7 +0) += r3
BPF_XADD stores into R7 flow_keys is not allowed
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2018-10-20 23:13:32 -07:00
..
arraymap.c
bpf: return EOPNOTSUPP when map lookup isn't supported
2018-10-09 21:52:20 -07:00
bpf_lru_list.c
bpf_lru_list.h
btf.c
bpf: btf: Fix a missing check bug
2018-10-09 21:42:51 -07:00
cgroup.c
bpf: add cg_skb_is_valid_access for BPF_PROG_TYPE_CGROUP_SKB
2018-10-19 13:49:34 -07:00
core.c
bpf: add queue and stack maps
2018-10-19 13:24:31 -07:00
cpumap.c
bpf: fix redirect to map under tail calls
2018-08-17 15:56:23 -07:00
devmap.c
bpf: fix redirect to map under tail calls
2018-08-17 15:56:23 -07:00
disasm.c
disasm.h
hashtab.c
bpf: add bpffs pretty print for percpu arraymap/hash/lru_hash
2018-08-30 14:03:53 +02:00
helpers.c
bpf: add queue and stack maps
2018-10-19 13:24:31 -07:00
inode.c
bpf: decouple btf from seq bpf fs dump and enable more maps
2018-08-13 00:52:45 +02:00
local_storage.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
2018-10-08 23:42:44 -07:00
lpm_trie.c
bpf: decouple btf from seq bpf fs dump and enable more maps
2018-08-13 00:52:45 +02:00
Makefile
bpf: add queue and stack maps
2018-10-19 13:24:31 -07:00
map_in_map.c
bpf: don't allow create maps of per-cpu cgroup local storages
2018-10-01 16:18:33 +02:00
map_in_map.h
offload.c
bpf: add verifier callback to get stack usage info for offloaded progs
2018-10-08 10:24:12 +02:00
percpu_freelist.c
percpu_freelist.h
queue_stack_maps.c
bpf: add queue and stack maps
2018-10-19 13:24:31 -07:00
reuseport_array.c
bpf: Introduce BPF_MAP_TYPE_REUSEPORT_SOCKARRAY
2018-08-11 01:58:46 +02:00
stackmap.c
bpf: rename stack trace map operations
2018-10-19 13:24:30 -07:00
syscall.c
bpf: remove unused variable
2018-10-19 13:52:38 -07:00
tnum.c
verifier.c
bpf, verifier: reject xadd on flow key memory
2018-10-20 23:13:32 -07:00
xskmap.c
bpf: return EOPNOTSUPP when map lookup isn't supported
2018-10-09 21:52:20 -07:00