From: David Howells <dhowells@redhat.com>
To: Grant Wilson <grant.wilson@zen.co.uk>
Cc: dhowells@redhat.com, Jasper Bryant-Greene <jasper@amiton.co.nz>,
Thomas Meyer <thomas@m3y3r.de>, James Morris <jmorris@namei.org>,
Linux-Kernel <linux-kernel@vger.kernel.org>,
Linux-Next <linux-next@vger.kernel.org>
Subject: Re: next-20080808: bash: fork: Resource temporarily unavailable
Date: Mon, 11 Aug 2008 01:21:10 +0100 [thread overview]
Message-ID: <22475.1218414070@redhat.com> (raw)
In-Reply-To: <20080810113044.19143b0a@worthy.swandive.local>
Grant Wilson <grant.wilson@zen.co.uk> wrote:
> [ 223.039938] Rlimit EAGAIN (-1 >= 16375, uid 1000)
> [ 223.044744] copy_process() = -11
> [ 226.660319] Rlimit EAGAIN (-1 >= 16375, uid 1000)
> [ 226.664166] copy_process() = -11
Can you try the attached patch please?
David
---
CRED: Inc the user processes count on cred share return from copy_creds()
From: David Howells <dhowells@redhat.com>
Increment the user processes count in the case where copy_creds() returns after
sharing the parent's credentials instead of allocating new ones.
Signed-off-by: David Howells <dhowells@redhat.com>
---
kernel/cred.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/kernel/cred.c b/kernel/cred.c
index f89c5e5..056ec90 100644
--- a/kernel/cred.c
+++ b/kernel/cred.c
@@ -299,6 +299,7 @@ int copy_creds(struct task_struct *p, unsigned long clone_flags)
#endif
p->real_cred = get_cred(p->cred);
get_cred(p->cred);
+ atomic_inc(&p->cred->user->processes);
return 0;
}
next prev parent reply other threads:[~2008-08-11 0:22 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-08 17:02 next-20080808: bash: fork: Resource temporarily unavailable Thomas Meyer
2008-08-08 17:21 ` Adrian Bunk
2008-08-08 21:48 ` James Morris
2008-08-09 11:26 ` Thomas Meyer
2008-08-09 12:52 ` David Howells
2008-08-09 13:11 ` Thomas Meyer
2008-08-09 14:07 ` David Howells
2008-08-09 22:55 ` Jasper Bryant-Greene
2008-08-10 9:45 ` David Howells
2008-08-10 10:30 ` Grant Wilson
2008-08-10 11:31 ` David Howells
2008-08-11 0:26 ` James Morris
2008-08-11 0:21 ` David Howells [this message]
2008-08-11 0:44 ` James Morris
2008-08-08 22:32 ` David Howells
2008-08-08 22:48 ` James Morris
2008-08-08 23:23 ` David Howells
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=22475.1218414070@redhat.com \
--to=dhowells@redhat.com \
--cc=grant.wilson@zen.co.uk \
--cc=jasper@amiton.co.nz \
--cc=jmorris@namei.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=thomas@m3y3r.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).