Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2021 09:58:55 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c8e9d2b7eb6e - main - linux(4): Use linux_tdfind() in get_robust_list.
Message-ID:  <202107290958.16T9wtAb070565@gitrepo.freebsd.org>

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

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

commit c8e9d2b7eb6ef55e1386150458c58e6554762166
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2021-07-29 09:53:59 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2021-07-29 09:53:59 +0000

    linux(4): Use linux_tdfind() in get_robust_list.
    
    In the Linux emulation layer linux_tdfind() has a special purpose to
    handle glibc specific TID mangling and we should use it instead of tdfind().
    
    MFC after:              2 weeks
---
 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 07623fbfe9e3..ec65db3f8bd3 100644
--- a/sys/compat/linux/linux_futex.c
+++ b/sys/compat/linux/linux_futex.c
@@ -902,7 +902,7 @@ linux_get_robust_list(struct thread *td, struct linux_get_robust_list_args *args
 		KASSERT(em != NULL, ("get_robust_list: emuldata notfound.\n"));
 		head = em->robust_futexes;
 	} else {
-		td2 = tdfind(args->pid, -1);
+		td2 = linux_tdfind(td, args->pid, -1);
 		if (td2 == NULL)
 			return (ESRCH);
 		if (SV_PROC_ABI(td2->td_proc) != SV_ABI_LINUX) {



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