[Midnightbsd-cvs] src [9192] stable/0.8: updated security patch to correct an additonal problem.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue Oct 25 18:35:44 EDT 2016


Revision: 9192
          http://svnweb.midnightbsd.org/src/?rev=9192
Author:   laffer1
Date:     2016-10-25 18:35:44 -0400 (Tue, 25 Oct 2016)
Log Message:
-----------
updated security patch to correct an additonal problem. see UPDATING

Modified Paths:
--------------
    stable/0.8/UPDATING
    stable/0.8/sys/amd64/amd64/sys_machdep.c
    stable/0.8/sys/conf/newvers.sh

Modified: stable/0.8/UPDATING
===================================================================
--- stable/0.8/UPDATING	2016-10-17 13:12:10 UTC (rev 9191)
+++ stable/0.8/UPDATING	2016-10-25 22:35:44 UTC (rev 9192)
@@ -1,5 +1,11 @@
 Updating Information for MidnightBSD users.
 
+20161025:
+	MidnightBSD 0.8.3 RELEASE
+
+	Revised patch to address a problem pointed out by
+        ahaha from Chaitin Tech.
+
 20161001:
 	MidnightBSD 0.8.2 RELEASE
 

Modified: stable/0.8/sys/amd64/amd64/sys_machdep.c
===================================================================
--- stable/0.8/sys/amd64/amd64/sys_machdep.c	2016-10-17 13:12:10 UTC (rev 9191)
+++ stable/0.8/sys/amd64/amd64/sys_machdep.c	2016-10-25 22:35:44 UTC (rev 9192)
@@ -612,6 +612,8 @@
 		largest_ld = uap->start + uap->num;
 		if (largest_ld > max_ldt_segment)
 			largest_ld = max_ldt_segment;
+		if (largest_ld < uap->start)
+			return (EINVAL);
 		i = largest_ld - uap->start;
 		mtx_lock(&dt_lock);
 		bzero(&((struct user_segment_descriptor *)(pldt->ldt_base))
@@ -624,7 +626,8 @@
 		/* verify range of descriptors to modify */
 		largest_ld = uap->start + uap->num;
 		if (uap->start >= max_ldt_segment ||
-		    largest_ld > max_ldt_segment)
+		    largest_ld > max_ldt_segment ||
+		    largest_ld < uap->start)
 			return (EINVAL);
 	}
 

Modified: stable/0.8/sys/conf/newvers.sh
===================================================================
--- stable/0.8/sys/conf/newvers.sh	2016-10-17 13:12:10 UTC (rev 9191)
+++ stable/0.8/sys/conf/newvers.sh	2016-10-25 22:35:44 UTC (rev 9192)
@@ -32,7 +32,7 @@
 # $MidnightBSD$
 
 TYPE="MidnightBSD"
-REVISION="0.8.2"
+REVISION="0.8.3"
 RELEASE="${REVISION}"
 VERSION="${TYPE} ${RELEASE}"
 SYSDIR=$(/usr/bin/dirname $0)/..



More information about the Midnightbsd-cvs mailing list