Skip to content

[NOT FOR UPSTREAM] ASoC: SOF: ipc4-mtrace: Fix NULL dereference on reboot caused by not for upstream patch#5505

Merged
ujfalusi merged 2 commits intothesofproject:topic/sof-devfrom
ujfalusi:peter/sof/pr/debug-interface-mtrace-crash-fix
Aug 12, 2025
Merged

[NOT FOR UPSTREAM] ASoC: SOF: ipc4-mtrace: Fix NULL dereference on reboot caused by not for upstream patch#5505
ujfalusi merged 2 commits intothesofproject:topic/sof-devfrom
ujfalusi:peter/sof/pr/debug-interface-mtrace-crash-fix

Conversation

@ujfalusi
Copy link
Collaborator

@ujfalusi ujfalusi commented Aug 7, 2025

Hi,

on reboot/shutdown the kernel crashes since the mtrace private data is freed up.
Revert that patch and replace it with a one which re-initializes the mtrace private data on consequent init in case the debug ops test is in use.

… ipc4_mtrace_free()"

This reverts commit e551714.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
…guration

Allow re-initialization of private data of mtrace without module removal.
This can only happen with the non upstream debug interface.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Copy link
Collaborator

@singalsu singalsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the shutdown panic issue, thanks Peter!

@ujfalusi ujfalusi merged commit 4ba55e5 into thesofproject:topic/sof-dev Aug 12, 2025
10 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants