From: will.deacon@arm.com (Will Deacon) Date: Wed, 8 May 2013 17:55:00 +0100 Subject: [PATCH v2] ARM v6/v7 cmpxchg64 shouldn't clear upper 32 bits of the old/new value In-Reply-To: <1368025614-17820-1-git-send-email-jaccon.bastiaansen@gmail.com> References: <20130508143004.GA20820@mudshark.cambridge.arm.com> <1368025614-17820-1-git-send-email-jaccon.bastiaansen@gmail.com> Message-ID: <20130508165500.GH20820@mudshark.cambridge.arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, May 08, 2013 at 04:06:54PM +0100, Jaccon Bastiaansen wrote: > The implementation of cmpxchg64() for the ARM v6 and v7 architecture > casts parameter 2 and 3 (the old and new 64bit values) to an unsigned > long before calling the atomic_cmpxchg64() function. This clears > the top 32 bits of the old and new values, resulting in the wrong > values being compare-exchanged. > > This bug is introduced by commit 3e0f5a15f500 (ARM: 7404/1: cmpxchg64: use atomic64 Best to line-wrap this at 76 chars. > and local64 routines for cmpxchg64) > > Signed-off-by: Jaccon Bastiaansen Please add the following above your S-o-B: Cc: Acked-by: Will Deacon Then below your S-o-B, add: KernelVersion: 3.9 and send the patch to patches at arm.linux.org.uk Cheers, Will