Skip to content

20251106-linuxkm-PIE-inline-thunks#9399

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
douzzer:20251106-linuxkm-PIE-inline-thunks
Nov 7, 2025
Merged

20251106-linuxkm-PIE-inline-thunks#9399
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
douzzer:20251106-linuxkm-PIE-inline-thunks

Conversation

@douzzer
Copy link
Copy Markdown
Contributor

@douzzer douzzer commented Nov 6, 2025

linuxkm/Kbuild: when ENABLED_LINUXKM_PIE, use inline thunks on all objects, not just PIE objects, to resolve false-positive "unpatched thunk" warnings on some kernels/configs. also cleans up flag setup more generally.

testing with wolfssl-multi-test.sh ... '.*insmod.*'

note this only resolves runtime "Unpatched return thunk in use. This should not happen!" messages on FIPS modules. there is still a

warning: objtool: wolfCrypt_FIPS_first+0x6: unannotated intra-function call

at build time with some kernels, but this is completely benign and apparently can't be fixed without altering source code to add (pointless) annotations.

…jects, not just PIE objects, to resolve false-positive "unpatched thunk" warnings on some kernels/configs. also cleans up flag setup more generally.
@douzzer
Copy link
Copy Markdown
Contributor Author

douzzer commented Nov 7, 2025

final tally for 53a20f4928 with build env 9092d61e02: all 78 selected checks succeeded.

@JacobBarthelmeh JacobBarthelmeh merged commit 222f608 into wolfSSL:master Nov 7, 2025
260 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