lkml.org 
[lkml]   [2012]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH -mm] c/r: prctl: Return -EFAULT instead of -EINVAL in case if underlied VMA is not found
On Wed, Apr 25, 2012 at 9:38 AM, KOSAKI Motohiro
<kosaki.motohiro@gmail.com> wrote:
> On Tue, Apr 24, 2012 at 4:27 PM, Kees Cook <keescook@chromium.org> wrote:
>> On Tue, Apr 24, 2012 at 1:08 PM, Cyrill Gorcunov <gorcunov@openvz.org> 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@gmail.com>
>>> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
>>
>> Acked-by: Kees Cook <keescook@chromium.org>
>
> Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>

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

--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/


\
 
 \ /
  Last update: 2012-04-24 23:45    [W:0.053 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site