Skip to content

Use ENOMEM return and add goto out on AAD error with linuxkm#9971

Open
JacobBarthelmeh wants to merge 2 commits intowolfSSL:masterfrom
JacobBarthelmeh:linuxkm
Open

Use ENOMEM return and add goto out on AAD error with linuxkm#9971
JacobBarthelmeh wants to merge 2 commits intowolfSSL:masterfrom
JacobBarthelmeh:linuxkm

Conversation

@JacobBarthelmeh
Copy link
Contributor

f-631 & f-669

@JacobBarthelmeh JacobBarthelmeh self-assigned this Mar 13, 2026
Copilot AI review requested due to automatic review settings March 13, 2026 20:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Aligns kernel-module error handling with platform conventions by returning -ENOMEM on allocation failures and ensuring early exit/cleanup when AAD processing fails.

Changes:

  • Replace -MEMORY_E with -ENOMEM for allocation failures in Linux KM AES init paths.
  • Add goto to a common exit path on AAD error in GCM work handling.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
linuxkm/lkcapi_aes_glue.c Switch allocation-failure returns to Linux-standard -ENOMEM.
bsdkm/wolfkmod.c Jump to shared cleanup/exit path when AAD setup reports an error.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@JacobBarthelmeh
Copy link
Contributor Author

Retest this please Jenkins. Windows test connection failure.

@JacobBarthelmeh
Copy link
Contributor Author

Retest this please Jenkins. Multi-test failure AIL scripts/ocsp-stapling-with-wolfssl-responder.test (exit status: 1)

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.

2 participants