Page MenuHomeFreeBSD

Fix invalid enqueue of NULL in bxe tx path
ClosedPublic

Authored by rstone on Jun 30 2016, 4:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 18 2025, 12:43 AM
Unknown Object (File)
Dec 9 2024, 1:08 PM
Unknown Object (File)
Nov 25 2024, 6:17 AM
Unknown Object (File)
Nov 24 2024, 2:31 PM
Unknown Object (File)
Nov 22 2024, 9:07 PM
Unknown Object (File)
Nov 22 2024, 8:39 AM
Unknown Object (File)
Nov 21 2024, 6:14 PM
Unknown Object (File)
Nov 20 2024, 9:13 PM
Subscribers

Details

Summary

bxe could incorrectly enqueue NULL on its buf_ring. Most places
in the driver explicitly test for this case and skip it the enqueue
when the mbuf, but one case missed it.

Test Plan

With INVARIANTS enabled, ran a test that stressed the tx path. Under
an overload condition NULL could be enqueued twice to the buf_ring,
leading to an kassert firing.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4379
Build 4429: arc lint + arc unit

Event Timeline

rstone retitled this revision from to Fix invalid enqueue of NULL in bxe tx path.
rstone updated this object.
rstone edited the test plan for this revision. (Show Details)
rstone added a reviewer: davidcs.
This revision was automatically updated to reflect the committed changes.