svn commit: r330678 - stable/10/sys/kern

Brooks Davis brooks at FreeBSD.org
Fri Mar 9 01:21:23 UTC 2018


Author: brooks
Date: Fri Mar  9 01:21:22 2018
New Revision: 330678
URL: https://svnweb.freebsd.org/changeset/base/330678

Log:
  MFC r330527:
  
  Use umtx_copyin_umtx_time32() in __umtx_op_lock_umutex_compat32().
  
  Non-NULL timeouts where copied in improperly and could produce failures
  due to incompatible data structures.
  
  Reviewed by:	kib
  Sponsored by:	DARPA, AFRL
  Differential Revision:	https://reviews.freebsd.org/D14587

Modified:
  stable/10/sys/kern/kern_umtx.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/kern_umtx.c
==============================================================================
--- stable/10/sys/kern/kern_umtx.c	Fri Mar  9 01:17:03 2018	(r330677)
+++ stable/10/sys/kern/kern_umtx.c	Fri Mar  9 01:21:22 2018	(r330678)
@@ -3865,7 +3865,7 @@ __umtx_op_lock_umutex_compat32(struct thread *td, stru
 	if (uap->uaddr2 == NULL)
 		tm_p = NULL;
 	else {
-		error = umtx_copyin_umtx_time(uap->uaddr2,
+		error = umtx_copyin_umtx_time32(uap->uaddr2,
 			    (size_t)uap->uaddr1, &timeout);
 		if (error != 0)
 			return (error);


More information about the svn-src-all mailing list