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

Syslog inbuffer #199

Merged
merged 2 commits into from
Feb 26, 2025
Merged

Syslog inbuffer #199

merged 2 commits into from
Feb 26, 2025

Conversation

crafcat7
Copy link
Contributor

Summary

When spinlock.h is enabled in a single-core scenario, spinlock reentry and exceptions may occur when spin_lock_irqsave_wo_note is used in syslog_add_intbuffer

Impact

Fixed deadlock problem with syslog_inbuffer

Testing

Spinlock is turned on in single-core Qemu for testing. It works normally during crash, avoiding being stuck

crafcat7 and others added 2 commits February 26, 2025 17:03
…k scenario

Summary:
  When spinlock.h is enabled in a single-core scenario, spinlock reentry and exceptions may occur when spin_lock_irqsave_wo_note is used in syslog_add_intbuffer

Signed-off-by: chenrun1 <[email protected]>
just read the code, still have the deadlock after below change:

| commit 3b6f463ce2b54d1934e4357b4ea1d81635161c95
| Author: chenrun1 <[email protected]>
| Date:   Tue Dec 31 14:31:46 2024 +0800
|
|     syslog_inbuffer:Fixed the lock reentry issue in single core + spinlock scenario
|
|     Summary:
|       When spinlock.h is enabled in a single-core scenario, spinlock reentry and exceptions may occur when spin_lock_irqsave_wo_note is used in syslog_add_intbuffer
|
|     Signed-off-by: chenrun1 <[email protected]>

Signed-off-by: chao an <[email protected]>
@xiaoxiang781216 xiaoxiang781216 merged commit 411513f into open-vela:dev Feb 26, 2025
3 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