Bug 1397547

Summary: SSH does not use the ibmca crypto hardware
Product: Red Hat Enterprise Linux 6 Reporter: Joe Pope <pope_svr4>
Component: opensshAssignee: Jakub Jelen <jjelen>
Status: CLOSED ERRATA QA Contact: Stefan Dordevic <sdordevi>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.8CC: dhorak, kbost, nmavrogi
Target Milestone: rc   
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: openssh-5.3p1-122.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-21 10:02:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Joe Pope 2016-11-22 18:55:24 UTC
Description of problem:
Configured OpenSSL to use ibmca and verified the configuration for Apache but SSHD will not use the modular exponentiation (RSA/DH/DSA) from the crypto adapter.


Version-Release number of selected component (if applicable):
openssh-5.3p1-118.1.el6_8.s390x
openssl-ibmca-1.2.0-4.el6.s390x
libica-2.4.2-2.el6.s390x


How reproducible:
configure the openssl.cnf as described in openssl.cnf.sample-s390x
reboot

Steps to Reproduce:
1.configure openssl as above
2.reboot
3.run lszcrypt -VVV to check request_count
4.run icastats -r to clear stats
5.open multiple ssh sessions and the counter will not increment
6.run lszcrypt -VVV to check request_count
7.run icastats to verify the software count is incrementing and the hardware count is not

Actual results:
the request_count will not increment and icastats for hardware will not increment which means that ssh is using the builtin openssl engine instead of offloading to the crypto card

Expected results:
request_count should increment and icastats should increment for hardware

Additional info:

Comment 1 Jakub Jelen 2016-11-23 08:11:24 UTC
Can you verify it works [1] with current RHEL7.3 (it should)? RHEL6 already reached the maintenance phase and therefore does not accept any new features.
But to make sure it is properly evaluated, please contact your Red Hat support [2] (bugzilla is not a support tool).

[1] http://bugzilla.redhat.com/1318760
[2] https://www.redhat.com/support/

Comment 2 Joe Pope 2016-11-23 11:09:30 UTC
yes it works with 7.3.

this is not a new feature for rhel 6. it used to work in earlier versions of rhel6.

Comment 3 Jakub Jelen 2016-11-23 12:03:49 UTC
This seems to be related to control master feature introduced some time around RHEL6.5, which is closing all the hanging file descriptors in the processes (unfortunately not noticed during recent updates).

We have a patch for RHEL7, which should do the same job also in RHEL6 so please, open your support ticket (with reference to this bugzilla) so I can build you a test package.

Comment 19 errata-xmlrpc 2017-03-21 10:02:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2017-0641.html