Skip to content

Commit f7e1d19

Browse files
rostedtJonathan Corbet
authored andcommitted
Documentation/tracing: Mention that RESET_ATTACK_MITIGATION can clear memory
At the 2024 Linux Plumbers Conference, I was talking with Hans de Goede about the persistent buffer to display traces from previous boots. He mentioned that UEFI can clear memory. In my own tests I have not seen this. He later informed me that it requires the config option: CONFIG_RESET_ATTACK_MITIGATION It appears that setting this will allow the memory to be cleared on boot up, which will definitely clear out the trace of the previous boot. Add this information under the trace_instance in kernel-parameters.txt to let people know that this can cause issues. Link: https://lore.kernel.org/all/[email protected]/ Reported-by: Hans de Goede <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f3904bb commit f7e1d19

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6867,6 +6867,12 @@
68676867

68686868
reserve_mem=12M:4096:trace trace_instance=boot_map^traceoff^traceprintk@trace,sched,irq
68696869

6870+
Note, saving the trace buffer across reboots does require that the system
6871+
is set up to not wipe memory. For instance, CONFIG_RESET_ATTACK_MITIGATION
6872+
can force a memory reset on boot which will clear any trace that was stored.
6873+
This is just one of many ways that can clear memory. Make sure your system
6874+
keeps the content of memory across reboots before relying on this option.
6875+
68706876
See also Documentation/trace/debugging.rst
68716877

68726878

0 commit comments

Comments
 (0)