[tor-bugs] #24961 [Core Tor/Tor]: Authorities crash in Shadow with 0.3.2.9 because it's 1970 due to new HS code

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jan 22 18:53:41 UTC 2018


#24961: Authorities crash in Shadow with 0.3.2.9 because it's 1970 due to new HS
code
------------------------------+--------------------------------
     Reporter:  pastly        |      Owner:  (none)
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.3.3.x-final
    Component:  Core Tor/Tor  |    Version:  Tor: 0.3.2.9
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------------
 (I'm still fact checking this ticket if this parenthetical is still here)

 `hs_get_time_period_num` is called in the first 3 minutes of a Shadow
 simulation.

 Shadow starts time at the unix epoch. So the function would ultimately
 calculate it is time period zero if it wasn't for a fatal assert in the
 middle of the function preventing that from happening.

 I like the idea of inflating time period numbers, perhaps with a better-
 thought-out version of this patch http://paste.debian.net/1005897/

 I've also been talking to Rob about time keeping in Shadow, and it
 actually may not end up being that bad starting time at, say, y2k instead
 of 1970.

 So I'm not sure what codebase *should* get fixed at this time.

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


More information about the tor-bugs mailing list