Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Mar 2018 01:17:04 +0000 (UTC)
From:      Brooks Davis <brooks@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: r330677 - stable/11/sys/kern
Message-ID:  <201803090117.w291H4o1012821@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Fri Mar  9 01:17:03 2018
New Revision: 330677
URL: https://svnweb.freebsd.org/changeset/base/330677

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/11/sys/kern/kern_umtx.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/kern_umtx.c
==============================================================================
--- stable/11/sys/kern/kern_umtx.c	Fri Mar  9 00:50:40 2018	(r330676)
+++ stable/11/sys/kern/kern_umtx.c	Fri Mar  9 01:17:03 2018	(r330677)
@@ -4114,7 +4114,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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803090117.w291H4o1012821>