mirror of https://github.com/thesofproject/sof.git
trace: enforce mailbox size
If we are fuzzing we can get the trace system into a state where it tries flush dma and overshoot the mailbox boundary. Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
This commit is contained in:
parent
60dfaa7ee3
commit
221189d3f7
|
@ -401,6 +401,8 @@ void dma_trace_flush(void *t)
|
|||
(char *)buffer->addr;
|
||||
}
|
||||
|
||||
size = MIN(size, MAILBOX_TRACE_SIZE);
|
||||
|
||||
/* invalidate trace data */
|
||||
dcache_invalidate_region((void *)t, size);
|
||||
|
||||
|
|
Loading…
Reference in New Issue