summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-07-10 17:28:33 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-07-10 17:28:33 +0000
commit89f1af237ffa6abb21d3a33b8d7c07fbb51436ae (patch)
treed93cf762f2265b72a03a80976dfbbe9fcfc1b262 /sys
parentb292e9e15cf6dd283366923490011c293058cb1a (diff)
Don't trust the privilige level in the sigcontext passed to sigreturn(2).
ok miod@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/hppa/machdep.c6
1 files changed, 3 insertions, 3 deletions
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