https://github.com/torvalds/linux
Revision 04ec93fe9bc98e3bd8560f79f56fed66dfae40d5 authored by Li Zefan on 06 February 2009, 08:17:19 UTC, committed by Linus Torvalds on 06 February 2009, 16:43:11 UTC
I happened to forked lots of processes, and hit NULL pointer dereference.
It is because in copy_process() after checking max_threads, 0 is returned
but not -EAGAIN.

The bug is introduced by "CRED: Detach the credentials from task_struct"
(commit f1752eec6145c97163dbce62d17cf5d928e28a27).

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b2a740a
History
Tip revision: 04ec93fe9bc98e3bd8560f79f56fed66dfae40d5 authored by Li Zefan on 06 February 2009, 08:17:19 UTC
fork.c: fix NULL pointer dereference when nr_threads == threads-max
Tip revision: 04ec93f
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.3 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 106.5 KB
Makefile -rw-r--r-- 53.2 KB
README -rw-r--r-- 16.7 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top