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
This commit is contained in:
Alex S 2022-11-09 00:17:17 +03:00 committed by Dmitry Chagin
parent b40ae8c9fe
commit 9f7bf94ee2

View file

@ -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