[llvm] [scudo] document allocation_ring_buffer_size (PR #71812)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 06:32:12 PST 2023


https://github.com/fmayer created https://github.com/llvm/llvm-project/pull/71812

None

>From da66638c0d49099feda676a87b1842cb60986443 Mon Sep 17 00:00:00 2001
From: Florian Mayer <fmayer at google.com>
Date: Thu, 9 Nov 2023 06:23:38 -0800
Subject: [PATCH] [scudo] document allocation_ring_buffer_size

---
 llvm/docs/ScudoHardenedAllocator.rst | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/llvm/docs/ScudoHardenedAllocator.rst b/llvm/docs/ScudoHardenedAllocator.rst
index 3862415111960ff..64580d271fcc410 100644
--- a/llvm/docs/ScudoHardenedAllocator.rst
+++ b/llvm/docs/ScudoHardenedAllocator.rst
@@ -250,6 +250,16 @@ The following "string" options are available:
 |                                 |                |                | can be attempted (a negative value disables     |
 |                                 |                |                | reclaiming).                                    |
 +---------------------------------+----------------+----------------+-------------------------------------------------+
+| allocation_ring_buffer_size     | 32768          | n/a            | When MTE is enabled, how many allocations to    |
+|                                 |                |                | keep in the allocation ring buffer. This buffer |
+|                                 |                |                | is used to provide allocation and deallocation  |
+|                                 |                |                | stack traces for MTE fault reports. The larger  |
+|                                 |                |                | the buffer, the more unrelated allocations can  |
+|                                 |                |                | happen between (de)allocation and the fault.    |
+|                                 |                |                | If your sync-mode MTE faults do not have        |
+|                                 |                |                | (de)allocation stack traces, try increasing the |
+|                                 |                |                | buffer size.                                    |
++---------------------------------+----------------+----------------+-------------------------------------------------+
 
 Additional flags can be specified, for example if Scudo if compiled with
 `GWP-ASan <https://llvm.org/docs/GwpAsan.html>`_ support.



More information about the llvm-commits mailing list