Skip to content
Commit 70d7f987 authored by Oleg Nesterov's avatar Oleg Nesterov
Browse files

uprobes: Fix the wrong usage of current->utask in uprobe_copy_process()

Commit aa59c53f

 "uprobes: Change uprobe_copy_process() to dup
xol_area" has a stupid typo, we need to setup t->utask->vaddr but
the code wrongly uses current->utask.

Even with this bug dup_xol_work() works "in practice", but only
because get_unmapped_area(NULL, TASK_SIZE - PAGE_SIZE) likely
returns the same address every time.

Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
parent f72d41fa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment