[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #29659 [Core Tor/Torsocks]: WARNING torsocks[6254]: [syscall] Unsupported syscall number 39. Denying the call (in tsocks_syscall() at syscall.c:605)



#29659: WARNING torsocks[6254]: [syscall] Unsupported syscall number 39. Denying
the call (in tsocks_syscall() at syscall.c:605)
-------------------------------+------------------------------
 Reporter:  tu8367             |          Owner:  dgoulet
     Type:  defect             |         Status:  needs_review
 Priority:  Medium             |      Milestone:
Component:  Core Tor/Torsocks  |        Version:
 Severity:  Normal             |     Resolution:
 Keywords:                     |  Actual Points:
Parent ID:                     |         Points:
 Reviewer:                     |        Sponsor:
-------------------------------+------------------------------
Changes (by onirony):

 * status:  needs_information => needs_review


Comment:

 Thanks dgoulet, here's a patch for this on Gitlab:
 https://gitlab.com/seisvelas/torsocks/tree/fix_getpid

 And the commit itself:
 https://gitlab.com/seisvelas/torsocks/commit/54db444d70b3307546e87c32658c58953a2b11b3

 I tested this on 64bit Ubuntu with the following code:

 {{{#!c
 #include <unistd.h>
 #include <stdio.h>

 int main(void) {
         printf("%d\n", (int)syscall(39)); // lazy
         return 0;
 }
 }}}

 With standard Torsocks, I reproduced tu8367's error:


 {{{#!sh
 me@myDesktop:~$ torsocks ./a.out
 1552119175 WARNING torsocks[2784]: [syscall] Unsupported syscall number
 39. Denying the call (in tsocks_syscall() at syscall.c:605)
 -1
 }}}

 Then, applying my patch, it works:

 {{{#!sh
 me@myDesktop:~$ git clone -q -b fix_getpid
 https://gitlab.com/seisvelas/torsocks.git

 ... build Torsocks ...

 me@myDesktop:~$ torsocks ./a.out
 8837
 }}}

 Success! Let me know if I need to modify anything before the patch can be
 accepted!

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/29659#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs