From: Jeff Dike Date: Thu, 8 Mar 2007 04:41:26 +0000 (-0800) Subject: [PATCH] uml: arch_prctl should set thread fs X-Git-Tag: v2.6.21-rc4~85 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44f5c4ced6ddee2f5f2e45fa45b93370245d85bd;p=pandora-kernel.git [PATCH] uml: arch_prctl should set thread fs In my previous x86_64 thread fix, I forgot to initialize thread.arch.fs in arch_prctl. A process calling arch_prctl to set %fs would lose it on the next context switch. It also turns out that you can switch to a process which is in the process of exiting and which has lost its mm. In this case, it's worse than useless to try to call arch_prctl on the host process. Signed-off-by: Jeff Dike Cc: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed