Re: [PATCH 3/5] uprobes: Teach __create_xol_area() to accept thepredefined vaddr

From: Srikar Dronamraju
Date: Wed Oct 16 2013 - 08:43:24 EST


* Oleg Nesterov <oleg@xxxxxxxxxx> [2013-10-13 21:18:38]:

> Currently xol_add_vma() uses get_unmapped_area() for area->vaddr,
> but the next patches need to use the fixed address. So this patch
> adds the new "vaddr" argument to __create_xol_area() which should
> be used as area->vaddr if it is nonzero.
>
> xol_add_vma() doesn't bother to verify that the predefined addr is
> not used, insert_vm_struct() should fail if find_vma_links() detects
> the overlap with the existing vma.
>
> Also, __create_xol_area() doesn't need __GFP_ZERO to allocate area.
>
> Cc: stable@xxxxxxxxxxxxxxx # 3.9+
> Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>

Acked-by: Srikar Dronamraju <srikar@xxxxxxxxxxxxxxxxxx>

--
Thanks and Regards
Srikar Dronamraju

--
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/