| To: | kvm@vger.kernel.org, linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH 17/20] MIPS: Pull in MIPS fix: fix endless loop when processing signals for kernel tasks. |
| From: | Sanjay Lal <sanjayl@kymasys.com> |
| Date: | Wed, 31 Oct 2012 11:20:59 -0400 |
| List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
| List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
| List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
| List-owner: | <mailto:ralf@linux-mips.org> |
| List-post: | <mailto:linux-mips@linux-mips.org> |
| List-software: | Ecartis version 1.0.0 |
| List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
| List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
| Sender: | linux-mips-bounce@linux-mips.org |
This bug is discussed in: http://lkml.indiana.edu/hypermail/linux/kernel/1205.2/00719.html Signed-off-by: Sanjay Lal <sanjayl@kymasys.com> --- arch/mips/kernel/entry.S | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel/entry.S b/arch/mips/kernel/entry.S index a6c1332..9b00362 100644 --- a/arch/mips/kernel/entry.S +++ b/arch/mips/kernel/entry.S @@ -36,6 +36,11 @@ FEXPORT(ret_from_exception) FEXPORT(ret_from_irq) LONG_S s0, TI_REGS($28) FEXPORT(__ret_from_irq) +/* + * We can be coming here from a syscall done in the kernel space, + * e.g. a failed kernel_execve(). + */ +resume_userspace_check: LONG_L t0, PT_STATUS(sp) # returning to kernel mode? andi t0, t0, KU_USER beqz t0, resume_kernel @@ -162,7 +167,7 @@ work_notifysig: # deal with pending signals and move a0, sp li a1, 0 jal do_notify_resume # a2 already loaded - j resume_userspace + j resume_userspace_check FEXPORT(syscall_exit_partial) local_irq_disable # make sure need_resched doesn't -- 1.7.11.3 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 19/20] KVM/MIPS32: Do not call vcpu_load when injecting interrupts., Sanjay Lal |
|---|---|
| Next by Date: | [PATCH 00/20] KVM for MIPS32 Processors, Sanjay Lal |
| Previous by Thread: | [PATCH 19/20] KVM/MIPS32: Do not call vcpu_load when injecting interrupts., Sanjay Lal |
| Next by Thread: | [PATCH 00/20] KVM for MIPS32 Processors, Sanjay Lal |
| Indexes: | [Date] [Thread] [Top] [All Lists] |