From 3045d2870b0b35f1ded037b4ef79bcfcd7ae5e43 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 5 Feb 2013 17:17:19 +0100 Subject: [PATCH] arm: protect state after signal handler . set MF_CONTEXT_SET after signal handler state is set so it doesn't get clobbered by the kernel afterwards (i.e. by delivermsg()). fixes at least test41. Change-Id: I7e5e0e9311c8bbc1c0a9c7ca466ceddd9edfa03f --- kernel/system/do_sigsend.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/system/do_sigsend.c b/kernel/system/do_sigsend.c index eeb13f6c7..6c6e9babe 100644 --- a/kernel/system/do_sigsend.c +++ b/kernel/system/do_sigsend.c @@ -92,6 +92,7 @@ int do_sigsend(struct proc * caller, message * m_ptr) rp->p_reg.retreg = (reg_t) fr.sf_signo; rp->p_reg.r1 = (reg_t) fr.sf_code; rp->p_reg.r2 = (reg_t) fr.sf_scp; + rp->p_misc_flags |= MF_CONTEXT_SET; #endif /* Copy the sigframe structure to the user's stack. */ -- 2.11.4.GIT