-
Notifications
You must be signed in to change notification settings - Fork 2
Harden wolfTrust service isolation and recovery #22
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
Merged
mattia-moffa
merged 41 commits into
wolfSSL:main
from
aidangarske:fenrir-fixes-14095-14127
Oct 1, 2026
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
94d1d05
F-14097 - Correct boot pointer-validation comment
aidangarske 428f17f
F-14098 - Clarify VNET RX token exposure
aidangarske b6ef58e
F-14096 - Correct secure partition privilege comments
aidangarske ac7ce64
F-14111 - Make queued mutex acquisition idempotent
aidangarske b5ae318
F-14114 - Check active coroutine stack canaries
aidangarske b8a584b
F-14104 - Panic on invalid wait output pointers
aidangarske 79cce87
F-14112 - Dispatch runnable lock waiters
aidangarske 87caad9
F-14118 - Erase shared HSM relay buffers
aidangarske 4437d7f
F-14124 - Erase HSM client response buffers
aidangarske d58af40
F-14125 - Erase storage client request copies
aidangarske 6dde2f5
F-14119 - Erase per-guest HSM relay buffers
aidangarske 93b0b0b
F-14122 - Erase HSM state during relay recovery
aidangarske c2b30f7
F-14123 - Erase HSM tasklet state on fault
aidangarske beba8d7
F-14095 - Correct HSM fault notification comments
aidangarske 30e3bc5
F-14109 - Restore residual virtual SysTick period
aidangarske f1d60ab
F-14126 - Scrub restart-clear RAM before quarantine
aidangarske e34bf46
F-14127 - Erase non-word-aligned guest RAM tails
aidangarske bd769d0
F-14108 - Release IPC resources on quarantine
aidangarske a424c1c
F-14101 - Address the Non-secure NVIC banks
aidangarske 504a823
F-14102 - Support the full Secure IRQ range
aidangarske 696be66
F-14120 - Erase flash programming words
aidangarske 1faaa9d
F-14121 - Erase flash read-back buffers
aidangarske 03806c6
F-14117 - Pad unaligned firmware update writes
aidangarske 02eaf74
F-14107 - Preserve FWU state when disarm fails
aidangarske 7971342
F-14099 - Erase vault request and plaintext buffers
aidangarske e11d10f
F-14100 - Erase storage request and plaintext buffers
aidangarske f752dfb
F-14106 - Preserve sealed removal and reject key deletion
aidangarske 1303542
F-14106 - Cover sealed deletion recovery
aidangarske 316d252
F-14111 - Cover queued mutex handoff
aidangarske 849197b
F-14123 - Preserve HSM fault canary
aidangarske 97b8895
F-14117 - Cover padded FWU writes
aidangarske 7effa55
F-14107 - Cover failed FWU disarm
aidangarske be6183b
F-14127 - Keep guest RAM clearing word-efficient
aidangarske fd179ea
F-14100 - Keep full buffer clearing responsive
aidangarske 2226982
F-14109 - Reset and latch guest SysTick safely
aidangarske 143023a
F-14118 - Preserve relay flow while clearing packets
aidangarske 6de4635
F-14111 - Correct lock-wait diagnostic comment
aidangarske d8b5d76
F-14123 - Keep HSM tasklet faults contained
aidangarske cb90aa4
F-14106 - Preserve keys during sealed delete recovery
aidangarske 9d30f4e
Reject key deletion through vault storage remove
aidangarske 3faf8f4
Wipe a faulted wolfHSM tasklet stack through the SPM-private stack mo…
aidangarske File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| /* zeroize.h | ||
| * | ||
| * Copyright (C) 2026 wolfSSL Inc. | ||
| * | ||
| * This file is part of wolfTrust. | ||
| * | ||
| * wolfTrust is free software; you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation; either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * wolfTrust is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License | ||
| * along with this program; if not, see <https://www.gnu.org/licenses/>. | ||
| */ | ||
|
|
||
| #ifndef WOLFTRUST_ZEROIZE_H | ||
| #define WOLFTRUST_ZEROIZE_H | ||
|
|
||
| #include <stddef.h> | ||
|
|
||
| static inline void wt_forceZero(void* memory, size_t size) | ||
| { | ||
| volatile unsigned char* bytes = (volatile unsigned char*)memory; | ||
|
|
||
| while (size >= 4U) { | ||
| bytes[0] = 0U; | ||
| bytes[1] = 0U; | ||
| bytes[2] = 0U; | ||
| bytes[3] = 0U; | ||
| bytes += 4; | ||
| size -= 4U; | ||
| } | ||
| while (size > 0U) { | ||
| *bytes++ = 0U; | ||
| size--; | ||
| } | ||
| } | ||
|
|
||
| #endif /* WOLFTRUST_ZEROIZE_H */ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.