platform_kernel-5.15/mm
Andreas Gruenbacher 5452f089f9 UPSTREAM: gup: Introduce FOLL_NOFAULT flag to disable page faults
commit 55b8fe703bc51200d4698596c90813453b35ae63 upstream

Introduce a new FOLL_NOFAULT flag that causes get_user_pages to return
-EFAULT when it would otherwise trigger a page fault.  This is roughly
similar to FOLL_FAST_ONLY but available on all architectures, and less
fragile.

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 6e213bc614)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I9042539b7125cfbbd60f2329b19a3016031a81a0
2022-06-10 08:12:04 +02:00
..
damon FROMLIST: mm/damon/reclaim: Fix the timer always stays active 2022-06-01 15:26:12 -07:00
kasan Merge 5.15.38 into android13-5.15 2022-05-18 09:00:50 +02:00
kfence UPSTREAM: mm: kfence: fix objcgs vector allocation 2022-05-18 13:03:54 +02:00
Kconfig FROMLIST: mm: multi-gen LRU: admin guide 2022-04-20 17:38:56 +00:00
Kconfig.debug FROMLIST: mm: anon spf statistics 2022-03-23 11:32:17 -07:00
Makefile mm: introduce Data Access MONitor (DAMON) 2021-09-08 11:50:24 -07:00
OWNERS
backing-dev.c mm: bdi: initialize bdi_min_ratio when bdi is unregistered 2021-12-14 10:57:11 +01:00
balloon_compaction.c mm: fix typos in comments 2021-05-07 00:26:35 -07:00
bootmem_info.c mm/bootmem_info.c: mark __init on register_page_bootmem_info_section 2021-09-03 09:58:14 -07:00
cleancache.c
cma.c Merge 6efb943b86 Linux 5.13-rc1 into android-mainline 2021-05-15 09:09:01 +01:00
cma.h mm: cma: support sysfs 2021-05-05 11:27:24 -07:00
cma_debug.c mm/cma: change cma mutex to irq safe spinlock 2021-05-05 11:27:21 -07:00
cma_sysfs.c mm: cma: support sysfs 2021-05-05 11:27:24 -07:00
compaction.c ANDROID: mm: compaction: fix isolate_and_split_free_page() redefinition 2022-03-19 05:19:23 +00:00
debug.c FROMLIST: mm: export dump_mm 2022-03-23 11:32:12 -07:00
debug_page_ref.c
debug_vm_pgtable.c mm/debug_vm_pgtable: remove pte entry from the page table 2022-02-08 18:34:05 +01:00
dmapool.c mm/dmapool: use DEVICE_ATTR_RO macro 2021-06-29 10:53:52 -07:00
early_ioremap.c mm/early_ioremap.c: remove redundant early_ioremap_shutdown() 2021-09-08 11:50:24 -07:00
fadvise.c
failslab.c
filemap.c UPSTREAM: iov_iter: Turn iov_iter_fault_in_readable into fault_in_iov_iter_readable 2022-06-10 08:12:03 +02:00
frontswap.c mm/mempool: minor coding style tweaks 2021-05-05 11:27:27 -07:00
gup.c UPSTREAM: gup: Introduce FOLL_NOFAULT flag to disable page faults 2022-06-10 08:12:04 +02:00
gup_test.c selftests/vm: gup_test: test faulting in kernel, and verify pinnable pages 2021-05-05 11:27:26 -07:00
gup_test.h selftests/vm: gup_test: fix test flag 2021-05-05 11:27:26 -07:00
highmem.c highmem: fix checks in __kmap_local_sched_{in,out} 2022-04-13 20:59:21 +02:00
hmm.c mm/hmm.c: allow VM_MIXEDMAP to work with hmm_range_fault 2022-01-27 11:05:43 +01:00
huge_memory.c This is the 5.15.41 stable release 2022-05-18 11:31:34 +02:00
hugetlb.c hugetlbfs: flush TLBs correctly after huge_pmd_unshare 2021-11-25 09:49:07 +01:00
hugetlb_cgroup.c hugetlb: make free_huge_page irq safe 2021-05-05 11:27:22 -07:00
hugetlb_vmemmap.c mm: hugetlb: introduce CONFIG_HUGETLB_PAGE_FREE_VMEMMAP_DEFAULT_ON 2021-06-30 20:47:26 -07:00
hugetlb_vmemmap.h mm: hugetlb: introduce nr_free_vmemmap_pages in the struct hstate 2021-06-30 20:47:25 -07:00
hwpoison-inject.c mm: hwpoison: don't drop slab caches for offlining non-LRU page 2021-09-03 09:58:15 -07:00
init-mm.c mm: add setup_initial_init_mm() helper 2021-07-08 11:48:21 -07:00
internal.h mm/numa: automatically generate node migration order 2021-09-03 09:58:16 -07:00
interval_tree.c mm/interval_tree: add comments to improve code readability 2021-04-30 11:20:38 -07:00
io-mapping.c mm: add a io_mapping_map_user helper 2021-04-30 11:20:39 -07:00
ioremap.c mm: move ioremap_page_range to vmalloc.c 2021-09-08 11:50:24 -07:00
khugepaged.c mm: khugepaged: skip huge page collapse for special files 2021-10-28 17:18:55 -07:00
kmemleak.c Merge 5.15.35 into android13-5.15 2022-04-24 16:58:59 +02:00
ksm.c mm/ksm: remove old GCC 4.9+ check 2021-09-13 10:18:28 -07:00
list_lru.c mm: vmscan: consolidate shrinker_maps handling code 2021-05-05 11:27:23 -07:00
maccess.c ARM: 9115/1: mm/maccess: fix unaligned copy_{from,to}_kernel_nofault 2021-08-20 11:39:25 +01:00
madvise.c Merge 5.15.33 into android13-5.15 2022-04-20 08:18:54 +02:00
mapping_dirty_helpers.c mm/mapping_dirty_helpers: remove double Note in kerneldoc 2021-07-01 11:06:02 -07:00
memblock.c Merge 5.15.26 into android13-5.15 2022-03-16 12:53:52 +01:00
memcontrol.c Merge 5.15.36 into android13-5.15 2022-05-18 08:55:59 +02:00
memfd.c memfd: fix F_SEAL_WRITE after shmem huge page allocated 2022-03-08 19:12:48 +01:00
memory-failure.c mm/hwpoison: use pr_err() instead of dump_page() in get_any_page() 2022-05-18 10:26:57 +02:00
memory.c ANDROID: Use the notifier lock to perform file-backed vma teardown 2022-05-23 20:56:44 +00:00
memory_hotplug.c ANDROID: mm/memory_hotplug: Don't special case memory_block_size_bytes 2022-06-02 19:38:29 +00:00
mempolicy.c Merge 5.15.34 into android13-5.15 2022-04-24 16:57:32 +02:00
mempool.c kasan: use separate (un)poison implementation for integrated init 2021-06-04 19:32:21 +01:00
memremap.c mm/memory_hotplug: remove nid parameter from arch_remove_memory() 2021-09-08 11:50:23 -07:00
memtest.c
migrate.c Merge 5.15.40 into android13-5.15 2022-05-18 09:40:16 +02:00
mincore.c
mlock.c Merge 5.15.40 into android13-5.15 2022-05-18 09:40:16 +02:00
mm_init.c FROMLIST: mm: multi-gen LRU: groundwork 2022-04-20 17:38:55 +00:00
mmap.c ANDROID: vendor_hooks: Add hook in mmap_region() 2022-06-02 20:45:01 +00:00
mmap_lock.c mm: mmap_lock: fix disabling preemption directly 2021-07-23 17:43:28 -07:00
mmu_gather.c
mmu_notifier.c mm/mmu_notifier.c: fix race in mmu_interval_notifier_remove() 2022-04-27 14:38:58 +02:00
mmzone.c FROMLIST: mm: multi-gen LRU: groundwork 2022-04-20 17:38:55 +00:00
mprotect.c UPSTREAM: mm: refactor vm_area_struct::anon_vma_name usage code 2022-03-24 18:44:39 -07:00
mremap.c mmmremap.c: avoid pointless invalidate_range_start/end on mremap(old_size=0) 2022-04-13 20:59:22 +02:00
msync.c mm/msync: exit early when the flags is an MS_ASYNC and start < vm_start 2021-04-30 11:20:37 -07:00
nommu.c FROMLIST: mm: rcu safe vma->vm_file freeing 2022-03-23 11:32:18 -07:00
oom_kill.c Revert "Revert "oom_kill.c: futex: delay the OOM reaper to allow time for proper futex cleanup"" 2022-06-01 09:32:34 -07:00
page-writeback.c Merge branch 'akpm' (patches from Andrew) 2021-09-03 10:08:28 -07:00
page_alloc.c ANDROID: vendor_hooks: Add hooks for memory when debug 2022-06-02 14:37:19 -07:00
page_counter.c mm: page_counter: mitigate consequences of a page_counter underflow 2021-04-30 11:20:38 -07:00
page_ext.c ANDROID: mm: Export lookup_page_ext 2021-11-23 11:59:24 +05:30
page_idle.c mm/idle_page_tracking: make PG_idle reusable 2021-09-08 11:50:24 -07:00
page_io.c mm: fix unexpected zeroed page mapping with zram swap 2022-04-20 09:34:18 +02:00
page_isolation.c Merge branch 'akpm' (patches from Andrew) 2021-09-08 12:55:35 -07:00
page_owner.c ANDROID: mm: add get_page_owner_handle function 2021-11-23 09:30:23 +00:00
page_poison.c mm: page_poison: print page info when corruption is caught 2021-04-30 11:20:36 -07:00
page_reporting.c mm/page_reporting: allow driver to specify reporting order 2021-06-29 10:53:47 -07:00
page_reporting.h mm/page_reporting: export reporting order as module parameter 2021-06-29 10:53:47 -07:00
page_vma_mapped.c mm: device exclusive memory access 2021-07-01 11:06:03 -07:00
pagewalk.c mm: pagewalk: fix walk for hugepage tables 2021-06-29 10:53:49 -07:00
percpu-internal.h Merge branch 'for-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu 2021-07-01 17:17:24 -07:00
percpu-km.c percpu: flush tlb in pcpu_reclaim_populated() 2021-07-04 18:30:17 +00:00
percpu-stats.c percpu: rework memcg accounting 2021-06-05 20:43:15 +00:00
percpu-vm.c percpu: flush tlb in pcpu_reclaim_populated() 2021-07-04 18:30:17 +00:00
percpu.c ANDROID: mm: Export pcpu_nr_pages 2022-04-27 16:02:52 +00:00
pgalloc-track.h mm: fix typos in comments 2021-05-07 00:26:35 -07:00
pgtable-generic.c mm/thp: fix __split_huge_pmd_locked() on shmem migration entry 2021-06-16 09:24:42 -07:00
process_vm_access.c mm/process_vm_access.c: remove duplicate include 2021-05-05 11:27:27 -07:00
ptdump.c
readahead.c Merge 4520dcbe0d ("Merge tag 'for-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply") into android-mainline 2021-09-02 09:42:36 +02:00
rmap.c ANDROID: vendor_hooks: Add hook in try_to_unmap_one() 2022-06-02 20:45:07 +00:00
rodata_test.c
secretmem.c mm/secretmem: fix panic when growing a memfd_secret 2022-04-20 09:34:18 +02:00
shmem.c Merge 5.15.40 into android13-5.15 2022-05-18 09:40:16 +02:00
shuffle.c
shuffle.h mm/shuffle: fix section mismatch warning 2021-05-22 15:09:07 -10:00
slab.c Merge 5.15.36 into android13-5.15 2022-05-18 08:55:59 +02:00
slab.h Merge 5.15.36 into android13-5.15 2022-05-18 08:55:59 +02:00
slab_common.c ANDROID: vendor_hooks: Add hooks for memory when debug 2022-06-02 14:37:19 -07:00
slob.c mm, kfence: support kmem_dump_obj() for KFENCE objects 2022-04-27 14:38:51 +02:00
slub.c Merge 5.15.36 into android13-5.15 2022-05-18 08:55:59 +02:00
sparse-vmemmap.c mm: sparsemem: split the huge PMD mapping of vmemmap pages 2021-06-30 20:47:26 -07:00
sparse.c mm: introduce memmap_alloc() to unify memory map allocation 2021-09-03 09:58:15 -07:00
swap.c FROMLIST: mm: multi-gen LRU: exploit locality in rmap 2022-04-20 17:38:55 +00:00
swap_cgroup.c
swap_slots.c mm: Replace deprecated CPU-hotplug functions. 2021-08-28 01:46:17 +02:00
swap_state.c mm: swap: get rid of livelock in swapin readahead 2022-03-23 09:16:41 +01:00
swapfile.c ANDROID: mm: Export si_swapinfo 2021-11-23 11:59:24 +05:30
truncate.c Merge branch 'akpm' (patches from Andrew) 2021-09-03 10:08:28 -07:00
usercopy.c mm/usercopy: return 1 from hardened_usercopy __setup() handler 2022-04-08 14:24:14 +02:00
userfaultfd.c mm: userfaultfd: fix missing cache flush in mcopy_atomic_pte() and __mcopy_atomic() 2022-05-15 20:18:53 +02:00
util.c Merge 5.15.27 into android-5.15 2022-03-17 14:02:09 +01:00
vmacache.c
vmalloc.c ANDROID: mm: Export vmalloc_nr_pages 2022-04-27 16:25:23 +00:00
vmpressure.c mm/vmpressure: replace vmpressure_to_css() with vmpressure_to_memcg() 2021-09-03 09:58:17 -07:00
vmscan.c ANDROID: vendor_hooks: tune reclaim swappiness or scan type 2022-06-09 14:40:08 -07:00
vmstat.c BACKPORT: FROMLIST: mm: enable speculative fault handling for supported file types. 2022-03-23 11:32:19 -07:00
workingset.c Merge 5.15.36 into android13-5.15 2022-05-18 08:55:59 +02:00
z3fold.c mm/z3fold: add kerneldoc fields for z3fold_pool 2021-07-01 11:06:03 -07:00
zbud.c mm/zbud: add kerneldoc fields for zbud_pool 2021-07-01 11:06:03 -07:00
zpool.c mm: fix typos in comments 2021-05-07 00:26:35 -07:00
zsmalloc.c This is the 5.15.3 stable release 2021-11-19 15:38:07 +01:00
zswap.c mm/zswap.c: fix two bugs in zswap_writeback_entry() 2021-06-30 20:47:31 -07:00