Page MenuHomeFreeBSD

net80211: fix possible overflow in IEEE80211_TU_TO_TICKS()
ClosedPublic

Authored by avos on Feb 13 2016, 9:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 25, 3:54 AM
Unknown Object (File)
Tue, Apr 14, 6:56 AM
Unknown Object (File)
Mon, Apr 13, 7:01 PM
Unknown Object (File)
Wed, Apr 8, 6:53 AM
Unknown Object (File)
Tue, Apr 7, 2:01 PM
Unknown Object (File)
Mon, Apr 6, 5:10 PM
Unknown Object (File)
Mon, Apr 6, 6:20 AM
Unknown Object (File)
Sun, Apr 5, 10:00 PM
Subscribers

Details

Summary

For hz=1000 any number, greater than 4194 causes integer overflow; this change casts the number to uint64_t before operating with it.

Test Plan

Should be reproducible with:
beacon interval: 300
beacon miss threshold: 15

Diff Detail

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

Event Timeline

avos retitled this revision from to net80211: fix possible overflow in IEEE80211_TU_TO_TICKS().
avos updated this object.
avos edited the test plan for this revision. (Show Details)
avos added a reviewer: adrian.
avos set the repository for this revision to rS FreeBSD src repository - subversion.
adrian edited edge metadata.
This revision is now accepted and ready to land.Mar 4 2016, 1:36 AM
This revision was automatically updated to reflect the committed changes.