lkml.org 
[lkml]   [2013]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Odd ENOMEM being returned in 3.8-rcX
    On Fri, 08 Feb 2013 12:13:09 -0800
    ebiederm@xmission.com (Eric W. Biederman) wrote:

    > If mock has called unshare(CLONE_NEWPID). And then forked a process and
    > that process exited, and then forked anothe process that second and all
    > subsequent fork calls will fail with -ENOMEM (because init has exited in
    > the pid namespace). -ENOMEM will be generated because of a failure of
    > alloc_pid.

    Can we please fix this? The system is *not* out of memory and it's
    wildly misleading to report this to userspace.

    If alloc_pid() can fail for multiple reasons then it should be
    returning an ERR_PTR on failure, not NULL.



    \
     
     \ /
      Last update: 2013-02-12 01:41    [W:4.067 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site