Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 Make MTRR_GET privileged, the structures ar...



details:   https://anonhg.NetBSD.org/src/rev/38c28fbbdd17
branches:  trunk
changeset: 826711:38c28fbbdd17
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Sep 23 11:01:32 2017 +0000

description:
Make MTRR_GET privileged, the structures are not always zeroed (thereby
leaking information), and beyond that we are not particularly interested
in letting userland know how the kernel uses its MTRRs.

diffstat:

 sys/arch/x86/x86/x86_machdep.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r e2b23096bd2b -r 38c28fbbdd17 sys/arch/x86/x86/x86_machdep.c
--- a/sys/arch/x86/x86/x86_machdep.c    Sat Sep 23 10:38:59 2017 +0000
+++ b/sys/arch/x86/x86/x86_machdep.c    Sat Sep 23 11:01:32 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_machdep.c,v 1.93 2017/06/14 12:27:24 maxv Exp $    */
+/*     $NetBSD: x86_machdep.c,v 1.94 2017/09/23 11:01:32 maxv Exp $    */
 
 /*-
  * Copyright (c) 2002, 2006, 2007 YAMAMOTO Takashi,
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.93 2017/06/14 12:27:24 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.94 2017/09/23 11:01:32 maxv Exp $");
 
 #include "opt_modular.h"
 #include "opt_physmem.h"
@@ -1039,9 +1039,7 @@
        case KAUTH_MACHDEP_IOPERM_GET:
        case KAUTH_MACHDEP_LDT_GET:
        case KAUTH_MACHDEP_LDT_SET:
-       case KAUTH_MACHDEP_MTRR_GET:
                result = KAUTH_RESULT_ALLOW;
-
                break;
 
        default:



Home | Main Index | Thread Index | Old Index