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)
Wed, Apr 24, 9:41 PM
Unknown Object (File)
Dec 20 2023, 1:12 AM
Unknown Object (File)
Mar 21 2023, 11:41 AM
Unknown Object (File)
Mar 3 2023, 4:15 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