DEBUG: add a tainted flag when ha_panic() is called
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Oct 2023 12:34:08 +0000 (14:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 25 Oct 2023 13:48:02 +0000 (15:48 +0200)
commit46bbb3a33be4be1cf8a54b39dbd57433501229e8
tree9342564c20051fb203d64283080eb86614e6e8c4
parent1822e8998b220c7f79148cdd06c132e8ea43aa45
DEBUG: add a tainted flag when ha_panic() is called

This will make it easier to know that the panic function was called,
for the occasional case where the dump crashes and/or the stack is
corrupted and not much exploitable. Now at least it will be sufficient
to check the tainted value to know that someone called ha_panic(), and
it will also be usable to condition extra analysis.
include/haproxy/bug.h
src/debug.c