linux-yocto/arch
Michael Karcher 3a5c5d904e sparc: fix accurate exception reporting in copy_{from,to}_user for M7
[ Upstream commit 936fb512752af349fc30ccbe0afe14a2ae6d7159 ]

The referenced commit introduced exception handlers on user-space memory
references in copy_from_user and copy_to_user. These handlers return from
the respective function and calculate the remaining bytes left to copy
using the current register contents. This commit fixes a couple of bad
calculations. This will fix the return value of copy_from_user and
copy_to_user in the faulting case. The behaviour of memcpy stays unchanged.

Fixes: 34060b8fff ("arch/sparc: Add accurate exception reporting in M7memcpy")
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> # on Oracle SPARC S7
Tested-by: Tony Rodriguez <unixpro1970@gmail.com> # S7, see https://lore.kernel.org/r/98564e2e68df2dda0e00c67a75c7f7dfedb33c7e.camel@physik.fu-berlin.de
Signed-off-by: Michael Karcher <kernel@mkarcher.dialup.fu-berlin.de>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Link: https://lore.kernel.org/r/20250905-memcpy_series-v4-5-1ca72dda195b@mkarcher.dialup.fu-berlin.de
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-10-15 11:56:36 +02:00
..
alpha alpha/elf: Fix misc/setarch test of util-linux by removing 32bit support 2025-03-28 21:58:51 +01:00
arc
arm ARM: at91: pm: fix MCKx restore routine 2025-10-15 11:56:27 +02:00
arm64 arm64: dts: mediatek: mt8516-pumpkin: Fix machine compatible 2025-10-15 11:56:28 +02:00
csky
hexagon hexagon: Fix unbalanced spinlock in die() 2025-02-21 13:49:25 +01:00
ia64
loongarch LoongArch: Check the return value when creating kobj 2025-09-25 10:58:52 +02:00
m68k m68k: Fix lost column on framebuffer debug console 2025-08-28 16:26:05 +02:00
microblaze
mips mips: lantiq: xway: sysctrl: rename the etop node 2025-09-04 15:26:24 +02:00
nios2
openrisc
parisc parisc: Update comments in make_insert_tlb 2025-08-28 16:26:08 +02:00
powerpc powerpc/kvm: Fix ifdef to remove build warning 2025-09-04 15:26:26 +02:00
riscv RISC-V: KVM: Don't treat SBI HFENCE calls as NOPs 2025-06-27 11:07:41 +01:00
s390 s390/cpum_cf: Fix uninitialized warning after backport of ce971233242b 2025-10-02 13:40:41 +02:00
sh sh: Do not use hyphen in exported variable name 2025-08-15 12:05:04 +02:00
sparc sparc: fix accurate exception reporting in copy_{from,to}_user for M7 2025-10-15 11:56:36 +02:00
um minmax: make generic MIN() and MAX() macros available everywhere 2025-10-02 13:40:43 +02:00
x86 x86/vdso: Fix output operand size of RDPID 2025-10-15 11:56:25 +02:00
xtensa
.gitignore
Kconfig