Bug ID 1229028
Summary dracut-sshd crashing when connecting to host
Classification openSUSE
Product openSUSE Distribution
Version Leap 15.6
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Basesystem
Assignee screening-team-bugs@suse.de
Reporter holgi@suse.com
QA Contact qa-bugs@suse.de
Target Milestone ---
Found By ---
Blocker ---

Created attachment 876585 [details]
dracut-output.txt

I installed dracut-sshd, added files
  /etc/systemd/network/20-wired.network
  /etc/dracut.conf.d/90-networkd.conf
and created initrd again (see output of dracut -f -v).

After reboot I can connect from another host to the system, but after
connection is being enabled, shell is terminating with error:
  munmap_chunk(): invalid pointer

That lead me to:
https://github.com/dracutdevs/dracut/issues/2661
and
https://github.com/gsauthof/dracut-sshd/pull/79
but even using the package from
https://build.opensuse.org/package/show/home:darix:apps/dracut-sshd
did not improve the situation (same errors)

On the journalctl I can see the message:
Aug 09 10:35:19 asus (sshd[221]: sshd.service: Referenced but unset environment
variable evaluates to an empty string: CRYPTO_POLICY, OPTIONS
...
Aug 09 10:35:20 asus sshd[221]: Server listening on 0.0.0.0 port 22.
Aug 09 10:35:20 asus sshd[221]: Server listening on :: port 22.
Aug 09 10:35:20 asus systemd[1]: Started OpenSSH server daemon.
...
Aug 09 10:35:26 asus kernel: NET: Registered PF_PACKET protocol family
Aug 09 10:35:26 asus kernel:  sdj: sdj1
Aug 09 10:35:26 asus kernel: sd 7:0:0:0: [sdj] Attached SCSI disk
Aug 09 10:35:23 asus systemd-networkd[623]: eth0: Gained carrier
Aug 09 10:35:23 asus systemd-networkd[623]: eth0: found matching network
'/etc/systemd/network/20-wired.network', based on potentially unpredictable
interface name.
Aug 09 10:35:26 asus systemd-networkd[623]: eth0: Gained IPv6LL
Aug 09 10:35:26 asus systemd-networkd[623]: eth0: DHCPv4 address
192.168.0.3/24, gateway 192.168.0.1 acquired from 192.168.0.1
Aug 09 10:35:30 asus sshd[805]: Accepted publickey for root from 192.168.0.14
port 46992 ssh2: RSA SHA256:fQ/WvO6CBX8uzQaDceKKxAYRJRA17sO1sGYtxqle+RM
Aug 09 10:35:30 asus kernel: Core dump to |/bin/false pipe failed
Aug 09 10:35:30 asus sshd[807]: Received disconnect from 192.168.0.14 port
46992:11: disconnected by user
Aug 09 10:35:30 asus sshd[807]: Disconnected from user root 192.168.0.14 port
46992
Aug 09 10:35:35 asus sshd[937]: Accepted publickey for root from 192.168.0.14
port 47000 ssh2: RSA SHA256:fQ/WvO6CBX8uzQaDceKKxAYRJRA17sO1sGYtxqle+RM
Aug 09 10:35:35 asus sshd[939]: Received disconnect from 192.168.0.14 port
47000:11: disconnected by user
Aug 09 10:35:35 asus sshd[939]: Disconnected from user root 192.168.0.14 port
47000
Aug 09 10:35:35 asus kernel: Core dump to |/bin/false pipe failed


You are receiving this mail because: