From: Ben Gras Date: Fri, 25 Sep 2009 17:44:26 +0000 (+0000) Subject: also don't let user process change ss segment selector when returning from X-Git-Tag: v3.1.5~85 X-Git-Url: http://zhaoyanbai.com/repos/readme1st.txt?a=commitdiff_plain;h=e64e75dbc58086d7ab16699a4dbeca58f9abed65;p=minix.git also don't let user process change ss segment selector when returning from signal. --- diff --git a/kernel/system/do_sigreturn.c b/kernel/system/do_sigreturn.c index 6e286675f..c382e0389 100644 --- a/kernel/system/do_sigreturn.c +++ b/kernel/system/do_sigreturn.c @@ -46,6 +46,7 @@ message *m_ptr; /* pointer to request message */ sc.sc_cs = rp->p_reg.cs; sc.sc_ds = rp->p_reg.ds; sc.sc_es = rp->p_reg.es; + sc.sc_ss = rp->p_reg.ss; #if _WORD_SIZE == 4 sc.sc_fs = rp->p_reg.fs; sc.sc_gs = rp->p_reg.gs;