From: Ben Gras Date: Tue, 5 Feb 2013 16:17:19 +0000 (+0100) Subject: arm: protect state after signal handler X-Git-Tag: v3.2.1~27 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=3045d2870b0b35f1ded037b4ef79bcfcd7ae5e43;p=minix.git 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 --- 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. */