diff options
author | 2018-01-25 16:14:05 -0800 | |
---|---|---|
committer | 2018-01-25 16:41:13 -0800 | |
commit | 2585cd62f0986a6e6d9c83363ed6dbcc66bc9f32 (patch) | |
tree | c253c21199292459117b3e72e0a98701bab5c9fe /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf, doc: Correct one wrong value in "Register value tracking" (diff) | |
download | linux-dev-2585cd62f0986a6e6d9c83363ed6dbcc66bc9f32.tar.xz linux-dev-2585cd62f0986a6e6d9c83363ed6dbcc66bc9f32.zip |
bpf: Only reply field should be writeable
Currently, a sock_ops BPF program can write the op field and all the
reply fields (reply and replylong). This is a bug. The op field should
not have been writeable and there is currently no way to use replylong
field for indices >= 1. This patch enforces that only the reply field
(which equals replylong[0]) is writeable.
Fixes: 40304b2a1567 ("bpf: BPF support for sock_ops")
Signed-off-by: Lawrence Brakmo <brakmo@fb.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions