mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-10 22:22:57 +02:00
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.
This commit is contained in:
@@ -415,6 +415,8 @@ void ha_panic()
|
||||
struct buffer *old;
|
||||
unsigned int thr;
|
||||
|
||||
mark_tainted(TAINTED_PANIC);
|
||||
|
||||
old = NULL;
|
||||
if (!HA_ATOMIC_CAS(&thread_dump_buffer, &old, get_trash_chunk())) {
|
||||
/* a panic dump is already in progress, let's not disturb it,
|
||||
|
||||
Reference in New Issue
Block a user