]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
sparc: fix old compat_sys_select()
authorArnd Bergmann <arnd@arndb.de>
Wed, 19 Jun 2024 12:07:30 +0000 (14:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jul 2024 07:08:27 +0000 (09:08 +0200)
[ Upstream commit bae6428a9fffb2023191b0723e276cf1377a7c9f ]

sparc has two identical select syscalls at numbers 93 and 230, respectively.
During the conversion to the modern syscall.tbl format, the older one of the
two broke in compat mode, and now refers to the native 64-bit syscall.

Restore the correct behavior. This has very little effect, as glibc has
been using the newer number anyway.

Fixes: 6ff645dd683a ("sparc: add system call table generation support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/sparc/kernel/syscalls/syscall.tbl

index 8c8cc7537fb274eef7fce0f1489057298e14a310..8235655e032216f5188d7863fe790d5ded4b9ea0 100644 (file)
 90     common  dup2                    sys_dup2
 91     32      setfsuid32              sys_setfsuid
 92     common  fcntl                   sys_fcntl                       compat_sys_fcntl
-93     common  select                  sys_select
+93     common  select                  sys_select                      compat_sys_select
 94     32      setfsgid32              sys_setfsgid
 95     common  fsync                   sys_fsync
 96     common  setpriority             sys_setpriority