Module: xenomai-2.6
Branch: master
Commit: 8c2deefa98a5a1b553674ad8486709c35513625d
URL:    
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=8c2deefa98a5a1b553674ad8486709c35513625d

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Tue Apr 12 14:09:00 2016 +0200

posix: avoid dereferencing user-space address

In the __pthread_mutex_check_init() system call, we pass a user-space
address to pse51_mutex_check_init().

See:
https://xenomai.org/pipermail/xenomai/2015-December/035656.html

---

 ksrc/skins/posix/syscall.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ksrc/skins/posix/syscall.c b/ksrc/skins/posix/syscall.c
index 87b95fa..31e2705 100644
--- a/ksrc/skins/posix/syscall.c
+++ b/ksrc/skins/posix/syscall.c
@@ -1202,7 +1202,7 @@ static int __pthread_mutex_check_init(struct pt_regs 
*regs)
        } else
                attr = NULL;
 
-       return pse51_mutex_check_init(&umx->shadow_mutex, attr);
+       return pse51_mutex_check_init(&mx.shadow_mutex, attr);
 }
 
 static int __pthread_mutex_init(struct pt_regs *regs)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to