Skip to content

[release/7.0] Fix native memory leak on OCSP_Response - #96578

Merged
rzikm merged 3 commits into
release/7.0-stagingfrom
backport/pr-96561-to-release/7.0-staging
Jan 16, 2024
Merged

[release/7.0] Fix native memory leak on OCSP_Response#96578
rzikm merged 3 commits into
release/7.0-stagingfrom
backport/pr-96561-to-release/7.0-staging

Conversation

@github-actions

@github-actions github-actions Bot commented Jan 6, 2024

Copy link
Copy Markdown
Contributor

Backport of #96561 to release/7.0-staging.
Fixes #96616.

/cc @rzikm

Customer Impact

Regression: Yes, after upgrade to .NET 7 or .NET 8, OCSP stapling is new by-default enabled feature (introduced by #67011) which introduced also the memory leak, if the app uses the “right” APIs and server supports OCSP.
Customer impact: 5 independent reports in last 6 months. Hard to diagnose issue (took at least 1 engineering month just to root cause)

Slow native memory leak under specific feature conditions (see below) leading to increased memory footprint and later application crash. Impacts service availability.

Affected scenario is a specific subset of client authentication during TLS connection:

Testing

Tested on a small application which reproduced the memory leak. The leak is gone after this change.
Customer validation:

Risk

Low, one-line change.

@ghost ghost added the area-System.Security label Jan 6, 2024
@ghost

ghost commented Jan 6, 2024

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #96561 to release/7.0-staging

/cc @rzikm

Customer Impact

Testing

Risk

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

  • If the change touches code that ships in a NuGet package, you have added the necessary package authoring and gotten it explicitly reviewed.

Author: github-actions[bot]
Assignees: -
Labels:

area-System.Security

Milestone: -

@rzikm rzikm self-assigned this Jan 11, 2024
@carlossanlop

Copy link
Copy Markdown
Contributor

@rzkim - Friendly reminder that Tuesday January 16th 4pm is the Code Complete deadline for the February Release. If all requirements are met, please merge your PR before that date and time to ensure this fix gets included in that Release.

@karelz karelz added the Servicing-consider Issue for next servicing release review label Jan 15, 2024
@rzikm rzikm changed the title [release/7.0-staging] Fix native memory leak on OCSP_Response [release/7.0] Fix native memory leak on OCSP_Response Jan 15, 2024
@karelz karelz added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Jan 16, 2024
@karelz

karelz commented Jan 16, 2024

Copy link
Copy Markdown
Member

Approved by Tactics (@SteveMCarroll) on 1/15 via email - label updated to Servicing-approved.

@rzikm

rzikm commented Jan 16, 2024

Copy link
Copy Markdown
Member

CI failure is unrelated (wasm)

@rzikm
rzikm merged commit daeac23 into release/7.0-staging Jan 16, 2024
@jkotas
jkotas deleted the backport/pr-96561-to-release/7.0-staging branch January 20, 2024 03:19
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Security Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants