From e64e75dbc58086d7ab16699a4dbeca58f9abed65 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 25 Sep 2009 17:44:26 +0000 Subject: [PATCH] also don't let user process change ss segment selector when returning from signal. --- kernel/system/do_sigreturn.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.44.0