Re: [PATCH v5 3.1.0-rc4-tip 1/26] uprobes: Auxillary routines toinsert, find, delete uprobes

From: Stefan Hajnoczi
Date: Tue Sep 20 2011 - 11:43:07 EST


On Tue, Sep 20, 2011 at 05:29:49PM +0530, Srikar Dronamraju wrote:
> +static void delete_uprobe(struct uprobe *uprobe)
> +{
> + unsigned long flags;
> +
> + spin_lock_irqsave(&uprobes_treelock, flags);
> + rb_erase(&uprobe->rb_node, &uprobes_tree);
> + spin_unlock_irqrestore(&uprobes_treelock, flags);
> + put_uprobe(uprobe);
> + iput(uprobe->inode);

Use-after-free when put_uprobe() kfrees() the uprobe?

Stefan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/