Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/amd64 accept the LDT selector in check_sigcon...
details: https://anonhg.NetBSD.org/src/rev/82d8ae3fcd8a
branches: trunk
changeset: 757561:82d8ae3fcd8a
user: chs <chs%NetBSD.org@localhost>
date: Sun Sep 05 20:52:38 2010 +0000
description:
accept the LDT selector in check_sigcontext32() too.
diffstat:
sys/arch/amd64/amd64/netbsd32_machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 036fe476e2b4 -r 82d8ae3fcd8a sys/arch/amd64/amd64/netbsd32_machdep.c
--- a/sys/arch/amd64/amd64/netbsd32_machdep.c Sun Sep 05 20:27:19 2010 +0000
+++ b/sys/arch/amd64/amd64/netbsd32_machdep.c Sun Sep 05 20:52:38 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep.c,v 1.66 2010/09/05 20:14:39 chs Exp $ */
+/* $NetBSD: netbsd32_machdep.c,v 1.67 2010/09/05 20:52:38 chs Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.66 2010/09/05 20:14:39 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.67 2010/09/05 20:52:38 chs Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -962,7 +962,7 @@
pcb = lwp_getpcb(curlwp);
if (((scp->sc_eflags ^ tf->tf_rflags) & PSL_USERSTATIC) != 0 ||
- scp->sc_cs != GSEL(GUCODE32_SEL, SEL_UPL))
+ !VALID_USER_CSEL32(scp->sc_cs))
return EINVAL;
if (scp->sc_fs != 0 && !VALID_USER_DSEL32(scp->sc_fs) &&
!(scp->sc_fs == GSEL(GUFS_SEL, SEL_UPL) && pcb->pcb_fs != 0))
Home |
Main Index |
Thread Index |
Old Index