Thread (39 messages) 39 messages, 12 authors, 2024-06-24

Re: [PATCH 14/15] asm-generic: unistd: fix time32 compat syscall handling

From: "Arnd Bergmann" <arnd@arndb.de>
Date: 2024-06-24 12:37:08
Also in: linux-arch, linux-fsdevel, linux-mips, linux-s390, linux-sh, lkml, ltp, sparclinux, stable

On Thu, Jun 20, 2024, at 18:23, Arnd Bergmann wrote:
From: Arnd Bergmann <arnd@arndb.de>

arch/riscv/ appears to have accidentally enabled the compat time32
syscalls in 64-bit kernels even though the native 32-bit ABI does
not expose those.

Address this by adding another level of indirection, checking for both
the target ABI (32 or 64) and the __ARCH_WANT_TIME32_SYSCALLS macro.

The macro arguments are meant to follow the syscall.tbl format, the idea
here is that by the end of the series, all other syscalls are changed
to the same format to make it possible to move all architectures over
to generating the system call table consistently.
Only this patch needs to be backported though.

Cc: stable@vger.kernel.org # v5.19+
Fixes: 7eb6369d7acf ("RISC-V: Add support for rv32 userspace via COMPAT")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
I had pulled this in from my longer series, but as the kernel
build bot reported, this produced build time regressions, so
I'll drop it from the v6.10 fixes and will integrated it back
as part of the cleanup series.

     Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help