Oleg Nesterov
24336eaeec
pids: introduce change_pid() helper
...
Based on Eric W. Biederman's idea.
Without tasklist_lock held task_session()/task_pgrp() can return NULL if the
caller races with setprgp()/setsid() which does detach_pid() + attach_pid().
This can happen even if task == current.
Intoduce the new helper, change_pid(), which should be used instead. This way
the caller always sees the special pid != NULL, either old or new.
Also change the prototype of attach_pid(), it always returns 0 and nobody
check the returned value.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-30 08:29:48 -07:00
..
acpi
asm-alpha
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-arm
pxafb: preliminary smart panel interface support
2008-04-30 08:29:32 -07:00
asm-avr32
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-blackfin
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-cris
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-frv
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-generic
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-h8300
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-ia64
signals: ia64 renumber TIF_RESTORE_SIGMASK
2008-04-30 08:29:37 -07:00
asm-m32r
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-m68k
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-m68knommu
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-mips
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-mn10300
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-parisc
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-powerpc
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
2008-04-29 08:19:14 -07:00
asm-ppc
[RAPIDIO] Move include/asm-ppc/rio.h to asm-powerpc
2008-04-29 19:40:27 +10:00
asm-s390
signals: s390: renumber TIF_RESTORE_SIGMASK
2008-04-30 08:29:37 -07:00
asm-sh
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-sparc
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-sparc64
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-um
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-v850
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
asm-x86
signals: x86 TS_RESTORE_SIGMASK
2008-04-30 08:29:37 -07:00
asm-xtensa
kernel: Move arches to use common unaligned access
2008-04-29 08:06:27 -07:00
crypto
keys
linux
pids: introduce change_pid() helper
2008-04-30 08:29:48 -07:00
math-emu
media
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb
2008-04-29 14:53:40 -07:00
mtd
net
Merge branch 'audit.b50' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current
2008-04-29 11:41:22 -07:00
pcmcia
rdma
IB: expand ib_umem_get() prototype
2008-04-29 08:06:12 -07:00
rxrpc
scsi
IB/iser: Count FMR alignment violations per session
2008-04-29 13:46:52 -07:00
sound
[ALSA] Add MPU401_INFO_NO_ACK bitflag
2008-04-29 19:01:56 +02:00
video
xen
Kbuild