From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F0A83FE7; Tue, 5 Aug 2025 01:58:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754359133; cv=none; b=rSEBA8wpf6y+NEnI/KrGOVeJBcwb1rmdmAJfhxnXgRn5SJwotUeIAZe2B8M/ZBh5F79MC1rijSVJzhrd5+edd+INWbIZkIdIdm2+i95izidLHKOuKoGstDm5Vs1w5xBZbrST6vYj0YPO2zK6mbihBfLH3RAUn5ef4NaqPThBZF8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754359133; c=relaxed/simple; bh=zxcA38zhJxLeuNnCt3MgCVsaJMa24DpyresNs6gIDdE=; h=Date:From:To:Cc:Subject:Message-Id:Mime-Version:Content-Type; b=rxA/ybC0SgtopCzgpqpHBrkwow9TmUAs1fAgPkcKs8X6R3sPotEN/ffD1qiXdrZyJp3VCX18joy0CmJuUeOUtkOAweK3utz6P5LIYThmzHhKXq65jyVHPolFVkCs53SaLfvpxVKboAqcDeaPU7vQ8bfZkiEj4Eb6PLKN9pqm/aw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=DhNJFuoR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="DhNJFuoR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E494AC4CEE7; Tue, 5 Aug 2025 01:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1754359133; bh=zxcA38zhJxLeuNnCt3MgCVsaJMa24DpyresNs6gIDdE=; h=Date:From:To:Cc:Subject:From; b=DhNJFuoRiXsCswzz9Yv+4+0rdQEGQ/xTs8Jz7RGXMC84vNwKXe7FJVJhO5swRPb1t r1uueT6B5BPKX/kKiooz8YrF/LM8p8A7hfKiUPvXzadxjKW8c8h5RLU64JJ/12Tqj+ CMGRsf0VrL9gyQlgYi5nfaPLjfLK4EuHQLEsWr+Q= Date: Mon, 4 Aug 2025 18:58:52 -0700 From: Andrew Morton To: Linus Torvalds Cc: linux-mm@kvack.org, mm-commits@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] Additional MM updates for 6.17-rc1 Message-Id: <20250804185852.038ce90aa6f9a177c492b675@linux-foundation.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Linus, please pull this second and final batch of MM updates for the upcoming -rc1 cycle, thanks. I'm presently seeing no merge issues with this small batch of changes. Thanks. The following changes since commit af915c3c13b64d196d1c305016092f5da20942c4: MAINTAINERS: add missing headers to mempory policy & migration section (2025-07-26 15:08:24 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm tags/mm-stable-2025-08-03-12-35 for you to fetch changes up to a2152fef29020e740ba0276930f3a24440012505: mm: mempool: fix crash in mempool_free() for zero-minimum pools (2025-08-02 12:06:13 -0700) ---------------------------------------------------------------- Significant patch series in this pull request: - The 4 patch series "mseal cleanups" from Lorenzo Stoakes erforms some mseal cleaning with no intended functional change. - The 3 patch series "Optimizations for khugepaged" from David Hildenbrand improves khugepaged throughput by batching PTE operations for large folios. This gain is mainly for arm64. - The 8 patch series "x86: enable EXECMEM_ROX_CACHE for ftrace and kprobes" from Mike Rapoport provides a bugfix, additional debug code and cleanups to the execmem code. - The 7 patch series "mm/shmem, swap: bugfix and improvement of mTHP swap in" from Kairui Song provides bugfixes, cleanups and performance improvememnts to the mTHP swapin code. ---------------------------------------------------------------- Baolin Wang (1): mm: shmem: fix the shmem large folio allocation for the i915 driver Bijan Tabatabai (1): mm/damon/vaddr: skip isolating folios already in destination nid David Hildenbrand (1): mm: add get_and_clear_ptes() and clear_ptes() Dev Jain (2): khugepaged: optimize __collapse_huge_page_copy_succeeded() by PTE batching khugepaged: optimize collapse_pte_mapped_thp() by PTE batching Jann Horn (2): kasan: skip quarantine if object is still accessible under RCU mm/rmap: add anon_vma lifetime debug check Jinjiang Tu (2): mm/memory-failure: hold PTL in hwpoison_hugetlb_range mm/mincore: hold PTL in mincore_hugetlb Joanne Koong (1): mm/page-flags: remove folio_start_writeback_keepwrite() Kairui Song (8): mm/shmem, swap: improve cached mTHP handling and fix potential hang mm/shmem, swap: avoid redundant Xarray lookup during swapin mm/shmem, swap: tidy up THP swapin checks mm/shmem, swap: tidy up swap entry splitting mm/shmem, swap: never use swap cache and readahead for SWP_SYNCHRONOUS_IO mm/shmem, swap: simplify swapin path and result handling mm/shmem, swap: rework swap entry and index calculation for large swapin mm/shmem, swap: fix major fault counting Lorenzo Stoakes (7): mm/mseal: always define VM_SEALED mm/mseal: update madvise() logic mm/mseal: small cleanups mm/mseal: simplify and rename VMA gap check mm/mseal: rework mseal apply logic mm: remove mm/io-mapping.c mm: correct type for vmalloc vm_flags fields Mike Rapoport (Microsoft) (8): execmem: drop unused execmem_update_copy() execmem: introduce execmem_alloc_rw() execmem: rework execmem_cache_free() execmem: move execmem_force_rw() and execmem_restore_rox() before use execmem: add fallback for failures in vmalloc(VM_ALLOW_HUGE_VMAP) execmem: drop writable parameter from execmem_fill_trapping_insns() x86/kprobes: enable EXECMEM_ROX_CACHE for kprobes allocations x86/ftrace: enable EXECMEM_ROX_CACHE for ftrace allocations Suren Baghdasaryan (1): mm: fix a UAF when vma->mm is freed after vma->vm_refcnt got dropped Suresh K C (1): selftests: cachestat: add tests for mmap, refactor and enhance mmap test for cachestat validation Xuanye Liu (1): mm: add process info to bad rss-counter warning Yadan Fan (1): mm: mempool: fix crash in mempool_free() for zero-minimum pools wang lian (1): selftests/mm: add process_madvise() tests Documentation/core-api/mm-api.rst | 1 - arch/arm64/mm/mmu.c | 4 +- arch/x86/kernel/alternative.c | 3 +- arch/x86/kernel/ftrace.c | 2 +- arch/x86/kernel/kprobes/core.c | 18 -- arch/x86/mm/init.c | 24 +- include/linux/execmem.h | 54 ++-- include/linux/io-mapping.h | 3 - include/linux/mm.h | 6 +- include/linux/mmap_lock.h | 30 ++ include/linux/page-flags.h | 2 - include/linux/pgtable.h | 45 +++ include/linux/rmap.h | 22 ++ kernel/fork.c | 9 +- kernel/module/main.c | 13 +- mm/Kconfig | 4 - mm/Makefile | 1 - mm/damon/vaddr.c | 4 + mm/execmem.c | 206 ++++++++---- mm/internal.h | 2 +- mm/io-mapping.c | 30 -- mm/kasan/common.c | 25 +- mm/khugepaged.c | 58 ++-- mm/madvise.c | 71 ++++- mm/memory-failure.c | 12 +- mm/mempool.c | 24 +- mm/mincore.c | 3 + mm/mmap_lock.c | 10 +- mm/mprotect.c | 2 +- mm/mremap.c | 4 +- mm/mseal.c | 166 +++------- mm/nommu.c | 2 +- mm/rmap.c | 2 +- mm/shmem.c | 279 +++++++++-------- mm/vma.c | 4 +- mm/vma.h | 27 +- tools/testing/selftests/cachestat/test_cachestat.c | 62 +++- tools/testing/selftests/mm/.gitignore | 1 + tools/testing/selftests/mm/Makefile | 1 + tools/testing/selftests/mm/process_madv.c | 344 +++++++++++++++++++++ tools/testing/selftests/mm/run_vmtests.sh | 5 + tools/testing/vma/vma_internal.h | 6 +- 42 files changed, 1080 insertions(+), 511 deletions(-) delete mode 100644 mm/io-mapping.c create mode 100644 tools/testing/selftests/mm/process_madv.c