Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/freebsd-src.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex S <iwtcex@gmail.com>2022-11-09 00:17:17 +0300
committerDmitry Chagin <dchagin@FreeBSD.org>2022-11-09 00:17:17 +0300
commit9f7bf94ee2a88a702cef9fdb67166404c275afaf (patch)
tree765ca5c36dd4ee363be49ad434ec37247646051d
parentb40ae8c9fe73e02a9e03efeef8e8fe4bda66d388 (diff)
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
-rw-r--r--sys/compat/linux/linux_futex.c2
1 files changed, 1 insertions, 1 deletions
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