summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2022-12-07 23:41:40 +0300
committerAlexei Starovoitov <ast@kernel.org>2022-12-09 05:39:28 +0300
commit76d16077bef0954528ec3896710f9eda8b2b4db1 (patch)
treef99d754b4bb61f95c24dbc7c3026e2fa2727f742 /tools/perf/scripts/python/syscall-counts.py
parentf6ee298fa140f6b5bae3acf6d6108741278bcced (diff)
downloadlinux-76d16077bef0954528ec3896710f9eda8b2b4db1.tar.xz
bpf: Use memmove for bpf_dynptr_{read,write}
It may happen that destination buffer memory overlaps with memory dynptr points to. Hence, we must use memmove to correctly copy from dynptr to destination buffer, or source buffer to dynptr. This actually isn't a problem right now, as memcpy implementation falls back to memmove on detecting overlap and warns about it, but we shouldn't be relying on that. Acked-by: Joanne Koong <joannelkoong@gmail.com> Acked-by: David Vernet <void@manifault.com> Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20221207204141.308952-7-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions