Skip to content

IoUring: Correctly handle the case when malloc fails during probe#16501

Merged
chrisvest merged 1 commit into
4.2from
ring_malloc
Mar 17, 2026
Merged

IoUring: Correctly handle the case when malloc fails during probe#16501
chrisvest merged 1 commit into
4.2from
ring_malloc

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

Motivation:

If malloc returns NULL we need to return early and report this back to the caller as otherwise memset(...) will crash.

Modifications:

Check if malloc fails and if so throw an OutOfMemoryException

Result:

No more crashes if malloc fails during probe

Motivation:

If malloc returns NULL we need to return early and report this back to the caller as otherwise memset(...) will crash.

Modifications:

Check if malloc fails and if so throw an OutOfMemoryException

Result:

No more crashes if malloc fails during probe
@normanmaurer normanmaurer added this to the 4.2.11.Final milestone Mar 17, 2026
@chrisvest chrisvest added the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Mar 17, 2026
@chrisvest chrisvest merged commit 0bb69f9 into 4.2 Mar 17, 2026
22 checks passed
@chrisvest chrisvest deleted the ring_malloc branch March 17, 2026 20:21
netty-project-bot pushed a commit that referenced this pull request Mar 17, 2026
…6501)

Motivation:

If malloc returns NULL we need to return early and report this back to
the caller as otherwise memset(...) will crash.

Modifications:

Check if malloc fails and if so throw an OutOfMemoryException

Result:

No more crashes if malloc fails during probe

(cherry picked from commit 0bb69f9)
@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port PR for 5.0: #16513

@github-actions github-actions Bot removed the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Mar 17, 2026
chrisvest pushed a commit that referenced this pull request Mar 17, 2026
…uring probe (#16513)

Auto-port of #16501 to 5.0
Cherry-picked commit: 0bb69f9

---
Motivation:

If malloc returns NULL we need to return early and report this back to
the caller as otherwise memset(...) will crash.

Modifications:

Check if malloc fails and if so throw an OutOfMemoryException

Result:

No more crashes if malloc fails during probe

Co-authored-by: Norman Maurer <norman_maurer@apple.com>
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