summaryrefslogtreecommitdiffstats
path: root/include/linux/coredump.h
diff options
context:
space:
mode:
authorOleg Nesterov2010-05-26 23:44:08 +0200
committerLinus Torvalds2010-05-27 18:12:51 +0200
commitfa2755e20ab0c7215d99c2dc7c262e98a09b01df (patch)
tree6e28b6ea4984bc22e1a2d16afd71d0e6e65da90c /include/linux/coredump.h
parentpids: increase pid_max based on num_possible_cpus (diff)
downloadkernel-qcow2-linux-fa2755e20ab0c7215d99c2dc7c262e98a09b01df.tar.gz
kernel-qcow2-linux-fa2755e20ab0c7215d99c2dc7c262e98a09b01df.tar.xz
kernel-qcow2-linux-fa2755e20ab0c7215d99c2dc7c262e98a09b01df.zip
INIT_TASK() should initialize ->thread_group list
The trivial /sbin/init doing int main(void) { kill(0, SIGKILL) } crashes the kernel. This happens because __kill_pgrp_info(init_struct_pid) also sends SIGKILL to the swapper process which runs with the uninitialized ->thread_group. Change INIT_TASK() to initialize ->thread_group properly. Note: the real problem is that the swapper process must not be visible to signals, see the next patch. But this change is right anyway and fixes the crash. Reported-and-tested-by: Mathias Krause <mathias.krause@secunet.com> Signed-off-by: Oleg Nesterov <oleg@redhat.com> Cc: Cedric Le Goater <clg@fr.ibm.com> Cc: Dave Hansen <haveblue@us.ibm.com> Cc: Eric Biederman <ebiederm@xmission.com> Cc: Herbert Poetzl <herbert@13thfloor.at> Cc: Mathias Krause <Mathias.Krause@secunet.com> Acked-by: Roland McGrath <roland@redhat.com> Acked-by: Serge Hallyn <serue@us.ibm.com> Acked-by: Sukadev Bhattiprolu <sukadev@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/coredump.h')
0 files changed, 0 insertions, 0 deletions