-
Notifications
You must be signed in to change notification settings - Fork 922
20251126-linuxkm-full-reloc-support #9730
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
Open
douzzer
wants to merge
7
commits into
wolfSSL:master
Choose a base branch
from
douzzer:20251126-linuxkm-full-reloc-support
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
20251126-linuxkm-full-reloc-support #9730
douzzer
wants to merge
7
commits into
wolfSSL:master
from
douzzer:20251126-linuxkm-full-reloc-support
+496
−199
Conversation
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
…ensslextra (i.e. retain opensslextra implicit to --enable-all), remove -DWOLFSSL_LINUXKM_VERBOSE_DEBUG, and use --enable-all-asm rather than --enable-intelasm --disable-sp-asm; in second secnario, add -DDEBUG_LINUXKM_PIE_SUPPORT.
…ert.h if __STDC_VERSION__ or __cplusplus denotes presence, even if WOLFSSL_HAVE_ASSERT_H is unset.
…() until after GCM_generate_m0_*().
…refactor wc_linuxkm_normalize_relocations() and associated types and objects: * change wc_linuxkm_pie_reloc_tab from unsigned int[] to struct wc_linuxkm_pie_reloc_tab_ent[], with dest_segment and reloc_type members; * add enum wc_reloc_dest_segment and enum wc_reloc_type; * update GENERATE_RELOC_TAB recipe in Makefile to render the dest segment and reloc type; * add struct reloc_layout_ent, and reloc_layouts[] fully populated for x86 and ARM relocations; * refactor find_reloc_tab_offset() and wc_linuxkm_normalize_relocations() to reflect the above; linuxkm/module_hooks.c: tweak various printf format characters and arguments for compatibility with ARM32; linuxkm/linuxkm_wc_port.h: include linux/inet.h and define wc_linuxkm_inet_pton() and XINET_PTON(), unless WOLFCRYPT_ONLY.
…fSSL#9705: remove !WOLFSSL_LINUXKM gates, and fix nullPointerArithmeticRedundantCheck in ExtractHostFromUri().
Contributor
Author
|
fixes ZD 21136 |
Contributor
Author
|
retest this please |
…n() and definition of XINET_PTON() inside BUILDING_WOLFSSL guard.
…der check: certificate before CKE" from 5b6f86b on !WOLFSSL_NO_CLIENT_AUTH.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
linuxkm/linuxkm_wc_port.h,linuxkm/module_hooks.c,linuxkm/Makefile: refactorwc_linuxkm_normalize_relocations()and associated types and objects:wc_linuxkm_pie_reloc_tabfromunsigned int[] tostruct wc_linuxkm_pie_reloc_tab_ent[], withdest_segmentandreloc_typemembers;enum wc_reloc_dest_segmentandenum wc_reloc_type;GENERATE_RELOC_TABrecipe inMakefileto render the dest segment and reloc type;struct reloc_layout_ent, andreloc_layouts[]fully populated for x86 and ARM relocations;find_reloc_tab_offset()andwc_linuxkm_normalize_relocations()to reflect the above;linuxkm/module_hooks.c: tweak variousprintfformat characters and arguments for compatibility with ARM32;linuxkm/linuxkm_wc_port.h: includelinux/inet.hand definewc_linuxkm_inet_pton()andXINET_PTON(), unlessWOLFCRYPT_ONLY..github/workflows/linuxkm.yml: in first scenario, remove--disable-opensslextra(i.e. retain opensslextra implicit to--enable-all), remove-DWOLFSSL_LINUXKM_VERBOSE_DEBUG, and use--enable-all-asmrather than--enable-intelasm --disable-sp-asm; in second secnario, add-DDEBUG_LINUXKM_PIE_SUPPORT.wolfssl/wolfcrypt/types.h: in setup forwc_static_assert, includeassert.hif__STDC_VERSION__or__cplusplusdenotes presence, even ifWOLFSSL_HAVE_ASSERT_His unset.wolfcrypt/src/aes.c: inwc_AesGcmSetKey(), don'tVECTOR_REGISTERS_POP()until afterGCM_generate_m0_*().src/ssl_sk.c,src/x509.c,wolfssl/ssl.h: tweaks and fixes to #9705: remove !WOLFSSL_LINUXKMgates, and fixnullPointerArithmeticRedundantCheckinExtractHostFromUri().tested with
wolfssl-multi-test.sh ... pr-check '.*insmod.*'and with FIPS libwolfssl.ko build and load targeting ARM32.