/[linux-patches]/genpatches-2.6/historical/2.6.10/1300_uml-stack-corruption.patch
Gentoo

Contents of /genpatches-2.6/historical/2.6.10/1300_uml-stack-corruption.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download) (as text)
Sat Jun 11 23:16:54 2005 UTC (15 years, 1 month ago) by dsd
File MIME type: text/x-diff
File size: 1063 byte(s)
Import historical releases
1 dsd 2 # This is a BitKeeper generated diff -Nru style patch.
2     #
3     # ChangeSet
4     # 2005/01/21 08:03:15-08:00 jdike@addtoit.com
5     # [PATCH] uml: fix a stack corruption crash
6     #
7     # Fix a race where signals could be handled to the parent of a new process on
8     # the kernel stack of the child, corrupting that stack, and crashing UML when
9     # the next first runs.
10     #
11     # Signed-off-by: Jeff Dike <jdike@addtoit.com>
12     # Signed-off-by: Andrew Morton <akpm@osdl.org>
13     # Signed-off-by: Linus Torvalds <torvalds@osdl.org>
14     #
15     # arch/um/kernel/skas/process.c
16     # 2005/01/20 20:59:16-08:00 jdike@addtoit.com +2 -1
17     # uml: fix a stack corruption crash
18     #
19     diff -Nru a/arch/um/kernel/skas/process.c b/arch/um/kernel/skas/process.c
20     --- a/arch/um/kernel/skas/process.c 2005-01-22 01:49:12 -08:00
21     +++ b/arch/um/kernel/skas/process.c 2005-01-22 01:49:12 -08:00
22     @@ -224,9 +224,10 @@
23     block_signals();
24     if(sigsetjmp(fork_buf, 1) == 0)
25     new_thread_proc(stack, handler);
26     - set_signals(flags);
27    
28     remove_sigstack();
29     +
30     + set_signals(flags);
31     }
32    
33     void thread_wait(void *sw, void *fb)

  ViewVC Help
Powered by ViewVC 1.1.20