diff options
author | Wang Nan <[email protected]> | 2016-05-23 07:13:39 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-05-23 18:22:46 -0300 |
commit | 2d11c65071d489e20b3a811167507939dd8c2eac (patch) | |
tree | 48068295866612fb8c24d4adedf3fe1d284bd493 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 65aea2338765da1a58cc26eeb84d72308492ecb5 (diff) |
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 <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Zefan Li <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: He Kuang <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions