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)
Thu, Dec 11, 4:49 AM
Unknown Object (File)
Nov 19 2025, 12:07 PM
Unknown Object (File)
Nov 8 2025, 3:44 AM
Unknown Object (File)
Nov 6 2025, 1:57 AM
Unknown Object (File)
Oct 30 2025, 3:24 PM
Unknown Object (File)
Oct 14 2025, 2:22 PM
Unknown Object (File)
Sep 21 2025, 1:52 PM
Unknown Object (File)
Sep 18 2025, 8:18 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