svn commit: r357573 - head/sys/amd64/amd64

Mark Johnston markj at FreeBSD.org
Wed Feb 5 16:09:03 UTC 2020


Author: markj
Date: Wed Feb  5 16:09:02 2020
New Revision: 357573
URL: https://svnweb.freebsd.org/changeset/base/357573

Log:
  Fix map locking in the CLEAR_PKRU sysarch(2) handler.
  
  Reported and tested by:	pho
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/amd64/amd64/sys_machdep.c

Modified: head/sys/amd64/amd64/sys_machdep.c
==============================================================================
--- head/sys/amd64/amd64/sys_machdep.c	Wed Feb  5 14:00:27 2020	(r357572)
+++ head/sys/amd64/amd64/sys_machdep.c	Wed Feb  5 16:09:02 2020	(r357573)
@@ -380,7 +380,7 @@ sysarch(struct thread *td, struct sysarch_args *uap)
 		error = pmap_pkru_clear(PCPU_GET(curpmap),
 		    (vm_offset_t)a64pkru.addr,
 		    (vm_offset_t)a64pkru.addr + a64pkru.len);
-		vm_map_unlock(map);
+		vm_map_unlock_read(map);
 		break;
 
 	default:


More information about the svn-src-all mailing list