Skip to content

Fix lock wakeups and context lifecycle cleanup - #100

Open
aidangarske wants to merge 11 commits into
wolfSSL:masterfrom
aidangarske:fenrir-fixes-10487-11600-8775-8765
Open

aidangarske wants to merge 11 commits into
wolfSSL:masterfrom
aidangarske:fenrir-fixes-10487-11600-8775-8765

Conversation

@aidangarske

Copy link
Copy Markdown
Member

F-10487 - 2e8d03a - The AUTO_DOWNGRADE unlock path is now reachable and consistent.

F-11600 - 5e70b32 - Unlock now posts one reader wakeup per queued reader, so no waiting reader is stranded.

F-8775 - ffb4f55 - wolfsentry_object_release now rejects table-less objects instead of dereferencing NULL.

F-8765 - 252293c - The ThreadX semaphore shims now implement timed and try semantics.

F-8750 - 66387a2 - A partially allocated context is now freed without needing an owned mutex.

F-10492 - e8b7575 - wolfsentry_context_clone now frees the clone when its mutex cannot be taken.

F-15470 - 1ec0e5c - An as-at-creation clone now gets its own fallthrough route.

F-11601 - 8e6bba6 - wolfsentry_init_ex now frees a partially initialized context when it fails.

F-10497 - 756849c - wolfsentry_init_ex now fails when a duration conversion is rejected.

F-6507 - fcb7493 - wolfsentry_context_exchange now refreshes the lock-free copy of the default policy.

…WNGRADE unlock path reachable and consistent
…objects in wolfsentry_object_release instead of dereferencing NULL
…d try semantics in the ThreadX semaphore shims
…hen its mutex cannot be taken in wolfsentry_context_clone
… initialized context when wolfsentry_init_ex fails
…init_ex when a duration conversion is rejected
…ree default policy copy in wolfsentry_context_exchange
@aidangarske aidangarske self-assigned this Oct 23, 2026
…ventconfig field in the context lifecycle tests for C89 builds

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #100

Scan targets checked: wolfsentry-src, wolfsentry-bugs
Coverage: 1 of 2 in-scope changed file(s) opened by the reviewer; not opened: tests/unittests.c

Fenrir result: Approved ✅

No new issues found in the changed files.

Advisory only — this automated result does not count as a GitHub approval.

Review tier: Lite

@aidangarske
aidangarske marked this pull request as ready for review October 24, 2026 01:45
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.

4 participants