BUG/MINOR: map/cli: protect the backref list during "show map" errors
authorWilly Tarreau <w@1wt.eu>
Tue, 3 May 2022 13:19:49 +0000 (15:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:35 +0000 (18:13 +0200)
commit2edaace575fa1bdfa760ee41d7d7a87efb3586ae
treef7b1ab808b83e40a0b1d9653d1cdb9600510159d
parent4f9f157537074b5165818118e986866ae20fbc1a
BUG/MINOR: map/cli: protect the backref list during "show map" errors

In case of write error in "show map", the backref is detached but
the list wasn't locked when this is done. The risk is very low but
it may happen that two concurrent "show map" one of which would fail
or one "show map" failing while the same entry is being updated could
cause a crash.

This should be backported to all stable versions.
src/map.c