Page MenuHomeFreeBSD

Prevent bge_init and bge_rxeof from running in parallel
Needs ReviewPublic

Authored by rstone on Oct 24 2017, 3:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 24 2024, 10:13 AM
Unknown Object (File)
Oct 25 2024, 5:43 PM
Unknown Object (File)
Sep 21 2024, 4:14 PM
Unknown Object (File)
Sep 17 2024, 2:13 PM
Unknown Object (File)
Sep 17 2024, 3:44 AM
Unknown Object (File)
Sep 6 2024, 9:46 PM
Unknown Object (File)
Aug 16 2024, 10:03 PM
Unknown Object (File)
May 7 2024, 12:58 PM
Subscribers
None
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Fix a race that allowed bge_rxeof to send an mbuf up the stack
while another thread running bge_init was freeing it. This would
lead to a double free of the mbuf and potential memory corruption.

MFC after: 1 week
Sponsored by: Dell EMC Isilon

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 12197
Build 12495: arc lint + arc unit