[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130211155701.e7968e64.akpm@linux-foundation.org>
Date: Mon, 11 Feb 2013 15:57:01 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: ebiederm@...ssion.com (Eric W. Biederman)
Cc: Josh Boyer <jwboyer@...hat.com>, Al Viro <viro@...iv.linux.org.uk>,
Mel Gorman <mgorman@...e.de>, linux-kernel@...r.kernel.org
Subject: Re: Odd ENOMEM being returned in 3.8-rcX
On Fri, 08 Feb 2013 12:13:09 -0800
ebiederm@...ssion.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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists