[tor-bugs] #25803 [- Select a component]: Infinite restart loop when daemon crashes

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Apr 14 11:30:10 UTC 2018


#25803: Infinite restart loop when daemon crashes
--------------------------------------+--------------------
     Reporter:  tiejohg2sahth         |      Owner:  (none)
         Type:  defect                |     Status:  new
     Priority:  Medium                |  Milestone:
    Component:  - Select a component  |    Version:
     Severity:  Normal                |   Keywords:
Actual Points:                        |  Parent ID:
       Points:                        |   Reviewer:
      Sponsor:                        |
--------------------------------------+--------------------
 On Ubuntu, using Tor from the official PPA, when the Tor daemon crashes
 (im my case because of this bug
 https://trac.torproject.org/projects/tor/ticket/23693), it is
 automatically restarted.

 As a result Tor uses 100% CPU continuously because of its hopeless
 start->crash->start->crash... behavior.

 A better behavior could be to detect the crash (SIGSEV, SIGABRT...) from
 the process return code and do not restart in that case.

 The crash-restart loop behavior can also be dangerous security wise,
 because for example exploits against ASLR have a framework to do brute
 force attacks if the process automatically restarts.

 I could not understand where this behavior comes from in the code, because
 the systemd service file in /lib/systemd/system/tor.service seem to be
 empty.

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


More information about the tor-bugs mailing list