Re: [PATCH 5/7] uprobes: Fix utask->xol_vaddr leak in pre_ssout()

2013-01-10 Thread Srikar Dronamraju
> > > utask->vaddr = bp_vaddr; > > > > > > - return arch_uprobe_pre_xol(&uprobe->arch, regs); > > > + err = arch_uprobe_pre_xol(&uprobe->arch, regs); > > > + if (unlikely(err)) { > > > + xol_free_insn_slot(current); > > > + return err; > > > + } > > > + > > > + return 0; > > > }

Re: [PATCH 5/7] uprobes: Fix utask->xol_vaddr leak in pre_ssout()

2013-01-08 Thread Oleg Nesterov
On 01/08, Srikar Dronamraju wrote: > > * Oleg Nesterov [2012-12-31 18:52:26]: > > > pre_ssout() should do xol_free_insn_slot() if arch_uprobe_pre_xol() > > fails, otherwise nobody will free the allocated slot. > > > > Signed-off-by: Oleg Nesterov > > Acked-by: Srikar Dronamraju Thanks! > (one

Re: [PATCH 5/7] uprobes: Fix utask->xol_vaddr leak in pre_ssout()

2013-01-08 Thread Srikar Dronamraju
* Oleg Nesterov [2012-12-31 18:52:26]: > pre_ssout() should do xol_free_insn_slot() if arch_uprobe_pre_xol() > fails, otherwise nobody will free the allocated slot. > > Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju (one nit below) > --- > kernel/events/uprobes.c |9 -

[PATCH 5/7] uprobes: Fix utask->xol_vaddr leak in pre_ssout()

2012-12-31 Thread Oleg Nesterov
pre_ssout() should do xol_free_insn_slot() if arch_uprobe_pre_xol() fails, otherwise nobody will free the allocated slot. Signed-off-by: Oleg Nesterov --- kernel/events/uprobes.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/kernel/events/uprobes.c b/kernel/eve