Your message dated Sun, 09 Jun 2013 12:17:06 +0000
with message-id <[email protected]>
and subject line Bug#708552: fixed in cyrus-sasl2 2.1.25.dfsg1-6+deb7u1
has caused the Debian Bug report #708552,
regarding sasl2-bin: heavy cpu utilization
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.)


-- 
708552: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708552
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sasl2-bin
Version: 2.1.25.dfsg1-6
Severity: important
Tags: patch

Hello,

I met the same bug as 
https://bugs.launchpad.net/ubuntu/+source/cyrus-sasl2/+bug/997217

Here is a patch of 0034-fix_dovecot_authentication.patch 

-- System Information:
Debian Release: 7.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=locale: Cannot set 
LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages sasl2-bin depends on:
ii  db-util                5.1.6
ii  debconf [debconf-2.0]  1.5.49
ii  libc6                  2.13-38
ii  libcomerr2             1.42.5-1.1
ii  libdb5.1               5.1.29-5
ii  libgssapi-krb5-2       1.10.1+dfsg-5
ii  libk5crypto3           1.10.1+dfsg-5
ii  libkrb5-3              1.10.1+dfsg-5
ii  libldap-2.4-2          2.4.31-1+nmu2
ii  libpam0g               1.1.3-7.1
ii  libsasl2-2             2.1.25.dfsg1-6
ii  libssl1.0.0            1.0.1e-2
ii  lsb-base               4.1+Debian8

sasl2-bin recommends no packages.

sasl2-bin suggests no packages.

