mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Helge Deller <deller@gmx.de>
To: Sven Schnelle <svens@stackframe.org>,
	John David Anglin <dave.anglin@bell.net>
Cc: linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] parisc/entry: set W bit for !compat tasks in syscall_restore_rfi()
Date: Thu, 16 Oct 2025 01:38:47 +0200	[thread overview]
Message-ID: <4f2872c0-01b4-416d-ba7c-63ff4b3b02ff@gmx.de> (raw)
In-Reply-To: <20251015212141.289981-1-svens@stackframe.org>

On 10/15/25 23:21, Sven Schnelle wrote:
> When the kernel leaves to userspace via syscall_restore_rfi(), the
> W bit is not set in the new PSW. This doesn't cause any problems
> because there's no 64 bit userspace for parisc. Simple static binaries
> are usually loaded at addresses way below the 32 bit limit so the W bit
> doesn't matter.
> 
> Fix this by setting the W bit when TIF_32BIT is not set.
> 
> Signed-off-by: Sven Schnelle <svens@stackframe.org>
> ---
>   arch/parisc/kernel/asm-offsets.c | 2 ++
>   arch/parisc/kernel/entry.S       | 5 ++++-
>   2 files changed, 6 insertions(+), 1 deletion(-)

applied.

Thanks!
Helge

      reply	other threads:[~2025-10-15 23:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-15 21:21 Sven Schnelle
2025-10-15 23:38 ` Helge Deller [this message]

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=4f2872c0-01b4-416d-ba7c-63ff4b3b02ff@gmx.de \
    --to=deller@gmx.de \
    --cc=dave.anglin@bell.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-parisc@vger.kernel.org \
    --cc=svens@stackframe.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®