From 27a9392d543933f1aaa4e4ddae2a1585a72db1b2 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Wed, 18 Nov 2020 03:30:31 +0000 Subject: [PATCH] _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@gmail.com Sighing: kevans --- sys/kern/kern_umtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c index f71e6ab897a..acff6947430 100644 --- a/sys/kern/kern_umtx.c +++ b/sys/kern/kern_umtx.c @@ -3431,7 +3431,7 @@ umtx_copyin_robust_lists(const void *uaddr, size_t size, if (size > sizeof(*rb)) return (EINVAL); - return (copyin(uaddr, &rb, size)); + return (copyin(uaddr, rb, size)); } static int