uprobes: Do not play with utask in xol_get_insn_slot()
authorOleg Nesterov <oleg@redhat.com>
Mon, 31 Dec 2012 17:00:06 +0000 (18:00 +0100)
committerOleg Nesterov <oleg@redhat.com>
Fri, 8 Feb 2013 16:47:12 +0000 (17:47 +0100)
commita6cb3f6d51253e9cf21a38b17c025018117809d7
treef0ffafefd93cb97f550b0149b14e56a68c778576
parent5a2df662aafdabffb2cf3adb780a5adf66dfb3bc
uprobes: Do not play with utask in xol_get_insn_slot()

pre_ssout()->xol_get_insn_slot() path is confusing and buggy. This patch
cleanups the code, the next one fixes the bug.

Change xol_get_insn_slot() to only allocate the slot and do nothing more,
move the initialization of utask->xol_vaddr/vaddr into pre_ssout().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Anton Arapov <anton@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
kernel/events/uprobes.c