1
0
Fork 0
remarkable-linux/arch/xtensa
Max Filippov 2d4e295284 xtensa: fix futex_atomic_cmpxchg_inatomic
commit ca47480921 upstream.

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*.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-17 13:21:19 +01:00
..
boot xtensa: rearrange CCOUNT calibration 2016-09-20 18:52:59 -07: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-02-17 13:21:19 +01:00
kernel xtensa: don't limit csum_partial export by CONFIG_NET 2017-08-16 13:43:16 -07:00
lib xtensa: fixes for configs without loop option 2015-11-02 18:02:47 +03:00
mm xtensa: mm/cache: add missing EXPORT_SYMBOLs 2017-08-16 13:43:15 -07:00
oprofile xtensa: move oprofile stack tracing to stacktrace.c 2015-08-17 07:32:49 +03:00
platforms xtensa: don't use linux IRQ #0 2017-06-17 06:41:58 +02:00
variants xtensa: Added Cadence CSP kernel configuration for Xtensa 2016-09-09 18:39:09 -07:00
Kconfig xtensa: disable MMU initialization option on MMUv2 cores 2016-09-29 12:55:00 -07:00
Kconfig.debug xtensa: disable link optimization 2014-12-15 23:47:24 -08:00
Makefile xtensa: define CONFIG_CPU_{BIG,LITTLE}_ENDIAN 2016-03-11 08:53:31 +00:00