Skip to content

Commit 8131eeb

Browse files
authored
[scudo] document allocation_ring_buffer_size (#71812)
1 parent 3001d6d commit 8131eeb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

llvm/docs/ScudoHardenedAllocator.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,22 @@ The following "string" options are available:
250250
| | | | can be attempted (a negative value disables |
251251
| | | | reclaiming). |
252252
+---------------------------------+----------------+----------------+-------------------------------------------------+
253+
| allocation_ring_buffer_size | 32768 | n/a | If stack trace collection is requested, how |
254+
| | | | many previous allocations to keep in the |
255+
| | | | allocation ring buffer. |
256+
| | | | |
257+
| | | | This buffer is used to provide allocation and |
258+
| | | | deallocation stack traces for MTE fault |
259+
| | | | reports. The larger the buffer, the more |
260+
| | | | unrelated allocations can happen between |
261+
| | | | (de)allocation and the fault. |
262+
| | | | If your sync-mode MTE faults do not have |
263+
| | | | (de)allocation stack traces, try increasing the |
264+
| | | | buffer size. |
265+
| | | | |
266+
| | | | Stack trace collection can be requested using |
267+
| | | | scudo_malloc_set_track_allocation_stacks |
268+
+---------------------------------+----------------+----------------+-------------------------------------------------+
253269

254270
Additional flags can be specified, for example if Scudo if compiled with
255271
`GWP-ASan <https://llvm.org/docs/GwpAsan.html>`_ support.

0 commit comments

Comments
 (0)