-- debconf information excluded
Index: cyrus-sasl2-2.1.25.dfsg1/saslauthd/auth_rimap.c
===================================================================
--- cyrus-sasl2-2.1.25.dfsg1.orig/saslauthd/auth_rimap.c	2013-05-16 15:36:35.000000000 +0000
+++ cyrus-sasl2-2.1.25.dfsg1/saslauthd/auth_rimap.c	2013-05-16 15:43:24.000000000 +0000
@@ -1,3 +1,4 @@
+
 /* MODULE: auth_rimap */
 
 /* COPYRIGHT
@@ -367,6 +368,39 @@
     alarm(NETWORK_IO_TIMEOUT);
     rc = read(s, rbuf, sizeof(rbuf));
     alarm(0);
+    if ( rc>0 ) {
+        /* check if there is more to read */
+        fd_set         perm;
+        int            fds, ret, loopc;
+        struct timeval timeout;
+
+        FD_ZERO(&perm);
+        FD_SET(s, &perm);
+        fds = s +1;
+
+        timeout.tv_sec  = 1;
+        timeout.tv_usec = 0;
+        loopc = 0;
+        while( select (fds, &perm, NULL, NULL, &timeout ) >0 ) {
+           if ( FD_ISSET(s, &perm) ) {
+              ret = read(s, rbuf+rc, sizeof(rbuf)-rc);
+              if ( ret<0 ) {
+                 rc = ret;
+                 break;
+              } else {
+                 if (ret == 0) {
+                   loopc += 1;
+                 } else {
+                   loopc = 0;
+                 }
+                 if (loopc > sizeof(rbuf)) { // arbitrary chosen value
+                   break;
+                 }
+                 rc += ret;
+              }
+           }
+        }
+    }
     if (rc == -1) {
 	syslog(LOG_WARNING, "auth_rimap: read (banner): %m");
 	(void) close(s);
@@ -456,6 +490,39 @@
     alarm(NETWORK_IO_TIMEOUT);
     rc = read(s, rbuf, sizeof(rbuf));
     alarm(0);
+    if ( rc>0 ) {
+        /* check if there is more to read */
+        fd_set         perm;
+        int            fds, ret, loopc;
+        struct timeval timeout;
+
+        FD_ZERO(&perm);
+        FD_SET(s, &perm);
+        fds = s +1;
+
+        timeout.tv_sec  = 1;
+        timeout.tv_usec = 0;
+        loopc = 0;
+        while( select (fds, &perm, NULL, NULL, &timeout ) >0 ) {
+           if ( FD_ISSET(s, &perm) ) {
+              ret = read(s, rbuf+rc, sizeof(rbuf)-rc);
+              if ( ret<0 ) {
+                 rc = ret;
+                 break;
+              } else {
+                 if (ret == 0) {
+                   loopc += 1;
+                 } else {
+                   loopc = 0;
+                 }
+                 if (loopc > sizeof(rbuf)) { // arbitrary chosen value
+                   break;
+                 }
+                 rc += ret;
+              }
+           }
+        }
+    }
     (void) close(s);			/* we're done with the remote */
     if (rc == -1) {
 	syslog(LOG_WARNING, "auth_rimap: read (response): %m");
Index: cyrus-sasl2-2.1.25.dfsg1/lib/checkpw.c
===================================================================
--- cyrus-sasl2-2.1.25.dfsg1.orig/lib/checkpw.c	2013-05-16 15:36:35.000000000 +0000
+++ cyrus-sasl2-2.1.25.dfsg1/lib/checkpw.c	2013-05-16 15:36:53.000000000 +0000
@@ -587,16 +587,14 @@
 	    /* Timeout. */
 	    errno = ETIMEDOUT;
 	    return -1;
-	case +1:
-	    if (FD_ISSET(fd, &rfds)) {
-		/* Success, file descriptor is readable. */
-		return 0;
-	    }
-	    return -1;
 	case -1:
 	    if (errno == EINTR || errno == EAGAIN)
 		continue;
 	default:
+	    if (FD_ISSET(fd, &rfds)) {
+		/* Success, file descriptor is readable. */
+		return 0;
+	    }
 	    /* Error catch-all. */
 	    return -1;
 	}

--- End Message ---
--- Begin Message ---
Source: cyrus-sasl2
Source-Version: 2.1.25.dfsg1-6+deb7u1

We believe that the bug you reported is fixed in the latest version of
cyrus-sasl2, 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.
Ondřej Surý <[email protected]> (supplier of updated cyrus-sasl2 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: SHA1

Format: 1.8
Date: Fri, 17 May 2013 18:11:26 +0200
Source: cyrus-sasl2
Binary: sasl2-bin cyrus-sasl2-doc libsasl2-2 libsasl2-modules 
libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql 
libsasl2-modules-gssapi-mit libsasl2-dev libsasl2-modules-gssapi-heimdal 
cyrus-sasl2-dbg cyrus-sasl2-mit-dbg cyrus-sasl2-heimdal-dbg
Architecture: source amd64 all
Version: 2.1.25.dfsg1-6+deb7u1
Distribution: stable
Urgency: low
Maintainer: Debian Cyrus SASL Team 
<[email protected]>
Changed-By: Ondřej Surý <[email protected]>
Description: 
 cyrus-sasl2-dbg - Cyrus SASL - debugging symbols
 cyrus-sasl2-doc - Cyrus SASL - documentation
 cyrus-sasl2-heimdal-dbg - Cyrus SASL - debugging symbols for Heimdal modules
 cyrus-sasl2-mit-dbg - Cyrus SASL - debugging symbols for MIT modules
 libsasl2-2 - Cyrus SASL - authentication abstraction library
 libsasl2-dev - Cyrus SASL - development files for authentication abstraction 
lib
 libsasl2-modules - Cyrus SASL - pluggable authentication modules
 libsasl2-modules-gssapi-heimdal - Pluggable Authentication Modules for SASL 
(GSSAPI)
 libsasl2-modules-gssapi-mit - Cyrus SASL - pluggable authentication modules 
(GSSAPI)
 libsasl2-modules-ldap - Cyrus SASL - pluggable authentication modules (LDAP)
 libsasl2-modules-otp - Cyrus SASL - pluggable authentication modules (OTP)
 libsasl2-modules-sql - Cyrus SASL - pluggable authentication modules (SQL)
 sasl2-bin  - Cyrus SASL - administration programs for SASL users database
Closes: 689346 708547 708552
Changes: 
 cyrus-sasl2 (2.1.25.dfsg1-6+deb7u1) stable; urgency=low
 .
   * Fix heavy CPU usage in saslauthd (Closes: #708552)
   * Send LOGOUT before closing connection in auth_rimap (Closes: #708547)
   * Fix garbage in output buffer when using canonuser_plugin: ldapdb
     (Closes: #689346)
Checksums-Sha1: 
 c7b6cfc219f1849bd23f7770e32a0940bdabca15 2584 
cyrus-sasl2_2.1.25.dfsg1-6+deb7u1.dsc
 8cfc6b2b53e9d6abac604e0c3f0fcfcf229eb301 106970 
cyrus-sasl2_2.1.25.dfsg1-6+deb7u1.debian.tar.gz
 ecaa18f69fe6b89bf0ca40e364a10881465ff3f1 186310 
sasl2-bin_2.1.25.dfsg1-6+deb7u1_amd64.deb
 ea2e2bb86e62b3146c30a3c7e5bad0a4da75cc9a 112982 
cyrus-sasl2-doc_2.1.25.dfsg1-6+deb7u1_all.deb
 237cbe38721efc54d26b4351b0c229c632752951 119916 
libsasl2-2_2.1.25.dfsg1-6+deb7u1_amd64.deb
 a630e4315fe5431d84041828986df9d776c4829a 116068 
libsasl2-modules_2.1.25.dfsg1-6+deb7u1_amd64.deb
 a2ce2ecb38253f287fa436f14391df950f1ad25f 64222 
libsasl2-modules-ldap_2.1.25.dfsg1-6+deb7u1_amd64.deb
 ec87c7d7da67e14bca65f389dd4ae8da746f5271 88698 
libsasl2-modules-otp_2.1.25.dfsg1-6+deb7u1_amd64.deb
 909002334258e31f90111adbedb258dbc6d750c1 67536 
libsasl2-modules-sql_2.1.25.dfsg1-6+deb7u1_amd64.deb
 e70a2620d9d9f709c716b99688bedd008a9754e7 100398 
libsasl2-modules-gssapi-mit_2.1.25.dfsg1-6+deb7u1_amd64.deb
 a3f38178824d65e94ab99c573e77c438ad081d45 360012 
libsasl2-dev_2.1.25.dfsg1-6+deb7u1_amd64.deb
 773840f047d455a4d246beac53172832af1e58ee 69206 
libsasl2-modules-gssapi-heimdal_2.1.25.dfsg1-6+deb7u1_amd64.deb
 095e14ed9b8ceefe9d40324a9d5675e4f2650a30 880716 
cyrus-sasl2-dbg_2.1.25.dfsg1-6+deb7u1_amd64.deb
 2b78e26c93ac4750e7179811a3db42d09f497330 89116 
cyrus-sasl2-mit-dbg_2.1.25.dfsg1-6+deb7u1_amd64.deb
 a43a1b201b69d606ee0943c0c8be673df8612a38 89632 
cyrus-sasl2-heimdal-dbg_2.1.25.dfsg1-6+deb7u1_amd64.deb
Checksums-Sha256: 
 051dfeb80b1ddf3c0018b9e9d32b32526577d62b1fd230c55c09400a1dfaf55d 2584 
cyrus-sasl2_2.1.25.dfsg1-6+deb7u1.dsc
 0ea7d1f7c1c4daafb94548e9aecf0952cff918313f0bbee0ad394ca0354b14b7 106970 
cyrus-sasl2_2.1.25.dfsg1-6+deb7u1.debian.tar.gz
 8b9afb9722bd99aa23b234041a7e3187fba250c9f1c48bcde173bc9835051dc9 186310 
sasl2-bin_2.1.25.dfsg1-6+deb7u1_amd64.deb
 c7eb3158aca04adaf8bf868bf153fdfa23079808cc7e8643d9d56b13632933e6 112982 
cyrus-sasl2-doc_2.1.25.dfsg1-6+deb7u1_all.deb
 c717fbbd33448297f51cccb54a39c8ba319e5c5c807e5424af713e8de7765126 119916 
libsasl2-2_2.1.25.dfsg1-6+deb7u1_amd64.deb
 2a065908d7b6ad8ca05d23fdb430633f369f5e501f94ba6877e89277ec4740a4 116068 
libsasl2-modules_2.1.25.dfsg1-6+deb7u1_amd64.deb
 da6b4eb4fa452b724d993a438ab2cc380608d27c9467b56c5c4d29992fb50e0e 64222 
libsasl2-modules-ldap_2.1.25.dfsg1-6+deb7u1_amd64.deb
 02c8d466395d78132f4be9394312fcb4b0507484bbe476380a36b09b350d6752 88698 
libsasl2-modules-otp_2.1.25.dfsg1-6+deb7u1_amd64.deb
 e67f25774e1d3a68e1ef59b138c609bbbb00290aa138194016db3cb2079ec55f 67536 
libsasl2-modules-sql_2.1.25.dfsg1-6+deb7u1_amd64.deb
 2c22297e9aebb9f3c534d19ee4c8808be8f572964206d566e25f30be0246bedd 100398 
libsasl2-modules-gssapi-mit_2.1.25.dfsg1-6+deb7u1_amd64.deb
 d6e5b104e034ff6a87a0de8809aacf4c05b8108314aa88b5ba86632fb1d70f7d 360012 
libsasl2-dev_2.1.25.dfsg1-6+deb7u1_amd64.deb
 0ff40dbd8e9570c69f1b1afd8a63a3ee0ea4721e61a90e99ea3b688f1bd5e498 69206 
libsasl2-modules-gssapi-heimdal_2.1.25.dfsg1-6+deb7u1_amd64.deb
 7b17f9216e64bfd90240508f42a5ceb5f12869b797db741ddfc22c81059b348a 880716 
cyrus-sasl2-dbg_2.1.25.dfsg1-6+deb7u1_amd64.deb
 3016fa4f5cd1ef0f6987dd3d007ba7e6cf0b17715dbcef499bff0feab3c050f8 89116 
cyrus-sasl2-mit-dbg_2.1.25.dfsg1-6+deb7u1_amd64.deb
 6cda270d5bb6a02c0a0cb09aea47e039ffb60fef2aa918c437d128f15b0fa83a 89632 
cyrus-sasl2-heimdal-dbg_2.1.25.dfsg1-6+deb7u1_amd64.deb
Files: 
 826023a2efd05a40b35b3452a5700ed4 2584 libs standard 
cyrus-sasl2_2.1.25.dfsg1-6+deb7u1.dsc
 d6c37e00d733c73a53ee4a18cd3f1a30 106970 libs standard 
cyrus-sasl2_2.1.25.dfsg1-6+deb7u1.debian.tar.gz
 b0eed0a52fcd14588906d14925d2595e 186310 utils optional 
sasl2-bin_2.1.25.dfsg1-6+deb7u1_amd64.deb
 94a54132d1bbcdea2b68f1c1421d3e82 112982 doc optional 
cyrus-sasl2-doc_2.1.25.dfsg1-6+deb7u1_all.deb
 f5763ef0d06cdfd54b1c888f8d3c8906 119916 libs standard 
libsasl2-2_2.1.25.dfsg1-6+deb7u1_amd64.deb
 510f0af2596318859d8ce08399d703b8 116068 libs optional 
libsasl2-modules_2.1.25.dfsg1-6+deb7u1_amd64.deb
 c45c33de798377b0739f6c854aa488ef 64222 libs extra 
libsasl2-modules-ldap_2.1.25.dfsg1-6+deb7u1_amd64.deb
 47b62d3a03caab5eefdb25e4b80e8270 88698 libs extra 
libsasl2-modules-otp_2.1.25.dfsg1-6+deb7u1_amd64.deb
 c28141a68095b1ec20a7e3874a47ac42 67536 libs extra 
libsasl2-modules-sql_2.1.25.dfsg1-6+deb7u1_amd64.deb
 43b8de5537d705c54ae135f72bb2d3d0 100398 libs extra 
libsasl2-modules-gssapi-mit_2.1.25.dfsg1-6+deb7u1_amd64.deb
 166e0a4d06f3037aac342345ae8c095c 360012 libdevel optional 
libsasl2-dev_2.1.25.dfsg1-6+deb7u1_amd64.deb
 990ceed4809e69c6117fac5265143226 69206 libs extra 
libsasl2-modules-gssapi-heimdal_2.1.25.dfsg1-6+deb7u1_amd64.deb
 56b783e12e96e70da9949ac369571601 880716 debug extra 
cyrus-sasl2-dbg_2.1.25.dfsg1-6+deb7u1_amd64.deb
 31ae98837deac5d2d310a2d28dfafe6b 89116 debug extra 
cyrus-sasl2-mit-dbg_2.1.25.dfsg1-6+deb7u1_amd64.deb
 0b0c34e0473497b068e550250bf3041a 89632 debug extra 
cyrus-sasl2-heimdal-dbg_2.1.25.dfsg1-6+deb7u1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlG0WJkACgkQ9OZqfMIN8nOT4wCgpSkt+8zOqUh79KsWWLxOY9i8
PIcAoIWlFb5AndmQUjZeejTZiCswlpON
=LMub
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to