https://github.com/torvalds/linux
Revision 06fed33849c13af637c4d09e9ba27828fac9edd5 authored by Paul Jackson on 15 February 2006, 23:17:38 UTC, committed by Linus Torvalds on 15 February 2006, 23:32:21 UTC
Fix a latent bug in cpuset_exit() handling.  If a task tried to allocate
memory after calling cpuset_exit(), it oops'd in
cpuset_update_task_memory_state() on a NULL cpuset pointer.

So set the exiting tasks cpuset to the root cpuset instead of to NULL.

A distro kernel hit this with an added kernel package that had just such a
hook (allocating memory) in the exit code path.

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 651c29a
History
Tip revision: 06fed33849c13af637c4d09e9ba27828fac9edd5 authored by Paul Jackson on 15 February 2006, 23:17:38 UTC
[PATCH] cpuset: oops in exit on null cpuset fix
Tip revision: 06fed33
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 424 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.5 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 66.3 KB
Makefile -rw-r--r-- 43.8 KB
README -rw-r--r-- 15.1 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top