]> git.baikalelectronics.ru Git - kernel.git/commit
uprobes: Fix the wrong usage of current->utask in uprobe_copy_process()
authorOleg Nesterov <oleg@redhat.com>
Fri, 8 Nov 2013 15:35:55 +0000 (16:35 +0100)
committerOleg Nesterov <oleg@redhat.com>
Sat, 9 Nov 2013 16:05:41 +0000 (17:05 +0100)
commit97cf64a1539cffadc017ea9942ff013b848a30af
tree3e17749985872ef3187a2f5d3bb17cf7a8dd84a2
parent70bbccb9078148bf92522992e6cf48488a195905
uprobes: Fix the wrong usage of current->utask in uprobe_copy_process()

Commit 3927f5f5ea85 "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: Oleg Nesterov <oleg@redhat.com>
kernel/events/uprobes.c