summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJoanne Koong <joannelkoong@gmail.com>2022-08-10 00:40:54 +0300
committerAlexei Starovoitov <ast@kernel.org>2022-08-10 04:38:12 +0300
commit883743422ced8c961ab05dc63ec81b75a4e56052 (patch)
treeee15ff76a8631132a43ed543c75a373e07aa23db /tools/perf/scripts/python/exported-sql-viewer.py
parenta7be0ab1eb1949f3564739784b4360e1233305f6 (diff)
downloadlinux-883743422ced8c961ab05dc63ec81b75a4e56052.tar.xz
bpf: Fix ref_obj_id for dynptr data slices in verifier
When a data slice is obtained from a dynptr (through the bpf_dynptr_data API), the ref obj id of the dynptr must be found and then associated with the data slice. The ref obj id of the dynptr must be found *before* the caller saved regs are reset. Without this fix, the ref obj id tracking is not correct for dynptrs that are at an offset from the frame pointer. Please also note that the data slice's ref obj id must be assigned after the ret types are parsed, since RET_PTR_TO_ALLOC_MEM-type return regs get zero-marked. Fixes: 34d4ef5775f7 ("bpf: Add dynptr data slices") Signed-off-by: Joanne Koong <joannelkoong@gmail.com> Acked-by: David Vernet <void@manifault.com> Link: https://lore.kernel.org/r/20220809214055.4050604-1-joannelkoong@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions