Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

3.1: make sure we have big enough buffer to prevent endless spin while dumping route table on OSX#42800

Merged
Anipik merged 1 commit intodotnet:release/3.1from
wfurt:port_42634
Jan 14, 2020
Merged

3.1: make sure we have big enough buffer to prevent endless spin while dumping route table on OSX#42800
Anipik merged 1 commit intodotnet:release/3.1from
wfurt:port_42634

Conversation

@wfurt
Copy link
Member

@wfurt wfurt commented Jan 6, 2020

Description
This is port of dotnet/runtime#591 to address dotnet core 3 on macOS Catalina: NetworkInterface causes high CPU #42634. Existing code assumes that when provided buffer is too small, sysctl() will update provided length. However that is happening only when NULL is passed in and we will en dup in endless spin trying to re-allocate to same size.

Impact
This is race condition impacting OSX only. However, when it happens, we spin in native PAL code and there is no recovery or workaround.

Regression?

No.

Risk

Small. Fix is in OSX pal code and does not impact other platforms. Fix was verified by impacted customer.

fixes #42634

@wfurt wfurt added area-System.Net os-mac-os-x OS-X aka Mac OS Servicing-consider Issue for next servicing release review labels Jan 6, 2020
@wfurt wfurt added this to the 3.1.x milestone Jan 6, 2020
@wfurt wfurt requested a review from stephentoub January 6, 2020 19:07
@wfurt wfurt self-assigned this Jan 6, 2020
@jamshedd jamshedd added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Jan 9, 2020
@jamshedd
Copy link
Member

jamshedd commented Jan 9, 2020

Approved for March.

@danmoseley danmoseley modified the milestones: 3.1.x, 3.1.3, 3.1.2 Jan 9, 2020
@danmoseley
Copy link
Member

Moved back to 3.1.2 per tactics.

@Anipik Anipik merged commit 2723066 into dotnet:release/3.1 Jan 14, 2020
@wfurt wfurt deleted the port_42634 branch June 15, 2020 18:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Net os-mac-os-x OS-X aka Mac OS Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants