Re: [PATCH -mm] c/r: prctl: Return -EFAULT instead of -EINVAL in caseif underlied VMA is not found

From: Kees Cook
Date: Tue Apr 24 2012 - 16:27:20 EST


On Tue, Apr 24, 2012 at 1:08 PM, Cyrill Gorcunov <gorcunov@xxxxxxxxxx> wrote:
> In case if underlied VMA is not found prctl_set_mm will return -EINVAL,
> but Michael proposed to return -EFAULT and Kosaki seconded.
> Make it so.
>
> Reported-by: "Michael Kerrisk (man-pages)" <mtk.manpages@xxxxxxxxx>
> Signed-off-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx>

Acked-by: Kees Cook <keescook@xxxxxxxxxxxx>

-Kees

--
Kees Cook
Chrome OS Security
--
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/