On Fri, Mar 11, 2022 at 12:35 AM Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote: > > On Thu, Mar 10, 2022 at 3:29 PM Eric W. Biederman <ebiederm@xxxxxxxxxxxx> wrote: > > > > Kees can you pick this one up in for-next/execve as well? > > > > It still applies cleanly and the actual patch seems to have gotten lost > > in the conversation about what more we could do. > > Side note: there are similar other turds if a.out goes away, ie on > alpha it's OSF4_COMPAT, and it enables support for a couple of legacy > OSF/1 system calls. > > I think that was also discussed in the (old) a.out deprecation thread > back in 2019.. The only thing that actually depends on CONFIG_OSF4_COMPAT seems to be the custom logic in readv() and writev(). Those are the two that you removed in your patch back then[1]. For the other system calls, I fear we can only try to guess which of them are used in Linux applications and which ones are not. These were always available to normal Linux user space, so the ones that are similar to our syscalls could have been used in glibc, e.g. mmap, wait4, stat. Arnd [1] https://lore.kernel.org/all/CAHk-=wgt7M6yA5BJCJo0nF22WgPJnN8CvViL9CAJmd+S+Civ6w@xxxxxxxxxxxxxx/ [2] $ git grep sys_osf arch/alpha/kernel/syscalls/syscall.tbl 7 common osf_wait4 sys_osf_wait4 17 common brk sys_osf_brk 21 common osf_mount sys_osf_mount 43 common osf_set_program_attributes sys_osf_set_program_attributes 48 common osf_sigprocmask sys_osf_sigprocmask 71 common mmap sys_osf_mmap 93 common osf_select sys_osf_select 100 common getpriority sys_osf_getpriority 112 common osf_sigstack sys_osf_sigstack 116 common osf_gettimeofday sys_osf_gettimeofday 117 common osf_getrusage sys_osf_getrusage 120 common readv sys_osf_readv 121 common writev sys_osf_writev 122 common osf_settimeofday sys_osf_settimeofday 138 common osf_utimes sys_osf_utimes 156 common sigaction sys_osf_sigaction 159 common osf_getdirentries sys_osf_getdirentries 160 common osf_statfs sys_osf_statfs 161 common osf_fstatfs sys_osf_fstatfs 165 common osf_getdomainname sys_osf_getdomainname 207 common osf_utsname sys_osf_utsname 224 common osf_stat sys_osf_stat 225 common osf_lstat sys_osf_lstat 226 common osf_fstat sys_osf_fstat 227 common osf_statfs64 sys_osf_statfs64 228 common osf_fstatfs64 sys_osf_fstatfs64 241 common osf_sysinfo sys_osf_sysinfo 244 common osf_proplist_syscall sys_osf_proplist_syscall 251 common osf_usleep_thread sys_osf_usleep_thread 256 common osf_getsysinfo sys_osf_getsysinfo 257 common osf_setsysinfo sys_osf_setsysinfo