diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2018-10-21 02:09:25 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-10-21 08:13:32 +0200 |
commit | 4b5defdec398491c5b301a6255cdf468eedfb228 (patch) | |
tree | 7dc1384f099dc3740d7af361787254cd5c29acdd /drivers/block/paride/pt.c | |
parent | bpf, verifier: fix register type dump in xadd and st (diff) | |
download | linux-4b5defdec398491c5b301a6255cdf468eedfb228.tar.xz linux-4b5defdec398491c5b301a6255cdf468eedfb228.zip |
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 f37a8cb84cce ("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>
Diffstat (limited to 'drivers/block/paride/pt.c')
0 files changed, 0 insertions, 0 deletions