Your message dated Tue, 10 May 2016 16:42:52 +0000
with message-id <[email protected]>
and subject line Bug#818489: fixed in vtun 3.0.3-2.2
has caused the Debian Bug report #818489,
regarding vtun client uses lot of CPU after a SIGHUP
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
818489: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818489
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: vtun
Version: 3.0.3-2.1
Severity: normal
Tags: security patch

When you send a SIGHUP to a vtun client process and it cannot connects
to the remote server, vtun try to reconnect without sleep between each attempt.
In result, the vtun process uses lot of CPU, and write to syslog without limit.

Here is a fix to prevent this behavior. On SIGHUP, the first sleep will be
discarded, then sleep will be used again.

--- a/client.c 2016-03-17 16:18:01.000000000 +0100                              
                                                                                
                                                                    
+++ b/client.c 2016-03-16 15:52:49.079811212 +0100                              
                                                                                
                                                            
@@ -133,6 +133,7 @@ void client(struct vtun_host *host)                         
                                                                                
                                                                             
           if (!vtun.quiet || errno != ETIMEDOUT)                               
                                                                                
                                                                             
              vtun_syslog(LOG_INFO,"Connect to %s failed. %s(%d)", 
vtun.svr_name,                                                                  
                                                                                
          
                                        strerror(errno), errno);                
                                                                                
                                                                             
+          client_term = 0;                                                     
                                                                                
                                                                             
         } else {                                                               
                                                                                
                                                                             
           if( auth_client(s, host) ){                                          
                                                                                
                                                                             
              vtun_syslog(LOG_INFO,"Session %s[%s] 
opened",host->host,vtun.svr_name);                                              
                                                                                
                          
@@ -143,6 +144,7 @@ void client(struct vtun_host *host)
              vtun_syslog(LOG_INFO,"Session %s[%s] 
closed",host->host,vtun.svr_name);
           } else {
              vtun_syslog(LOG_INFO,"Connection denied by %s",vtun.svr_name);
+             client_term = 0;
           }
        }
        close(s);

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (700, 'unstable'), (500, 'experimental'), (500, 
'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

--- End Message ---
--- Begin Message ---
Source: vtun
Source-Version: 3.0.3-2.2

We believe that the bug you reported is fixed in the latest version of
vtun, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Salvatore Bonaccorso <[email protected]> (supplier of updated vtun package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 30 Apr 2016 12:06:47 +0200
Source: vtun
Binary: vtun
Architecture: source
Version: 3.0.3-2.2
Distribution: unstable
Urgency: medium
Maintainer: Roland Stigge <[email protected]>
Changed-By: Salvatore Bonaccorso <[email protected]>
Closes: 818489
Description: 
 vtun       - virtual tunnel over TCP/IP networks
Changes:
 vtun (3.0.3-2.2) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Fix high CPU consumption after SIGHUP to the client.
     When you send a SIGHUP to a vtun client process and it cannot connects
     to the remote server, vtun try to reconnect without sleep between each
     attempt.
     In result, the vtun process uses lot of CPU, and write to syslog without
     limit. (Closes: #818489)
Checksums-Sha1: 
 e8e5211173faed37952decc2eb207309015a852f 1724 vtun_3.0.3-2.2.dsc
 8c6ec88a452d4b19d455cf4fe849d7dde6dfd8e3 26140 vtun_3.0.3-2.2.debian.tar.xz
Checksums-Sha256: 
 b8ae3d41565ef1580f9929326c5dd1a8695c4774a8ff593694d21834d0d4117b 1724 
vtun_3.0.3-2.2.dsc
 c8d592810243c28e66275d5cdaa2248cb67c4fd04b708ed2a971d2bba424d439 26140 
vtun_3.0.3-2.2.debian.tar.xz
Files: 
 3c778aa0573af6df801a9ef37e4dff64 1724 net optional vtun_3.0.3-2.2.dsc
 726fca3bdcb248df203ada394de7ba5f 26140 net optional 
vtun_3.0.3-2.2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJXJLoQAAoJEAVMuPMTQ89EuTUP/3NLC4FPZsDHLBgX5C5dI8pZ
EMl0IJphLKhAKH5zKUjH4Stw5kPX9eKJMhVfjP8UAleZa//0rs8nYH8MgJoqCwLh
IoIOMusOcGY55CRiDbrvgUGV+dIWmNYaMR/4QQlKkQcPTI7tZkrlM3RiBVvk5ANF
SZXo+S1ziPbE/4DMnFF03fKJcEX2DanFqPMJt4hHlTNVu4IWjGQ2pCtS6LDMGz3U
dNuZ1c2R9SKk1G2MX/yxROzkARtdyzzHdtFLlAcHTSkAhM38dMb25kmTXPeif8pb
lyNMH7wXgjWn8oAB8Dijx8qNKLRZNWn5bWgEk8V4BBuvaioOuD9Wbu9WLaC0Di/E
v2JN23lyZGtXJvc8z4ZhqbQ8iPruCLf0p7bwMoHvTtot88iP2e1hY52VvNi+vS7s
a5OKJWfNvYymyOPjwveDVY9m/MgK2k2sVfV1ThnVs1aZVO8isWb8p2LAg7z5YC/9
f8S4cRzEGj19fqVrJYbv/+PV9LigqIGer/hXeA3B/EWovMEEZ/6hwTgYU1MIo/b/
Fw0wjz6Y7e7647Y9Kg9tlqZ1gOoRhixxPFdHcUBJXVAF+7kuUmoSMag1iPjDVBqs
/dPITzSdnyazPRTSqHKGkN6UgOeGuvBgLD84kJiTPoJ5heT6+DhManxxltGAc9Z6
j9ixm5wztb6buYWa2cSL
=C6HT
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to