Bug 3232

Summary: The new select syscall needed for ARM architecture
Product: Portable OpenSSH Reporter: Jakub Jelen <jjelen>
Component: sshdAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: enhancement CC: arekm, djm, dtucker
Priority: P5    
Version: 8.4p1   
Hardware: ARM64   
OS: Linux   
Bug Depends on:    
Bug Blocks: 3217    
Attachments:
Description Flags
proposed patch none

Description Jakub Jelen 2020-11-19 21:39:04 AEDT
Created attachment 3454 [details]
proposed patch

I got a new report that with a new kernel on armhfp (armv7hl), sshd fails in the sandbox. Later debugging uncovered the syscall number, which is missing:

type=SECCOMP msg=audit(1605645779.332:638): auid=4294967295 uid=74 gid=74 ses=4294967295 subj=system_u:system_r:sshd_net_t:s0-s0:c0.c1023 pid=796 comm="sshd" exe="/usr/sbin/sshd" sig=31 arch=40000028 syscall=413 compat=0 ip=0xb68db370 code=0x0AUID="unset" UID="sshd" GID="sshd" ARCH=armeb SYSCALL=unknown-syscall(413)

On arm 413 looks to be pselect6_time64

I tried the attached patch and it solved the issue. For more information, see the Fedora bug:

https://bugzilla.redhat.com/show_bug.cgi?id=1897712
Comment 1 Darren Tucker 2020-11-20 13:40:11 AEDT
Patch applied, thanks.  It will be in the next major release.
Comment 2 Arkadiusz Miƛkiewicz 2021-03-02 21:34:10 AEDT
A note, i686 needed this patch, too (glibc 2.33).
Comment 3 Damien Miller 2021-04-23 14:53:12 AEST
closing resolved bugs as of 8.6p1 release