svn commit: r329704 - stable/11/sys/vm

Konstantin Belousov kib at FreeBSD.org
Wed Feb 21 11:27:00 UTC 2018


Author: kib
Date: Wed Feb 21 11:26:59 2018
New Revision: 329704
URL: https://svnweb.freebsd.org/changeset/base/329704

Log:
  MFC r329252:
  Do not call pmap_enter() with invalid protection mode.

Modified:
  stable/11/sys/vm/vm_fault.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/vm/vm_fault.c
==============================================================================
--- stable/11/sys/vm/vm_fault.c	Wed Feb 21 10:13:17 2018	(r329703)
+++ stable/11/sys/vm/vm_fault.c	Wed Feb 21 11:26:59 2018	(r329704)
@@ -1217,6 +1217,12 @@ readrest:
 			 * write-enabled after all.
 			 */
 			prot &= retry_prot;
+			fault_type &= retry_prot;
+			if (prot == 0) {
+				release_page(&fs);
+				unlock_and_deallocate(&fs);
+				goto RetryFault;
+			}
 		}
 	}
 


More information about the svn-src-all mailing list