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

From: KOSAKI Motohiro
Date: Tue Apr 24 2012 - 17:38:36 EST


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