git: 9f7bf94ee2a8 - main - linux(4): Fix get_robust_list() syscall return value.

From: Dmitry Chagin <dchagin_at_FreeBSD.org>
Date: Tue, 08 Nov 2022 21:17:48 UTC
The branch main has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=9f7bf94ee2a88a702cef9fdb67166404c275afaf

commit 9f7bf94ee2a88a702cef9fdb67166404c275afaf
Author:     Alex S <iwtcex@gmail.com>
AuthorDate: 2022-11-08 21:17:17 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-11-08 21:17:17 +0000

    linux(4): Fix get_robust_list() syscall return value.
    
    The system call returns the head of the robust futex list. The list head is stored
    in the location pointed to by the head argument. When copying data between address
    spaces use proper head storage size as it depends on an emulated ABI.
    
    PR:             267616
    MFC after:      3 days
---
 sys/compat/linux/linux_futex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c
index eb3ce3421465..d16e047f831c 100644
--- a/sys/compat/linux/linux_futex.c
+++ b/sys/compat/linux/linux_futex.c
@@ -931,7 +931,7 @@ linux_get_robust_list(struct thread *td, struct linux_get_robust_list_args *args
 	if (error != 0)
 		return (EFAULT);
 
-	return (copyout(&head, args->head, sizeof(head)));
+	return (copyout(&head, args->head, sizeof(l_uintptr_t)));
 }
 
 static int