From 89f1af237ffa6abb21d3a33b8d7c07fbb51436ae Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 10 Jul 2007 17:28:33 +0000 Subject: Don't trust the privilige level in the sigcontext passed to sigreturn(2). ok miod@ --- sys/arch/hppa/hppa/machdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c index dba4ae531c2..0628ebd1237 100644 --- a/sys/arch/hppa/hppa/machdep.c +++ b/sys/arch/hppa/hppa/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.159 2007/06/24 17:00:50 kettenis Exp $ */ +/* $OpenBSD: machdep.c,v 1.160 2007/07/10 17:28:32 kettenis Exp $ */ /* * Copyright (c) 1999-2003 Michael Shalayeff @@ -1432,8 +1432,8 @@ sys_sigreturn(p, v, retval) fdcache(HPPA_SID_KERNEL, (vaddr_t)p->p_addr->u_pcb.pcb_fpregs, sizeof(ksc.sc_fpregs)); - tf->tf_iioq_head = ksc.sc_pcoqh; - tf->tf_iioq_tail = ksc.sc_pcoqt; + tf->tf_iioq_head = ksc.sc_pcoqh | HPPA_PC_PRIV_USER; + tf->tf_iioq_tail = ksc.sc_pcoqt | HPPA_PC_PRIV_USER; tf->tf_ipsw = ksc.sc_ps; #ifdef DEBUG -- cgit v1.2.3