Skip to content

Fixing AMD cmpxchg "missing lfence" mess

Mathieu Desnoyers lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86: cleanup alternative.harch/x86/include/asm/alternative.h+22 -368 replies
2/2x86 amd fix cmpxchg read acquire barrierarch/x86/include/asm/alternative.h arch/x86/include/asm/cmpxchg_64.h arch/x86/include/asm/cpufeature.h +4 more+29 -710 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/2] Fixing AMD cmpxchg "missing lfence" mess

Hi,

I've prepared this patch, which applies on 2.6.30-rc2. It's an attempt to make the kernel work around AMD's bug regarding missing lfence in the sync; cmpxchg instruction.

The first patch is a alternative.h cleanup, and the second patch implements the fixup using alternatives.

Indeed, this only makes the kernel aware of the bug. Userland will still have to be taught to use such lfence too.

Mathieu

Signature · 2 lines
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68