Page MenuHomeFreeBSD

Avoid underflow during calculation of space avail for nsegs
ClosedPublic

Authored by sbruno on Apr 11 2016, 6:15 PM.
Tags
None
Referenced Files
F82818326: D5918.id.diff
Thu, May 2, 8:58 PM
F82816813: D5918.id15300.diff
Thu, May 2, 8:41 PM
Unknown Object (File)
Thu, May 2, 7:50 PM
Unknown Object (File)
Thu, May 2, 7:16 PM
Unknown Object (File)
Sat, Apr 6, 7:29 AM
Unknown Object (File)
Feb 6 2024, 12:40 PM
Unknown Object (File)
Dec 23 2023, 8:46 AM
Unknown Object (File)
Dec 1 2023, 1:33 PM

Details

Summary

Change logic to check tx_avail < nsegs + reserved_space

Diff Detail

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

Event Timeline

sbruno retitled this revision from to Avoid underflow during calculation of space avail for nsegs.
sbruno updated this object.
sbruno edited the test plan for this revision. (Show Details)
sbruno added reviewers: hiren, gnn.
gnn edited edge metadata.
This revision is now accepted and ready to land.Apr 11 2016, 9:32 PM

Just tagging you guys to see if this makes sense. I saw the em(4) driver underflow this calculation with dtrace and suspected that there is a small chance the other Intel drivers may do the same in extreme conditions considering that the code is basically the same.

Looks good to me.

Thanks jeb. "approve" this review with the Action pull down when you get a chance.

This revision was automatically updated to reflect the committed changes.