]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: deviceatlas: fix double-checked locking race in checkinst
authorDavid Carlier <dcarlier@deviceatlas.com>
Sat, 14 Feb 2026 13:24:00 +0000 (13:24 +0000)
committerWilly Tarreau <w@1wt.eu>
Sat, 14 Feb 2026 13:47:22 +0000 (14:47 +0100)
commitea3b1bb866afba100f51709c388ad915a8c3e00f
treea59511f1cdfc82135f2926403d1b42676ea27cad
parent734a139c522be5c3a160097bece21750095ad218
BUG/MINOR: deviceatlas: fix double-checked locking race in checkinst

In da_haproxy_checkinst(), base[0] was checked before acquiring the
lock but not re-checked after. Another thread could have already
processed the reload between the initial check and the lock
acquisition, leading to a race condition.

This should be backported to lower branches.
addons/deviceatlas/da.c