Page MenuHomeFreeBSD

Prevent bge_init and bge_rxeof from running in parallel
Needs ReviewPublic

Authored by rstone on Oct 24 2017, 3:53 AM.
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 OK
Unit
No Unit Test Coverage
Build Status
Buildable 12197
Build 12495: arc lint + arc unit

Event Timeline

rstone created this revision.Oct 24 2017, 3:53 AM