linux/arch/xtensa
Max Filippov ca47480921 xtensa: fix futex_atomic_cmpxchg_inatomic
Return 0 if the operation was successful, not the userspace memory
value. Check that userspace value equals passed oldval, not itself.
Don't update *uval if the value wasn't read from userspace memory.

This fixes process hang due to infinite loop in futex_lock_pi.
It also fixes a bunch of glibc tests nptl/tst-mutexpi*.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2018-01-05 15:55:59 -08:00
..
boot xtensa: add support for KASAN 2017-12-16 22:37:12 -08:00
configs xtensa: add default memmap and mmio32native options to defconfigs 2016-09-20 20:43:24 -07:00
include xtensa: fix futex_atomic_cmpxchg_inatomic 2018-01-05 15:55:59 -08:00
kernel xtensa: use generic strncpy_from_user with KASAN 2017-12-17 15:34:57 -08:00
lib xtensa: add support for KASAN 2017-12-16 22:37:12 -08:00
mm xtensa: print kernel sections info in mem_init 2017-12-17 15:34:58 -08:00
oprofile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
platforms xtensa: clean up custom-controlled debug output 2017-12-16 22:37:08 -08:00
variants xtensa: Added Cadence CSP kernel configuration for Xtensa 2016-09-09 18:39:09 -07:00
Kconfig xtensa: use generic strncpy_from_user with KASAN 2017-12-17 15:34:57 -08:00
Kconfig.debug License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile xtensa: build kernel with text-section-literals 2017-12-10 14:48:51 -08:00