Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CIONLY] Checking for new crashes after the update #9692

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tmleman
Copy link
Contributor

@tmleman tmleman commented Nov 28, 2024

No description provided.

kv2019i and others added 4 commits November 28, 2024 15:12
Total of 327 commits.

Changes include:

a14ae39e7447 driver: ssp: remove use of out-of-tree CONFIG_INTEL_MN
3d3ffa2c059d soc: intel_adsp/ace30: do not map 0x0
58df2533bbbf drivers: dma: intel-adsp-hda: coding style fix
1bafbf4f1d11 drivers: dma: intel-adsp-hda: optimize L1 exit handling in ISR

Signed-off-by: Kai Vehmanen <[email protected]>
The Zephyr SSP driver has had dependency to CONFIG_INTEL_NM
defined in SOF, so this has not been removed before. This is
now cleaned up on Zephyr side, so we can proceed to remove
the remaining bits of the Intel MN driver on SOF side.

Signed-off-by: Kai Vehmanen <[email protected]>
This patch addresses a NULL dereference issue in the SOF firmware that
was exposed by a recent change in Zephyr's MMU mapping for Intel ADSP
ACE30. The change prevents mapping of the 0x0 address, which helps catch
NULL pointer accesses.

The issue was identified during testing, where an exception occurred due
to uninitialized buffer lists in the `comp_dev` structure. The
`list_init` function is called in `comp_new()` (for both IPC3 and IPC4),
but a NULL dereference can happen in the component `ops->create()`
function, which is called before the list is initialized. One affected
component is IPC4 `copier_ipcgtw`.

To fix this, the `bsink_list` and `bsource_list` are now initialized in
the `comp_alloc` function. This ensures that the lists point to
themselves before any use, preventing NULL dereference and subsequent
exceptions.

Link: thesofproject#9687

Signed-off-by: Tomasz Leman <[email protected]>
(cherry picked from commit 5f5588c)
This patch addresses a potential NULL pointer dereference issue in the
`devicelist_reset` function within the Key Phrase Buffer (KPB)
component. The issue was exposed by a recent change in Zephyr's MMU
mapping for Intel ADSP ACE30, which now catches NULL pointer accesses.

The `devicelist_reset` function previously iterated over the entire
`DEVICE_LIST_SIZE` when clearing items and zeroing pointers, which could
lead to dereferencing NULL pointers. The fix involves iterating only up
to `devlist->count` to ensure that only valid pointers are accessed.

This change prevents potential NULL pointer dereference and ensures the
stability of the KPB component.

Link: thesofproject#9687

Signed-off-by: Tomasz Leman <[email protected]>
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.

2 participants