diff options
| author | Pavel Skripkin <[email protected]> | 2023-04-12 21:55:44 +0300 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2023-04-28 11:47:01 -0600 |
| commit | 763f0a1f0d2b3ee0b3f7248dee874c3e65e93345 (patch) | |
| tree | 8cb675399a2a603c012091a658b94c072bde5515 /include/linux | |
| parent | c383e85434f1f278a55134213cd1b7125185c429 (diff) | |
sandbox: disable tracing before unmapping RAM
Currently doing 'reset' command in sandbox with tracing enabled causes
SIGSEV
```
Hit any key to stop autoboot: 0
=>
=>
=> reset
resetting ...
Segmentation fault (core dumped)
```
Tracing callback uses RAM buffer for storing tracing reports, but
state_uninit() function unmaps whole RAM, which causes SIGSEV on umapped
memory inside tracing subsystem.
Fix it by disabling tracing before unmapping memory
Signed-off-by: Pavel Skripkin <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Add missing check for CONFIG_TRACE:
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
