diff options
| author | Max Filippov <[email protected]> | 2018-01-05 22:27:58 +0000 |
|---|---|---|
| committer | Max Filippov <[email protected]> | 2018-01-05 23:55:59 +0000 |
| commit | ca47480921587ae30417dd234a9f79af188e3666 (patch) | |
| tree | 8855c77493e9a06d7915d83fb2add249f693572c /net/unix/af_unix.c | |
| parent | xtensa: shut up gcc-8 warnings (diff) | |
| download | kernel-ca47480921587ae30417dd234a9f79af188e3666.tar.gz kernel-ca47480921587ae30417dd234a9f79af188e3666.zip | |
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: [email protected]
Signed-off-by: Max Filippov <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
