diff options
author | 2021-04-19 18:23:34 -0700 | |
---|---|---|
committer | 2021-04-19 18:23:34 -0700 | |
commit | 69443c47305e541f5bf8b5a26f442c0c7f34cafe (patch) | |
tree | 0a40b8c3beeb6f735fc54e932bdd5a85ad8ec3d8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | samples/bpf: Fix broken tracex1 due to kprobe argument change (diff) | |
parent | bpf/selftests: Add bpf_get_task_stack retval bounds test_prog (diff) | |
download | wireguard-linux-69443c47305e541f5bf8b5a26f442c0c7f34cafe.tar.xz wireguard-linux-69443c47305e541f5bf8b5a26f442c0c7f34cafe.zip |
Merge branch 'bpf: refine retval for bpf_get_task_stack helper'
Dave Marchevsky says:
====================
Similarly to the bpf_get_stack helper, bpf_get_task_stack's return value
can be more tightly bound by the verifier - it's the number of bytes
written to a user-supplied buffer, or a negative error value. Currently
the verifier believes bpf_task_get_stack's retval bounds to be unknown,
requiring extraneous bounds checking to remedy.
Adding it to do_refine_retval_range fixes the issue, as evidenced by
new selftests which fail to load if retval bounds are not refined.
v2: Addressed comment nit in patch 3
====================
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