lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <22475.1218414070@redhat.com>
Date:	Mon, 11 Aug 2008 01:21:10 +0100
From:	David Howells <dhowells@...hat.com>
To:	Grant Wilson <grant.wilson@....co.uk>
Cc:	dhowells@...hat.com, Jasper Bryant-Greene <jasper@...ton.co.nz>,
	Thomas Meyer <thomas@...3r.de>,
	James Morris <jmorris@...ei.org>,
	Linux-Kernel <linux-kernel@...r.kernel.org>,
	Linux-Next <linux-next@...r.kernel.org>
Subject: Re: next-20080808: bash: fork: Resource temporarily unavailable

Grant Wilson <grant.wilson@....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@...hat.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@...hat.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;
 	}
 
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