https://bugs.llvm.org/show_bug.cgi?id=41592
Bug ID: 41592
Summary: ASan should provide d'tor stack traces for
use-after-poison.
Product: compiler-rt
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: asan
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
ASAN use-after-poison reports do not contain a strack trace for the destructor
of the object. This is a problem in allocation pools where the d'tor is called,
but free may be delayed. We do not get any stack trace for the deallocation,
and lifetime issues are hard to debug (https://reviews.llvm.org/D61048).
Consider this a proposal to add shadow bytes to logically identify { start of
poisoned zone, poisoned zone }. When we find a poisoned shadow byte, traverse
the shadow left to find the start of the poisoned zone.
We can store the destructor's trace in the stack depot, and use the poisoned
memory to store a pointer to the trace in the depot.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs