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
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
Unknown Object (File)
Nov 13 2023, 12:37 PM
Unknown Object (File)
Oct 25 2023, 8:52 AM
Unknown Object (File)
Sep 29 2023, 6:18 PM
Unknown Object (File)
Sep 26 2023, 5:30 PM

Details

Summary

Change logic to check tx_avail < nsegs + reserved_space

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.