v6.4 mm backport
JIRA: https://issues.redhat.com/browse/RHEL-27741
Depends: !3803 (merged)
CKI reviewers please note: this MR removes module licenses for the zram and zswap drivers so module diff failures with these 2 modules is expected
Omitted-fix: dd34d9fe3b42 ("mm: fix unaccount of memory on vma_link() failure") Omitted-fix: 824135c46b00 ("mmap: fix error paths with dup_anon_vma()") Omitted-fix: e0f81ab1e4f4 ("mm: fix vm_brk_flags() to not bail out while holding lock") Omitted-fix: 270aa0106206 ("mm/uffd: fix vma operation where start addr cuts part of vma") Omitted-fix: 65ac132027a8 ("userfaultfd: fix regression in userfaultfd_unmap_prep()") Omitted-fix: 51f625377561 ("mm/mempolicy: fix set_mempolicy_home_node() previous VMA pointer") Omitted-fix: 6c26bd4384da ("mm/mmap: Fix error return in do_vmi_align_munmap()") Omitted-fix: 0411d6ee50e3 ("include/linux/mm: fix release_pages_arg kernel doc comment") Omitted-fix: fdb54d96600a ("kasan, slub: fix HW_TAGS zeroing with slub_debug") Omitted-fix: 2fde9e7f9e6d ("mm/memory-failure: fix crash in split_huge_page_to_list from soft_offline_page") Omitted-fix: 84055688b6bc ("mm/damon/sysfs-schemes: handle tried regions sysfs directory allocation failure") Omitted-fix: 76b7069bcc89 ("mm/damon/sysfs: check DAMOS regions update progress from before_terminate()") Omitted-fix: ae636ae2bbfd ("mm/damon/sysfs-schemes: handle tried region directory allocation failure") Omitted-fix: fa151a39a687 ("mm: fix arithmetic for max_prop_frac when setting max_ratio") Omitted-fix: e0646b759008 ("mm: fix arithmetic for bdi min_ratio") Omitted-fix: 7535b832c639 ("exit: Use READ_ONCE() for all oops/warn limit reads") Omitted-fix: 00dd027f721e ("docs: Fix path paste-o for /sys/kernel/warn_count") Omitted-fix: 1beb8ae302a0 ("Docs/admin-guide/mm/zswap: remove zsmalloc's lack of writeback warning") Omitted-fix: 835bc157da68 ("mm/kmemleak: use object_cache instead of kmemleak_initialized to check in set_track_prepare()") Omitted-fix: f985fc322063 ("mm/swapfile: fix wrong swap entry type for hwpoisoned swapcache page") Omitted-fix: 443ed4c302ff ("objtool: mem*() are not uaccess safe") Omitted-fix: 90fd833609c8 ("kasan: remove hwasan-kernel-mem-intrinsic-prefix=1 for clang-14") Omitted-fix: 10f4c9b9a33b ("x86/asm: Fix build of UML with KASAN") Omitted-fix: 72de25913022 ("mm/memfd: sysctl: fix MEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCED") Omitted-fix: 202e14222fad ("memfd: do not -EACCES old memfd_create() users with vm.memfd_noexec=2") Omitted-fix: 434ed3350f57 ("memfd: improve userspace warnings for missing exec-related flags") Omitted-fix: 9876cfe8ec1c ("memfd: replace ratcheting feature from vm.memfd_noexec with hierarchy") Omitted-fix: 2562d67b1bdf ("revert "memfd: improve userspace warnings for missing exec-related flags".") Omitted-fix: 1717449b4417 ("memfd: drop warning for missing exec-related flags") Omitted-fix: 99f34659e78b ("selftests: memfd: error out test process when child test fails") Omitted-fix: 5f1fc67f2cb8 ("mm/damon/core: initialize damo_filter->list from damos_new_filter()") Omitted-fix: a101482421a3 ("tools/Makefile: do missed s/vm/mm/") Omitted-fix: 6c54312f9689 ("mm/memory-failure: fix hardware poison check in unpoison_memory()") Omitted-fix: 6f74c0ec2095 ("arm/mm: fix swp type masking in __swp_entry()") Omitted-fix: 0da668333fb0 ("mm: make PR_MDWE_REFUSE_EXEC_GAIN an unsigned long") Omitted-fix: c643e6ebedb4 ("mm: fix memcpy_from_file_folio() integer underflow") Omitted-fix: 2658f94d6792 ("mm/mlock: fix vma iterator conversion of apply_vma_lock_flags()") Omitted-fix: 1419430c8abb ("mmap: fix vma_iterator in error path of vma_merge()") Omitted-fix: 1738b949625c ("selftests/mm: FOLL_LONGTERM need to be updated to 0x100") Omitted-fix: 16f8eb3eea9e ("Revert "page cache: fix page_cache_next/prev_miss off by one"") Omitted-fix: fd4aed8d985a ("hugetlb: revert use of page_cache_next_miss()") Omitted-fix: d1adb25df711 ("mm: migrate: fix getting incorrect page mapping during page migration") Omitted-fix: a259945efe6a ("mm/migrate: correct nr_failed in migrate_pages_sync()") Omitted-fix: c37222082f23 ("splice: Fix filemap_splice_read() to use the correct inode") Omitted-fix: 90fd833609c8 ("kasan: remove hwasan-kernel-mem-intrinsic-prefix=1 for clang-14") Omitted-fix: a259945efe6a ("mm/migrate: correct nr_failed in migrate_pages_sync()") Omitted-fix: 51f625377561 ("mm/mempolicy: fix set_mempolicy_home_node() previous VMA pointer") Omitted-fix: 0b24be4691c9 ("splice: don't call file_accessed in copy_splice_read") Omitted-fix: 253e5df8b8f0 ("tmpfs: fix Documentation of noswap and huge mount options") Omitted-fix: 9f297db35667 ("dmapool: create/destroy cleanup") Omitted-fix: fc4354c6e5c2 ("Merge tag 'mm-stable-2023-05-06-10-49' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm…") Omitted-fix: 58f5f6698a72 ("afs: fix the afs_dir_get_folio return value") Omitted-fix: fc0c8f9089c2 ("mm, mmap: fix vma_merge() case 7 with vma_ops->close") Omitted-fix: 5aa598a72eaf ("mm: memory: fix shift-out-of-bounds in fault_around_bytes_set") Omitted-fix: 17457784004c ("fs/proc/kcore: reinstate bounce buffer for KCORE_TEXT regions") Omitted-fix: d8ab9f7b644a ("mm: lock VMA in dup_anon_vma() before setting ->anon_vma") Omitted-fix: b1f02b95758d ("mm: fix memory ordering for mm_lock_seq and vm_lock_seq") Omitted-fix: 657b5146955e ("mm: lock_vma_under_rcu() must check vma->anon_vma under vma lock") Omitted-fix: 6c21e066f925 ("mm/mempolicy: Take VMA lock before replacing policy") Omitted-fix: 90717566f8f6 ("mm: don't drop VMA locks in mm_drop_all_locks()") Omitted-fix: e8c716bc6812 ("mm/khugepaged: fix regression in collapse_file()") Omitted-fix: 3c6f33b7273a ("mm/ksm: support fork/exec for prctl") Omitted-fix: e3b63e966cac ("mm: zswap: fix missing folio cleanup in writeback race path") Omitted-fix: 16f8eb3eea9e ("Revert "page cache: fix page_cache_next/prev_miss off by one"") Omitted-fix: 6c26bd4384da ("mm/mmap: Fix error return in do_vmi_align_munmap()") Omitted-fix: e8c716bc6812 ("mm/khugepaged: fix regression in collapse_file()") Omitted-fix: 6c26bd4384da ("mm/mmap: Fix error return in do_vmi_align_munmap()") Omitted-fix: e8c716bc6812 ("mm/khugepaged: fix regression in collapse_file()")
Signed-off-by: Chris von Recklinghausen crecklin@redhat.com