This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/18726] Futexes are broken on MIPS/n32
- From: "oss at malat dot biz" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 28 Jul 2015 16:07:53 +0000
- Subject: [Bug nptl/18726] Futexes are broken on MIPS/n32
- Auto-submitted: auto-generated
- References: <bug-18726-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18726
--- Comment #7 from Petr Malat <oss at malat dot biz> ---
I've tracked down a change, which prevents the problem in the kernel:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/kernel/futex_compat.c?id=90caf58dad77a4021e9dade5d051756cea2a2cd7
When COMPAT_SYSCALL_DEFINE is used a wrapper is created, which casts the
futex value to unsigned long and then to unsigned int, which forces gcc to
emit sll instruction, which, according to the specification, can be used even
when a register is not properly sign extended.
I will report this to the kernel mailing list, as from current long term
releases
2.6.32.67, 3.2.69 and 3.4.108 are affected. From my POV glibc shall be fixed
too,
as it violates the ABI.
--
You are receiving this mail because:
You are on the CC list for the bug.