Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Nov 2022 10:22:42 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 312fa66091f9 - stable/13 - linux(4): Fix get_robust_list() syscall return value.
Message-ID:  <202211141022.2AEAMg2p054847@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=312fa66091f9989e64370291e2482eab8d8ab013

commit 312fa66091f9989e64370291e2482eab8d8ab013
Author:     Alex S <iwtcex@gmail.com>
AuthorDate: 2022-11-08 21:17:17 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-11-14 10:21:26 +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
    
    (cherry picked from commit 9f7bf94ee2a88a702cef9fdb67166404c275afaf)
---
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211141022.2AEAMg2p054847>