Date: Wed, 21 Feb 2018 11:27:00 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r329704 - stable/11/sys/vm Message-ID: <201802211127.w1LBR0uq004624@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; + } } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802211127.w1LBR0uq004624>