summaryrefslogtreecommitdiffstats
path: root/kernel/crash_dump.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2012-09-16 19:07:41 +0200
committerOleg Nesterov <oleg@redhat.com>2012-09-29 21:21:53 +0200
commit78a320542e6cdb2800cd736b2d136e4261d34f43 (patch)
treeeb55bec46370f7890fdec4c44450e52aba043885 /kernel/crash_dump.c
parent75ed82ea53bd0d2d8083261123576250f7ba851e (diff)
downloadop-kernel-dev-78a320542e6cdb2800cd736b2d136e4261d34f43.zip
op-kernel-dev-78a320542e6cdb2800cd736b2d136e4261d34f43.tar.gz
uprobes: Change valid_vma() to demand VM_MAYEXEC rather than VM_EXEC
uprobe_register() or uprobe_mmap() requires VM_READ | VM_EXEC, this is not right. An apllication can do mprotect(PROT_EXEC) later and execute this code. Change valid_vma(is_register => true) to check VM_MAYEXEC instead. No need to check VM_MAYREAD, it is always set. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/crash_dump.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud