sshd crashed on s390x with hw crypto enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
High
|
bugproxy | ||
openssh (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
openssl-ibmca (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
While using today's daily image of disco (either in z/VM or on LPAR) and enabling s309x hardware crypto support in openssh, sshd crashes with the following messages:
$ ssh ubuntu@localhost
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is SHA256:
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
ubuntu@localhost's password:
packet_write_wait: Connection to ::1 port 22: Broken pipe
(local session is sufficient to reproduce)
Steps to reproduce - on disco daily:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Disco Dingo (development branch)
Release: 19.04
Codename: disco
$ uname -a
Linux zlin42 5.0.0-7-generic #8-Ubuntu SMP Mon Mar 4 16:25:21 UTC 2019 s390x s390x s390x GNU/Linux
- enable z hw crypto support for openssh on an Ubuntu host (zlin42) on s390x like this:
- sudo apt-get install openssl-ibmca libica-utils libica3
- sudo tee -a /etc/ssl/
- sudo sed -i 's/^\(openssl_conf = openssl_def.*$\)/# \1/g' /etc/ssl/
- sudo sed -i '10i openssl_conf = openssl_def' /etc/ssl/
- afterwards ssh login attempts fail (existing session are unaffected):
$ ssh ubuntu@localhost
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is SHA256:
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
ubuntu@
packet_
[94629.032586] User process fault: interruption code 003b ilc:2 in libpthread-
[94629.032597] Failing address: 0000000000000000 TEID: 0000000000000800
[94629.032598] Fault in primary space mode while using user ASCE.
[94629.032601] AS:00000007450281c7 R3:0000000000000024
[94629.032606] CPU: 0 PID: 8183 Comm: sshd Not tainted 5.0.0-7-generic #8-Ubuntu
[94629.032607] Hardware name: IBM 2964 N63 400 (LPAR)
[94629.032608] User PSW : 0705200180000000 000003ff7d48e954
[94629.032610] R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:1 AS:0 CC:2 PM:0 RI:0 EA:3
[94629.032611] User GPRS: 0000000000000000 0000000000000000 0000000000000000 000003ff7e0085c8
[94629.032612] 000003ff7e510108 000003ff7db1c3a8 0000000000000000 000003fff857eea0
[94629.032613] 000003ff7e525040 000002aa3f5ec090 000003ff7e4916f0 000003ff7e4921a8
[94629.032614] 000003ff7db17c18 0000000000000002 000003ff7e07238a 000003fff857ea20
[94629.032622] User Code: 000003ff7d48e946: b9040012 lgr %r1,%r2
[94629.032634] Last Breaking-
[94629.032638] [<000003ff7df77
For more details see attachments ...
---
ProblemType: Bug
ApportVersion: 2.20.10-0ubuntu23
Architecture: s390x
DistroRelease: Ubuntu 19.04
Package: openssh-server 1:7.9p1-9
PackageArchitec
ProcVersionSign
SSHDConfig: Error: command ['/usr/sbin/sshd', '-T'] failed with exit code -11:
Tags: disco
Uname: Linux 5.0.0-7-generic s390x
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: pkcs11
_MarkForUpload: True
Changed in ubuntu-z-systems: | |
importance: | Undecided → High |
assignee: | nobody → bugproxy (bugproxy) |
tags: | added: reverse-proxy-bugzilla |
Changed in ubuntu-z-systems: | |
status: | New → Triaged |
description: | updated |
Changed in openssl-ibmca (Ubuntu): | |
status: | New → Fix Committed |
Changed in ubuntu-z-systems: | |
status: | Triaged → Fix Committed |
Changed in openssh (Ubuntu): | |
status: | New → Invalid |
Changed in ubuntu-z-systems: | |
status: | Fix Committed → Fix Released |
GNU gdb (Ubuntu 8.2.90-0ubuntu1) 8.2.90 gnu.org/ licenses/ gpl.html> www.gnu. org/software/ gdb/bugs/>. www.gnu. org/software/ gdb/documentati on/>.
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "s390x-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://
Find the GDB manual and other documentation resources online at:
<http://
For help, type "help". debug/. build-id/ 18/2cb9bda0be98 e50d87a4104872a ead696f1998. debug.. .
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/sshd...
Reading symbols from /usr/lib/
[New LWP 27159]
Core was generated by `sshd: ubuntu [net] '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000003ff9d10cd54 in ?? ()
(gdb) bt
#0 0x000003ff9d10cd54 in ?? ()
#1 0x000003ff9dcf155a in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)