diff options
author | Dominique Martinet <[email protected]> | 2018-09-20 12:22:35 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2018-09-20 22:01:11 +0200 |
commit | a1b3d2f217cf51505858c5c160abef96c3e91721 (patch) | |
tree | 4e41b3280c26a589250f81abd8b4368491c7f459 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 889c695d419f19e5db52592dafbaf26143c36d1f (diff) |
fs/proc/kcore.c: fix invalid memory access in multi-page read optimization
The 'm' kcore_list item could point to kclist_head, and it is incorrect to
look at m->addr / m->size in this case.
There is no choice but to run through the list of entries for every
address if we did not find any entry in the previous iteration
Reset 'm' to NULL in that case at Omar Sandoval's suggestion.
[[email protected]: add comment]
Link: http://lkml.kernel.org/r/[email protected]
Fixes: bf991c2231117 ("proc/kcore: optimize multiple page reads")
Signed-off-by: Dominique Martinet <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Omar Sandoval <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: Eric Biederman <[email protected]>
Cc: James Morse <[email protected]>
Cc: Bhupesh Sharma <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions