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

From: Michael Kerrisk (man-pages)
Date: Tue Apr 24 2012 - 17:41:35 EST


On Wed, Apr 25, 2012 at 9:38 AM, KOSAKI Motohiro
<kosaki.motohiro@xxxxxxxxx> wrote:
> On Tue, Apr 24, 2012 at 4:27 PM, Kees Cook <keescook@xxxxxxxxxxxx> wrote:
>> 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>
>
> Acked-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>

Acked-by: Michael Kerrisk <mtk.manpages@xxxxxxxxx>

--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
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/