]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: pools/threads: don't ignore DEBUG_UAF on double-word CAS capable archs
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Feb 2018 13:05:55 +0000 (14:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Feb 2018 13:18:45 +0000 (14:18 +0100)
commitf161d0f51e7f073f249319417a5b869a6177072e
treed76da5f8d0046342d9916c0272078e501ebb11e9
parent5e64286bab07fdd28fc644e2165633949f313662
BUG/MINOR: pools/threads: don't ignore DEBUG_UAF on double-word CAS capable archs

Since commit cf975d4 ("MINOR: pools/threads: Implement lockless memory
pools."), we support lockless pools. However the parts dedicated to
detecting use-after-free are not present in this part, making DEBUG_UAF
useless in this situation.

The present patch sets a new define CONFIG_HAP_LOCKLESS_POOLS when such
a compatible architecture is detected, and when pool debugging is not
requested, then makes use of this everywhere in pools and buffers
functions. This way enabling DEBUG_UAF will automatically disable the
lockless version.

No backport is needed as this is purely 1.9-dev.
include/common/buffer.h
include/common/config.h
include/common/memory.h
src/memory.c