summaryrefslogtreecommitdiffstats
path: root/tools/perf/config
diff options
context:
space:
mode:
authorWang Nan <wangnan0@huawei.com>2016-05-23 07:13:39 +0000
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-05-23 18:22:46 -0300
commit2d11c65071d489e20b3a811167507939dd8c2eac (patch)
tree48068295866612fb8c24d4adedf3fe1d284bd493 /tools/perf/config
parent65aea2338765da1a58cc26eeb84d72308492ecb5 (diff)
downloadop-kernel-dev-2d11c65071d489e20b3a811167507939dd8c2eac.zip
op-kernel-dev-2d11c65071d489e20b3a811167507939dd8c2eac.tar.gz
perf record: Prevent reading invalid data in record__mmap_read
When record__mmap_read() requires data more than the size of ring buffer, drop those data to avoid accessing invalid memory. This can happen when reading from overwritable ring buffer, which should be avoided. However, check this for robustness. Signed-off-by: Wang Nan <wangnan0@huawei.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Zefan Li <lizefan@huawei.com> Cc: pi3orama@163.com Link: http://lkml.kernel.org/r/1463987628-163563-3-git-send-email-wangnan0@huawei.com Signed-off-by: He Kuang <hekuang@huawei.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/config')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud