lkml.org 
[lkml]   [2008]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: next-20080808: bash: fork: Resource temporarily unavailable
Date
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;
}


\
 
 \ /
  Last update: 2008-08-11 02:25    [W:0.091 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site