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

[Backport v4.1-branch] logging: Ensure atomic update of log filter slot in LOG_FILTER_SLOT_SET #87302

Open
wants to merge 1 commit into
base: v4.1-branch
Choose a base branch
from

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Mar 18, 2025

Backport 872f363 from #87099.

Fixes #86954

Replaced the read-modify-write sequence with a single read and write
operation, preventing the intermediate value is wrongly used to filter
out logs of another thread with higher priority that preempts the current
thread.

Signed-off-by: Dong Wang <[email protected]>
(cherry picked from commit 872f363)
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues area: Logging labels Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Logging Backport Backport PR and backport failure issues
Projects
Status: To do
Development

Successfully merging this pull request may close these issues.

4 participants