]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc: entry: set W bit for !compat tasks in syscall_restore_rfi()
authorSven Schnelle <svens@stackframe.org>
Wed, 15 Oct 2025 21:21:41 +0000 (23:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:11:57 +0000 (13:11 +0100)
commit5cd909587ac529f82d31e821ce8d19ce01e8927c
tree461d91837ec0ebc5747c1054334db1a75c7d488d
parent584ff127885f841a125f76ce4ac985d4ce25d3a5
parisc: entry: set W bit for !compat tasks in syscall_restore_rfi()

commit 5fb1d3ce3e74a4530042795e1e065422295f1371 upstream.

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>
Cc: stable@vger.kernel.org
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/kernel/asm-offsets.c
arch/parisc/kernel/entry.S