Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754858AbYHKAWg (ORCPT ); Sun, 10 Aug 2008 20:22:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752703AbYHKAW2 (ORCPT ); Sun, 10 Aug 2008 20:22:28 -0400 Received: from mx1.redhat.com ([66.187.233.31]:50557 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752262AbYHKAW1 (ORCPT ); Sun, 10 Aug 2008 20:22:27 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20080810113044.19143b0a@worthy.swandive.local> References: <20080810113044.19143b0a@worthy.swandive.local> <1218322518.3268.0.camel@luna.unix.geek.nz> <1218287473.3155.13.camel@dhcppc0> <1218281190.3155.5.camel@dhcppc0> <1218214935.3146.5.camel@dhcppc0> <14476.1218286327@redhat.com> <15386.1218290826@redhat.com> <10251.1218361539@redhat.com> To: Grant Wilson Cc: dhowells@redhat.com, Jasper Bryant-Greene , Thomas Meyer , James Morris , Linux-Kernel , Linux-Next Subject: Re: next-20080808: bash: fork: Resource temporarily unavailable X-Mailer: MH-E 8.0.3+cvs; nmh 1.3; GNU Emacs 23.0.50 Date: Mon, 11 Aug 2008 01:21:10 +0100 Message-ID: <22475.1218414070@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1250 Lines: 42 Grant Wilson 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 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 --- 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; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/