]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: threads: fix the double CAS implementation for ARMv7
authorWilly Tarreau <w@1wt.eu>
Wed, 14 Feb 2018 13:16:28 +0000 (14:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 14 Feb 2018 13:16:28 +0000 (14:16 +0100)
commit41ccb194d1d14669e0592e5373ef5776f099e82a
tree89d1dba9c3e37b339bbffdfd3cccedb7f6e44e39
parent1ff9104117c67c99130c3b141d8fc236b3aa22a7
BUG/MEDIUM: threads: fix the double CAS implementation for ARMv7

Commit f61f0cb ("MINOR: threads: Introduce double-width CAS on x86_64
and arm.") introduced the double CAS. But the ARMv7 version is bogus,
it uses the value of the pointers instead of dereferencing them. When
lucky, it simply doesn't build due to impossible registers combinations.
Otherwise it will immediately crash at run time when facing traffic.

No backport is needed, this bug was introduced in 1.9-dev.
include/common/hathreads.h