diff options
author | 2015-07-21 15:40:31 +0200 | |
---|---|---|
committer | 2015-07-31 10:38:06 +0200 | |
commit | f58bea2fec63db72f8050ade709358257e9102ab (patch) | |
tree | 1df4b2f3221a1a390282e2dfe6b752da611fb7a8 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | uprobes/x86: Make arch_uretprobe_is_alive(RP_CHECK_CALL) more clever (diff) | |
download | wireguard-linux-f58bea2fec63db72f8050ade709358257e9102ab.tar.xz wireguard-linux-f58bea2fec63db72f8050ade709358257e9102ab.zip |
uprobes: Fix the usage of install_special_mapping()
install_special_mapping(pages) expects that "pages" is the zero-
terminated array while xol_add_vma() passes &area->page, this
means that special_mapping_fault() can wrongly use the next
member in xol_area (vaddr) as "struct page *".
Fortunately, this area is not expandable so pgoff != 0 isn't
possible (modulo bugs in special_mapping_vmops), but still this
does not look good.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Pratyush Anand <panand@redhat.com>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20150721134031.GA4789@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions