Skip to content

Conversation

@zephyrbot
Copy link

@zephyrbot zephyrbot commented Dec 2, 2024

Backport 30b30c2 from #82231.

Fixes #82427

lwm2m_engine_set() and lwm2m_engine_get() locks
the registry_lock mutex, but this is not unlocked
when setting or getting a time resource where the buffer
lengths are invalid resulting in an early return without
unlocking the mutex. This results in a deadlock when
attempting to lock the registry in another thread.

Signed-off-by: Steven Poon <[email protected]>
(cherry picked from commit 30b30c2)
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues area: LWM2M labels Dec 2, 2024
@dkalowsk dkalowsk added this to the v4.0.1 milestone Dec 9, 2024
@dkalowsk dkalowsk merged commit 9c63873 into v4.0-branch Dec 9, 2024
29 of 30 checks passed
@dkalowsk dkalowsk deleted the backport-82231-to-v4.0-branch branch December 9, 2024 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: LWM2M Backport Backport PR and backport failure issues

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants