aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2019-01-03 00:58:31 +0100
committerAlexei Starovoitov <[email protected]>2019-01-02 16:01:24 -0800
commite4298d25830a866cc0f427d4bccb858e76715859 (patch)
treea3915815e64315b9c2b16cb78783a7a821597270 /tools/perf/scripts/python/export-to-postgresql.py
parent0d6303db7970e6f56ae700fa07e11eb510cda125 (diff)
bpf: restrict stack pointer arithmetic for unprivileged
Restrict stack pointer arithmetic for unprivileged users in that arithmetic itself must not go out of bounds as opposed to the actual access later on. Therefore after each adjust_ptr_min_max_vals() with a stack pointer as a destination we simulate a check_stack_access() of 1 byte on the destination and once that fails the program is rejected for unprivileged program loads. This is analog to map value pointer arithmetic and needed for masking later on. Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions