android_kernel_sony_sdm845/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Thomas Gleixner 14540239bd x86/fpu: Return proper error codes from user access functions
[ Upstream commit aee8c67a4faa40a8df4e79316dbfc92d123989c1 ]

When *RSTOR from user memory raises an exception, there is no way to
differentiate them. That's bad because it forces the slow path even when
the failure was not a fault. If the operation raised eg. #GP then going
through the slow path is pointless.

Use _ASM_EXTABLE_FAULT() which stores the trap number and let the exception
fixup return the negated trap number as error.

This allows to separate the fast path and let it handle faults directly and
avoid the slow path for all other exceptions.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210623121457.601480369@linutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:21:13 +02:00
..
alpha alpha: switch __copy_user() and __do_clean_user() to normal calling conventions 2021-03-17 16:10:18 +01:00
arc ARC: entry: fix off-by-one error in syscall number validation 2021-05-22 10:40:31 +02:00
arm ARM: 9087/1: kprobes: test-thumb: fix for LLVM_IAS=1 2021-07-20 16:21:13 +02:00
arm64 arm64: perf: Disable PMU while processing counter overflows 2021-06-30 08:49:19 -04:00
avr32
blackfin pinctrl: adi2: Fix Kconfig build problem 2017-12-20 10:07:32 +01:00
c6x
cris
frv futex: Remove duplicated code and fix undefined behaviour 2018-05-19 10:27:00 +02:00
h8300 h8300: fix PREEMPTION build, TI_PRE_COUNT undefined 2021-02-23 13:59:16 +01:00
hexagon hexagon: work around compiler crash 2020-01-23 08:19:38 +01:00
ia64 ia64: mca_drv: fix incorrect array size calculation 2021-07-20 16:21:00 +02:00
m32r
m68k m68k: q40: Fix info-leak in rtc_ioctl 2020-10-01 20:40:01 +02:00
metag
microblaze microblaze: Prevent the overflow of the start 2020-02-28 15:42:42 +01:00
mips MIPS: add PMD table accounting into MIPS'pmd_alloc_one 2021-07-20 16:21:07 +02:00
mn10300 mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy 2018-02-17 13:21:20 +01:00
nios2 nios2: ksyms: Add missing symbol exports 2020-01-29 10:24:18 +01:00
openrisc openrisc: Define memory barrier mb 2021-06-03 08:23:32 +02:00
parisc parisc: avoid a warning on u8 cast for cmpxchg on u8 pointers 2021-04-16 11:59:07 +02:00
powerpc powerpc/boot: Fixup device-tree on little endian 2021-07-20 16:21:12 +02:00
s390 s390/sclp_vt220: fix console name to match device 2021-07-20 16:21:11 +02:00
score
sh sh: dma: fix kconfig dependency for G2_DMA 2021-01-30 13:27:15 +01:00
sparc sparc32: fix a user-triggerable oops in clear_user() 2021-03-03 17:44:44 +01:00
tile locking/x86: Remove the unused atomic_inc_short() methd 2020-01-12 11:24:19 +01:00
um um: Mark all kernel symbols as local 2021-05-22 10:40:34 +02:00
unicore32
x86 x86/fpu: Return proper error codes from user access functions 2021-07-20 16:21:13 +02:00
xtensa xtensa: disable preemption around cache alias management calls 2020-11-24 13:03:08 +01:00
.gitignore
Kconfig cpu/hotplug: Provide knobs to control SMT 2018-08-15 18:14:46 +02:00