[tor-bugs] #31062 [Core Tor/Tor]: token bucket: Improve library to handle under/overflow and clock jump

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jul 2 11:43:23 UTC 2019


#31062: token bucket: Improve library to handle under/overflow and clock jump
-------------------------------+--------------------------------
     Reporter:  dgoulet        |      Owner:  (none)
         Type:  defect         |     Status:  new
     Priority:  Medium         |  Milestone:  Tor: 0.4.2.x-final
    Component:  Core Tor/Tor   |    Version:
     Severity:  Normal         |   Keywords:  token-bucket
Actual Points:                 |  Parent ID:
       Points:  0.2            |   Reviewer:
      Sponsor:  Sponsor27-can  |
-------------------------------+--------------------------------
 The DoS subsystem implements a very simple token bucket but has a lot of
 safeguards against under/overflows and clock jump.

 We should take those, move them into the token-bucket implementation and
 then make the DoS subsystem use it.

 This is quite important to not wait too long on it because of #15516 will
 soon be used extensively using the generic token bucket.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31062>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list