From: "Arnd Bergmann" <arnd@arndb.de>
To: "Heiko Carstens" <hca@linux.ibm.com>,
"Alexander Gordeev" <agordeev@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"Christian Borntraeger" <borntraeger@linux.ibm.com>,
"Sven Schnelle" <svens@linux.ibm.com>,
"Andreas Krebbel" <krebbel@linux.ibm.com>,
"Linus Torvalds" <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org
Subject: Re: [RFC PATCH 5/8] s390: Remove compat support
Date: Mon, 10 Nov 2025 22:33:32 +0100 [thread overview]
Message-ID: <fdeed5df-5c97-4df6-9475-874fccc5b0c5@app.fastmail.com> (raw)
In-Reply-To: <20251110185440.2667511-6-hca@linux.ibm.com>
On Mon, Nov 10, 2025, at 19:54, Heiko Carstens wrote:
> diff --git a/arch/s390/configs/compat.config b/arch/s390/configs/compat.config
> deleted file mode 100644
> index 6fd051453ae8..000000000000
> --- a/arch/s390/configs/compat.config
> +++ /dev/null
> @@ -1,3 +0,0 @@
> -# Help: Enable compat support
> -CONFIG_COMPAT=y
> -CONFIG_COMPAT_32BIT_TIME=y
I think you missed a reference to this file at
tools/testing/selftests/nolibc/Makefile.nolibc:DEFCONFIG_s390 = defconfig compat.config
> -/*
> - * A pointer passed in from user mode. This should not
> - * be used for syscall parameters, just declare them
> - * as pointers because the syscall entry code will have
> - * appropriately converted them already.
> - */
> -
> -static inline void __user *compat_ptr(compat_uptr_t uptr)
> -{
> - return (void __user *)(unsigned long)(uptr & 0x7fffffffUL);
> -}
> -#define compat_ptr(uptr) compat_ptr(uptr)
This opens an interesting question: since compat_ptr() now doesn't
do anything interesting any more, do we still require drivers to
use it for correctness, or do we stop using it?
The cheri/morello code was repurposed compat_ptr() to support
both 64-bit and 128-bit pointers in userland, and that has a chance
of coming back in the future, but that's not getting merged and it
isn't clear if any other 128-bit pointer support in the future would
need a similar trick.
Arnd
next prev parent reply other threads:[~2025-11-10 21:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-10 18:54 [RFC PATCH 0/8] " Heiko Carstens
2025-11-10 18:54 ` [RFC PATCH 1/8] s390/ptrace: Rename psw_t32 to psw32_t Heiko Carstens
2025-11-10 18:54 ` [RFC PATCH 2/8] s390/kvm: Use psw32_t instead of psw_compat_t Heiko Carstens
2025-11-10 18:54 ` [RFC PATCH 3/8] s390/syscalls: Add pt_regs parameter to SYSCALL_DEFINE0() syscall wrapper Heiko Carstens
2025-11-10 18:54 ` [RFC PATCH 4/8] tools: Remove s390 compat support Heiko Carstens
2025-11-10 18:54 ` [RFC PATCH 5/8] s390: Remove " Heiko Carstens
2025-11-10 21:33 ` Arnd Bergmann [this message]
2025-11-11 11:34 ` Heiko Carstens
2025-11-10 18:54 ` [RFC PATCH 6/8] s390/uapi: Remove 31 bit support from uapi header files Heiko Carstens
2025-11-10 18:54 ` [RFC PATCH 7/8] s390/syscalls: Remove system call table pointer from thread_struct Heiko Carstens
2025-11-10 18:54 ` [RFC PATCH 8/8] s390/syscalls: Switch to generic system call table generation Heiko Carstens
2025-11-10 20:51 ` Arnd Bergmann
2025-11-11 11:36 ` Heiko Carstens
2025-11-11 12:41 ` [RFC PATCH 0/8] s390: Remove compat support Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fdeed5df-5c97-4df6-9475-874fccc5b0c5@app.fastmail.com \
--to=arnd@arndb.de \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=krebbel@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=svens@linux.ibm.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®