From: Hideo Saito Date: Wed, 28 Feb 2007 09:35:42 +0000 (+0900) Subject: sh: Fix kernel thread stack corruption with preempt. X-Git-Tag: v2.6.21-rc4~104^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6bcf562e58662b9765748d346e4c076b20e3aa5;p=pandora-kernel.git sh: Fix kernel thread stack corruption with preempt. When I run a preemptive kernel-2.6.20 for SH7780, a created kthread(pdflush) can not exit by do_exit() in kernel_thread_helper. I think that the created kthread should have a room for 'struct pt_regs' space on the stack top, because __switch_to() will refer to the space as follows using 'regs = task_pt_regs(prev)' and next condition may be true. Signed-off-by: Hideo Saito Signed-off-by: Paul Mundt --- Reading git-diff-tree failed