svn commit: r367783 - head/sys/kern

Kyle Evans kevans at FreeBSD.org
Wed Nov 18 03:30:31 UTC 2020


Author: kevans
Date: Wed Nov 18 03:30:31 2020
New Revision: 367783
URL: https://svnweb.freebsd.org/changeset/base/367783

Log:
  _umtx_op: fix robust lists after r367744
  
  A copy-pasto left us copying in 24-bytes at the address of the rb pointer
  instead of the intended target.
  
  Reported by:	sigsys at gmail.com
  Sighing:	kevans

Modified:
  head/sys/kern/kern_umtx.c

Modified: head/sys/kern/kern_umtx.c
==============================================================================
--- head/sys/kern/kern_umtx.c	Wed Nov 18 02:54:05 2020	(r367782)
+++ head/sys/kern/kern_umtx.c	Wed Nov 18 03:30:31 2020	(r367783)
@@ -3431,7 +3431,7 @@ umtx_copyin_robust_lists(const void *uaddr, size_t siz
 
 	if (size > sizeof(*rb))
 		return (EINVAL);
-	return (copyin(uaddr, &rb, size));
+	return (copyin(uaddr, rb, size));
 }
 
 static int


More information about the svn-src-head mailing list