]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: proxy: use aligned allocations for struct proxy
authorWilly Tarreau <w@1wt.eu>
Fri, 7 Nov 2025 21:05:21 +0000 (22:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Nov 2025 21:22:55 +0000 (22:22 +0100)
commitdf9eb2e7b6901c561b76c0b77bdb15717adac91e
treea2d7bc3dfc2658bef757e93c18628224eadf5b15
parentc26bcfc1e3ae0193e2589a15c96ffd44b2e0f770
BUG/MEDIUM: proxy: use aligned allocations for struct proxy

Commit fd012b6c5 ("OPTIM: proxy: move atomically access fields out of
the read-only ones") caused the proxy struct to be 64-byte aligned,
which allows the compiler to use optimizations such as AVX512 to zero
certain fields. However the struct was allocated using calloc() so it
was not necessarily aligned, causing segv on startup on compatible
machines. Let's just use ha_aligned_zalloc_typed() to allocate the
struct.

No backport is needed.
src/proxy.c