platform_kernel-5.15/arch/x86
Andreas Gruenbacher d9fb814064 UPSTREAM: gup: Turn fault_in_pages_{readable,writeable} into fault_in_{readable,writeable}
commit bb523b406c849eef8f265a07cd7f320f1f177743 upstream

Turn fault_in_pages_{readable,writeable} into versions that return the
number of bytes not faulted in, similar to copy_to_user, instead of
returning a non-zero value when any of the requested pages couldn't be
faulted in.  This supports the existing users that require all pages to
be faulted in as well as new users that are happy if any pages can be
faulted in.

Rename the functions to fault_in_{readable,writeable} to make sure
this change doesn't silently break things.

Neither of these functions is entirely trivial and it doesn't seem
useful to inline them, so move them to mm/gup.c.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 923f05a660)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: If7387298a868e4e72244bd9c123e5ef9cf833629
2022-06-10 08:12:03 +02:00
..
boot x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
configs ANDROID: gki_defconfig: enable CONFIG_KFENCE_STATIC_KEYS 2022-06-08 17:55:22 +00:00
crypto crypto: x86/poly1305 - Fixup SLS 2022-05-15 20:18:51 +02:00
entry x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
events perf/x86/intel: Don't extend the pseudo-encoding to GP counters 2022-04-13 20:59:23 +02:00
hyperv x86/hyperv: Properly deal with empty cpumasks in hyperv_flush_tlb_multi() 2022-03-08 19:12:36 +01:00
ia32 binfmt: remove in-tree usage of MAP_DENYWRITE 2021-09-03 18:42:01 +02:00
include Merge 5.15.40 into android13-5.15 2022-05-18 09:40:16 +02:00
kernel UPSTREAM: gup: Turn fault_in_pages_{readable,writeable} into fault_in_{readable,writeable} 2022-06-10 08:12:03 +02:00
kvm kvm/emulate: Fix SETcc emulation function offsets with SLS 2022-05-15 20:18:51 +02:00
lib x86: Add straight-line-speculation mitigation 2022-05-15 20:18:51 +02:00
math-emu x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
mm This is the 5.15.41 stable release 2022-05-18 11:31:34 +02:00
net bpf: Fix extable address check. 2021-12-22 09:32:50 +01:00
pci x86/pci/xen: Disable PCI/MSI[-X] masking for XEN_HVM guests 2022-05-09 09:14:31 +02:00
platform x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
power x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
purgatory kernel.h: split out panic and oops helpers 2021-07-01 11:06:04 -07:00
ras
realmode x86/mm: Flush global TLB when switching to trampoline page-table 2022-01-27 11:04:35 +01:00
tools - Remove cc-option checks which are old and already supported by the 2021-08-30 13:27:16 -07:00
um x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
video
xen x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
.gitignore
Kbuild
Kconfig Merge 5.15.40 into android13-5.15 2022-05-18 09:40:16 +02:00
Kconfig.assembler
Kconfig.cpu
Kconfig.debug tracing: Refactor TRACE_IRQFLAGS_SUPPORT in Kconfig 2021-08-16 11:37:21 -04:00
Makefile Merge 5.15.40 into android13-5.15 2022-05-18 09:40:16 +02:00
Makefile.um um: allow not setting extra rpaths in the linux binary 2021-06-17 21:54:15 +02:00
Makefile_32.cpu x86/build: Do not add -falign flags unconditionally for clang 2021-09-19 10:35:53 +09:00
OWNERS ANDROID: Improve OWNERS file definitions 2021-05-21 14:25:12 +00:00