diff options
author | Hideo Saito <saito@densan.co.jp> | 2007-02-28 10:35:42 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-03-05 06:13:26 +0100 |
commit | e6bcf562e58662b9765748d346e4c076b20e3aa5 (patch) | |
tree | 0c8982c11cd410f4b654b8fda9a1a1fc6776e4a3 /kernel | |
parent | doc: Add SH to vdso and earlyprintk in kernel-parameters.txt (diff) | |
download | linux-e6bcf562e58662b9765748d346e4c076b20e3aa5.tar.xz linux-e6bcf562e58662b9765748d346e4c076b20e3aa5.zip |
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 <saito@densan.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions