Files
Alastair Houghton cc0fb6e4da [Backtracing] Avoid TOCTOU races during backtracing on Linux.
On Linux, if one thread generates a backtrace while another is busy
unmapping a file, the memory map can change after the backtracer's code
has read it, which then means that the backtracer can crash attempting
to access memory while it is trying to enumerate loaded images.

Fix by changing the way we read memory on Linux so that by default,
we do so in a failable manner.

Fixes #92089

rdar://186982100
2026-09-17 10:50:35 +01:00
..