linux/arch
Michel Lespinasse 37a9d912b2 futex: Sanitize cmpxchg_futex_value_locked API
The cmpxchg_futex_value_locked API was funny in that it returned either
the original, user-exposed futex value OR an error code such as -EFAULT.
This was confusing at best, and could be a source of livelocks in places
that retry the cmpxchg_futex_value_locked after trying to fix the issue
by running fault_in_user_writeable().
    
This change makes the cmpxchg_futex_value_locked API more similar to the
get_futex_value_locked one, returning an error code and updating the
original value through a reference argument.
    
Signed-off-by: Michel Lespinasse <walken@google.com>
Acked-by: Chris Metcalf <cmetcalf@tilera.com>  [tile]
Acked-by: Tony Luck <tony.luck@intel.com>  [ia64]
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Michal Simek <monstr@monstr.eu>  [microblaze]
Acked-by: David Howells <dhowells@redhat.com> [frv]
Cc: Darren Hart <darren@dvhart.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
LKML-Reference: <20110311024851.GC26122@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2011-03-11 12:23:08 +01:00
..
alpha futex: Sanitize cmpxchg_futex_value_locked API 2011-03-11 12:23:08 +01:00
arm futex: Sanitize cmpxchg_futex_value_locked API 2011-03-11 12:23:08 +01:00
avr32 avr32: add missing include causing undefined pgtable_page_* references 2011-01-26 12:35:15 +01:00
blackfin Blackfin: iflush: update anomaly 05000491 workaround 2011-03-04 01:27:01 -05:00
cris Drop redundant __param section for CRISv32. 2011-02-23 08:00:47 -08:00
frv futex: Sanitize cmpxchg_futex_value_locked API 2011-03-11 12:23:08 +01:00
h8300 h8300: Use generic irq Kconfig 2011-01-21 11:55:24 +01:00
ia64 futex: Sanitize cmpxchg_futex_value_locked API 2011-03-11 12:23:08 +01:00
m32r m32r: Fixup last __do_IRQ leftover 2011-02-05 21:46:35 +01:00
m68k m68knommu: add optimize memmove() function 2011-02-16 09:43:16 +10:00
m68knommu m68knommu: set flow handler for secondary interrupt controller of 5249 2011-02-16 09:43:46 +10:00
microblaze futex: Sanitize cmpxchg_futex_value_locked API 2011-03-11 12:23:08 +01:00
mips futex: Sanitize cmpxchg_futex_value_locked API 2011-03-11 12:23:08 +01:00
mn10300 mn10300: Use generic irq Kconfig 2011-01-21 11:55:33 +01:00
parisc futex: Sanitize cmpxchg_futex_value_locked API 2011-03-11 12:23:08 +01:00
powerpc futex: Sanitize cmpxchg_futex_value_locked API 2011-03-11 12:23:08 +01:00
s390 futex: Sanitize cmpxchg_futex_value_locked API 2011-03-11 12:23:08 +01:00
score score: Use generic irq Kconfig 2011-01-21 11:55:34 +01:00
sh futex: Sanitize cmpxchg_futex_value_locked API 2011-03-11 12:23:08 +01:00
sparc futex: Sanitize cmpxchg_futex_value_locked API 2011-03-11 12:23:08 +01:00
tile futex: Sanitize cmpxchg_futex_value_locked API 2011-03-11 12:23:08 +01:00
um um: Use generic irq Kconfig 2011-01-21 11:55:35 +01:00
x86 futex: Sanitize cmpxchg_futex_value_locked API 2011-03-11 12:23:08 +01:00
xtensa kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT 2011-01-20 17:02:05 -08:00
.gitignore
Kconfig [S390] mutex: Introduce arch_mutex_cpu_relax() 2011-01-05 12:47:31 +01:00