svn commit: r357824 - stable/12/sys/amd64/amd64

Mark Johnston markj at FreeBSD.org
Wed Feb 12 15:46:34 UTC 2020


Author: markj
Date: Wed Feb 12 15:46:33 2020
New Revision: 357824
URL: https://svnweb.freebsd.org/changeset/base/357824

Log:
  MFC r357573:
  Fix map locking in the CLEAR_PKRU sysarch(2) handler.

Modified:
  stable/12/sys/amd64/amd64/sys_machdep.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/amd64/amd64/sys_machdep.c
==============================================================================
--- stable/12/sys/amd64/amd64/sys_machdep.c	Wed Feb 12 15:26:56 2020	(r357823)
+++ stable/12/sys/amd64/amd64/sys_machdep.c	Wed Feb 12 15:46:33 2020	(r357824)
@@ -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-stable mailing list