Bug 918981 - random SSL errors between dovecot/mutt with 1:1.0.1e-3.fc18.x86_64
Summary: random SSL errors between dovecot/mutt with 1:1.0.1e-3.fc18.x86_64
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openssl
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-07 10:34 UTC by Christophe Fergeau
Modified: 2013-03-22 21:16 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-22 21:16:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Christophe Fergeau 2013-03-07 10:34:45 UTC
Recently, I've started seeing weird issues on my local dovecot + mutt setup, when trying to open some folders in mutt, I'd get disconnected from dovecot and I wouldn't be able to see the folder content, while on other folders all is good.
After noticing this seems correlated to these logs:
mars 06 14:38:08 teriyaki dovecot[24182]: imap-login: Warning: SSL alert: where=0x4008, ret=532: fatal bad record mac [::1]
mars 06 14:38:08 teriyaki dovecot[24182]: imap-login: Warning: SSL alert: where=0x4008, ret=256: warning close notify [::1]
mars 06 14:38:08 teriyaki dovecot[24182]: imap(teuf): Connection closed in=162 out=104973

I tried downgrading openssl to 1:1.0.1c-7.fc18.x86_64, these issues seem to be gone.

I'm not exactly sure how to provide more information about this, but I can run more tests if needed.

Comment 1 Tomas Mraz 2013-03-07 11:00:32 UTC
Do you have aes-ni support in your cpu?

grep aes /proc/cpuinfo

Comment 2 Christophe Fergeau 2013-03-07 11:06:24 UTC
This gives me hits on 'aes'.
CPU is an Intel(R) Core(TM) i5 CPU M 540 (thinkpad x201)

Comment 3 Tomas Mraz 2013-03-07 12:55:39 UTC
There is an upstream request tracker entry for this issue, unfortunately no resolution yet:

http://rt.openssl.org/Ticket/Display.html?id=3002

Comment 4 Christophe Fergeau 2013-03-07 13:38:55 UTC
Ask for a login :( Regardless, good to know I'm not the only one and that it's a known issue! I can live with the older version for now )

Comment 6 Christophe Fergeau 2013-03-11 10:11:39 UTC
Ah thanks David, I didn't realize this could be accessed as a guest.

Comment 7 David Woodhouse 2013-03-11 11:22:43 UTC
Are you able to reproduce this problem with any other servers? For example
 openssl s_client -connect mail.uni-paderborn.de:465 

Or connecting to IRC servers with SSL, perhaps?


(btw, why are you doing this for local IMAP anyway? mutt can quite happily just invoke /usr/libexec/dovecot/imap for you instead of having to log in.)

Comment 8 David Woodhouse 2013-03-12 13:45:48 UTC
Christophe, please could you confirm whether the problem goes away when you 
export OPENSSL_ia32cap=~0x200000200000000

Comment 9 Christophe Fergeau 2013-03-12 15:47:06 UTC
(In reply to comment #7)
> Are you able to reproduce this problem with any other servers? For example
>  openssl s_client -connect mail.uni-paderborn.de:465 

I've tried a few servers, but could not hit the issue on the initial connection. Note that my dovecot/mutt issue does not happen upon initial connection, but after getting the list of messages and sorting them. 

openssl s_client -connect localhost:993 works as well
  
> (btw, why are you doing this for local IMAP anyway? mutt can quite happily
> just invoke /usr/libexec/dovecot/imap for you instead of having to log in.)

Just my sucky sysadmin skills, when something works, I'm generally too lazy to try to get something better )

(In reply to comment #8)
> Christophe, please could you confirm whether the problem goes away when you 
> export OPENSSL_ia32cap=~0x200000200000000

dovecot spawns several processes and cleans the environment in all of them (I looked in /proc/pid/environment), so I could not test that directly. However, I've tried a patch build replacing the OPENSSL_ia32cap getenv() call with this hardcoded value, and I no longer hit this bug with this patched version.

Comment 10 Fedora Update System 2013-03-18 21:32:43 UTC
openssl-1.0.1e-4.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/openssl-1.0.1e-4.fc18

Comment 11 Fedora Update System 2013-03-20 21:37:53 UTC
Package openssl-1.0.1e-4.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openssl-1.0.1e-4.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-4069/openssl-1.0.1e-4.fc18
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2013-03-22 21:16:04 UTC
openssl-1.0.1e-4.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.