[openssh-9.1p1-1] sshd fails to start on Odroid-C1

Problems with packages? Post here, using [tags] of the package name.

[openssh-9.1p1-1] sshd fails to start on Odroid-C1

Postby slydder » Mon Oct 17, 2022 6:10 am

After the latest update of opennssh 9.1p1-1 sshd fails to start with the following error:

$this->bbcode_second_pass_code('', '# /usr/bin/sshd
getentropy failed')

The bug is reproducable on Odroid-C1 with kernel 3.10.107-5-ARCH.
slydder
 
Posts: 35
Joined: Sat Dec 05, 2015 11:40 am

Re: [openssh-9.1p1-1] sshd fails to start on Odroid-C1

Postby InFerNo » Sun Oct 23, 2022 2:15 pm

I have the same issue on the same hardware. Reported here also: https://bugzilla.mindrot.org/show_bug.cgi?id=3487
InFerNo
 
Posts: 19
Joined: Sat Jan 03, 2015 12:35 pm

Re: [openssh-9.1p1-1] sshd fails to start on Odroid-C1

Postby slydder » Tue Oct 25, 2022 1:09 pm

https://github.com/openssh/openssh-port ... 29d7a7854a

This is the commit which broke compatibility.
The problem is that if I build the package on the Odroid or similar environment it will detect getentropy from the headers, but when calling it the system will return ENOSYS - Function not implemented error.
So theoretically it is not a bug of openSSH, instead it is a build issue.

CC: @moonman
slydder
 
Posts: 35
Joined: Sat Dec 05, 2015 11:40 am

Re: [openssh-9.1p1-1] sshd fails to start on Odroid-C1

Postby slydder » Tue Oct 25, 2022 1:17 pm

$this->bbcode_second_pass_code('', '
# pacman -Rs local/linux-api-headers
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing linux-api-headers breaks dependency 'linux-api-headers>=4.10' required by glibc
:: removing linux-api-headers breaks dependency 'linux-api-headers' required by libbpf
')

glibc depends on the new linux-api-headers, but Odroid C1 uses a legacy kernel which is < 4.10.
slydder
 
Posts: 35
Joined: Sat Dec 05, 2015 11:40 am

Re: [openssh-9.1p1-1] sshd fails to start on Odroid-C1

Postby slydder » Tue Oct 25, 2022 1:59 pm

I have patched the openssh package sources to not detect getentropy.
sshd can be run again with a build containing the patches
Attachments
openssh.tar.gz
patched openssh sources for C1
(6.49 KiB) Downloaded 532 times
slydder
 
Posts: 35
Joined: Sat Dec 05, 2015 11:40 am

Re: [openssh-9.1p1-1] sshd fails to start on Odroid-C1

Postby InFerNo » Fri Dec 23, 2022 9:08 pm

This issue has been fixed on novermbe 2nd as commented in my bug report.

https://github.com/openssh/openssh-port ... 79bbf76156

The latest release appears to be from october 3rd, so I'm waiting for a next release.
InFerNo
 
Posts: 19
Joined: Sat Jan 03, 2015 12:35 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 16 guests