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:  sig...@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
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to